Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- // pr◘t◘b◘t.xyz
- //
- // HALLO WORLD BOARD and CONTROL-ROCKS CONTROL
- // by maxxflyer
- //
- //mandatory variables
- Hallo.prototype.id;
- Hallo.prototype.name;
- Hallo.prototype.custom;
- Hallo.prototype.Display;
- Hallo.prototype.Control;
- Hallo.prototype.clock;
- Hallo.prototype.interval=60000;
- //mandatory functions
- function Hallo(i_d,custom){
- //mandatory
- this.id=i_d;
- this.name="Hallo";
- }
- Hallo.prototype.createControl=function(id,location){
- this.Control=control(id,(location||"C1"));
- this.Control.append('CONTROL ROCKS!');
- }
- Hallo.prototype.createDisplay=function(id,location){
- this.Display=display(id,(location||"Center"));
- this.Display.append('HALLO WORLD!');
- }
- Hallo.prototype.stop=function(){ window.clearInterval(this.clock); }
- Hallo.prototype.start=function(){ this.stop(); this.clock=window.setInterval(this.loop(),this.interval); }
- Hallo.prototype.loop=function(){ }
- Hallo.prototype.Input=function(arr,key){ }
- Hallo.prototype.gMsg=function(str,param){
- if(param == "get_name")msg("NAME: "+this.name);
- if(param == "get_id")msg("ID: "+this.id);
- if(param == "get_info")msg("");
- if(param == "get_author")msg("");
- }
- $(document).ready( function() { } );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement