diff -r 38b65761a7d5 -r 43629caa77bc src/js/widgets/helloWorldWidget.js --- a/src/js/widgets/helloWorldWidget.js Fri Apr 20 19:13:11 2012 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,30 +0,0 @@ -IriSP.i18n.addMessages({ - "fr": { - "Hello" : "Bonjour," - }, - "en" : { - "Hello" : "Hello," - } -}) - -IriSP.HelloWorldWidget = function(player, config) { - console.log("Calling IriSP.Widget's constructor from IriSP.HelloWorldWidget"); - IriSP.Widget.call(this, player, config); - if (typeof this.text == "undefined") { - this.text = 'world' - } -} - -IriSP.HelloWorldWidget.prototype = new IriSP.Widget(); - -IriSP.HelloWorldWidget.prototype.draw = function() { - var _tmpl = '
{{l10n.Hello}} {{text}}
Looks like we have {{source.contents.annotation.length}} annotations in this feed
' - _html = IriSP.templToHTML(_tmpl, this); - this.$.append(_html); - this.$.find('p').css({ - "text-align" : "center", - "margin": "10px 0", - "font-size" : "14px" - }); - console.log("HelloWorldWidget was drawn"); -}