src/js/widgets/helloWorldWidget.js
branchpopcorn-port
changeset 655 b1e2dfc7a740
child 661 48c1beea7b1c
equal deleted inserted replaced
633:00a59060d78d 655:b1e2dfc7a740
       
     1 IriSP.HelloWorldWidget = function(Popcorn, config, Serializer) {
       
     2   IriSP.Widget.call(this, Popcorn, config, Serializer);
       
     3 }
       
     4 
       
     5 IriSP.HelloWorldWidget.prototype = new IriSP.Widget();
       
     6 
       
     7 IriSP.HelloWorldWidget.prototype.draw = function() {
       
     8     this.selector
       
     9         .html('Hello, world')
       
    10         .css({
       
    11             "text-align" : "center",
       
    12             "padding": "10px 0",
       
    13             "font-size" : "14px",
       
    14         });
       
    15         
       
    16     console.log(this);
       
    17 }