diff -r 7c67caaafdeb -r 761ba7426984 web/res/metadataplayer/HelloWorld.js --- a/web/res/metadataplayer/HelloWorld.js Mon Nov 20 18:10:58 2023 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,33 +0,0 @@ -/* Shows an example of a widget, with : - * - Use of source data - * - Use of templating - * - Use of internationalization - */ - -IriSP.Widgets.HelloWorld = function(player, config) { - console.log("Calling IriSP.Widget's constructor from IriSP.HelloWorldWidget"); - IriSP.Widgets.Widget.call(this, player, config); -}; - -IriSP.Widgets.HelloWorld.prototype = new IriSP.Widgets.Widget(); - -IriSP.Widgets.HelloWorld.prototype.defaults = { - text: "world" -}; - -IriSP.Widgets.HelloWorld.prototype.template = - '

{{l10n.Hello}} {{text}}

Looks like we have {{source.contents.annotation.length}} annotations in this feed

'; - -IriSP.Widgets.HelloWorld.prototype.messages = { - "fr": { - "Hello" : "Bonjour," - }, - "en" : { - "Hello" : "Hello," - } -}; - -IriSP.Widgets.HelloWorld.prototype.draw = function() { - this.renderTemplate(); - console.log("HelloWorldWidget was drawn"); -}; \ No newline at end of file