src/js/widgets/helloWorldWidget.js
author veltr
Tue, 17 Apr 2012 20:19:46 +0200
branchnew-model
changeset 868 a525cc2214e7
parent 766 aa26ddaf2556
child 870 2c025db10a10
permissions -rw-r--r--
Started big refactoring
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
661
48c1beea7b1c change line endings to unix.
hamidouk
parents: 655
diff changeset
     1
IriSP.HelloWorldWidget = function(Popcorn, config, Serializer) {
48c1beea7b1c change line endings to unix.
hamidouk
parents: 655
diff changeset
     2
  IriSP.Widget.call(this, Popcorn, config, Serializer);
48c1beea7b1c change line endings to unix.
hamidouk
parents: 655
diff changeset
     3
}
48c1beea7b1c change line endings to unix.
hamidouk
parents: 655
diff changeset
     4
48c1beea7b1c change line endings to unix.
hamidouk
parents: 655
diff changeset
     5
IriSP.HelloWorldWidget.prototype = new IriSP.Widget();
48c1beea7b1c change line endings to unix.
hamidouk
parents: 655
diff changeset
     6
48c1beea7b1c change line endings to unix.
hamidouk
parents: 655
diff changeset
     7
IriSP.HelloWorldWidget.prototype.draw = function() {
48c1beea7b1c change line endings to unix.
hamidouk
parents: 655
diff changeset
     8
    this.selector
868
a525cc2214e7 Started big refactoring
veltr
parents: 766
diff changeset
     9
        .append('Hello, world')
661
48c1beea7b1c change line endings to unix.
hamidouk
parents: 655
diff changeset
    10
        .css({
48c1beea7b1c change line endings to unix.
hamidouk
parents: 655
diff changeset
    11
            "text-align" : "center",
48c1beea7b1c change line endings to unix.
hamidouk
parents: 655
diff changeset
    12
            "padding": "10px 0",
766
aa26ddaf2556 fixed raphael's files to remove trailing colon at the end of objects to make
hamidouk
parents: 661
diff changeset
    13
            "font-size" : "14px"
661
48c1beea7b1c change line endings to unix.
hamidouk
parents: 655
diff changeset
    14
        });
48c1beea7b1c change line endings to unix.
hamidouk
parents: 655
diff changeset
    15
}