Advertisement
Guest User

Untitled

a guest
Feb 6th, 2016
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. //
  2. // pr◘t◘b◘t.xyz
  3. //
  4. // HALLO WORLD BOARD and CONTROL-ROCKS CONTROL
  5. // by maxxflyer
  6. //
  7.  
  8.  
  9.  
  10. //mandatory variables
  11.  
  12. Hallo.prototype.id;
  13. Hallo.prototype.name;
  14. Hallo.prototype.custom;
  15. Hallo.prototype.Display;
  16. Hallo.prototype.Control;
  17. Hallo.prototype.clock;
  18. Hallo.prototype.interval=60000;
  19.  
  20. //mandatory functions
  21.  
  22. function Hallo(i_d,custom){
  23.  
  24. //mandatory
  25. this.id=i_d;
  26. this.name="Hallo";
  27.  
  28. }
  29.  
  30. Hallo.prototype.createControl=function(id,location){
  31.  
  32. this.Control=control(id,(location||"C1"));
  33. this.Control.append('CONTROL ROCKS!');
  34.  
  35. }
  36.  
  37. Hallo.prototype.createDisplay=function(id,location){
  38.  
  39. this.Display=display(id,(location||"Center"));
  40. this.Display.append('HALLO WORLD!');
  41.  
  42. }
  43.  
  44. Hallo.prototype.stop=function(){ window.clearInterval(this.clock); }
  45.  
  46. Hallo.prototype.start=function(){ this.stop(); this.clock=window.setInterval(this.loop(),this.interval); }
  47.  
  48. Hallo.prototype.loop=function(){ }
  49.  
  50. Hallo.prototype.Input=function(arr,key){ }
  51.  
  52. Hallo.prototype.gMsg=function(str,param){
  53.  
  54. if(param == "get_name")msg("NAME: "+this.name);
  55. if(param == "get_id")msg("ID: "+this.id);
  56. if(param == "get_info")msg("");
  57. if(param == "get_author")msg("");
  58.  
  59. }
  60.  
  61. $(document).ready( function() { } );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement