Main.js 915 B

123456789101112131415161718192021222324252627282930313233
  1. MWF.xApplication.Empty.options.multitask = true;
  2. MWF.xApplication.Empty.Main = new Class({
  3. Extends: MWF.xApplication.Common.Main,
  4. Implements: [Options, Events],
  5. options: {
  6. "style1": "default",
  7. "style": "default",
  8. "name": "Empty",
  9. "icon": "icon.png",
  10. "width": "400",
  11. "height": "700",
  12. "isResize": false,
  13. "isMax": false,
  14. "title": MWF.xApplication.Empty.LP.title
  15. },
  16. onQueryLoad: function(){
  17. this.lp = MWF.xApplication.Empty.LP;
  18. },
  19. loadApplication: function(callback){
  20. //for (var i=0; i<3000; i++){
  21. // var node = new Element("div", {"text": i}).inject(this.content);
  22. // this["x"+i] = node;
  23. // node.tmp = this["x"+i];
  24. //}
  25. //this.content
  26. this.content.set("html", "<div style='color:#ff0000; padding: 30px; text-align: center; font-size: 24px;'>hello word</div>");
  27. var d = new Date();
  28. console.log(d.getTime());
  29. }
  30. });