diff -r 02c04d2c8fd8 -r ac1eacb3aa33 src/widgets/Slideshare.js --- a/src/widgets/Slideshare.js Sun Nov 12 22:07:33 2017 +0100 +++ b/src/widgets/Slideshare.js Wed Sep 04 17:32:50 2024 +0200 @@ -1,17 +1,19 @@ /* TODO: Add Slide synchronization */ +import slideshareStyles from "./Slideshare.module.css"; +import jQuery from "jquery"; -IriSP.Widgets.Slideshare = function(player, config) { - IriSP.Widgets.Widget.call(this, player, config); +const Slideshare = function(ns) { + return class extends ns.Widgets.Widget { + constructor(player, config) { + super(player, config); }; -IriSP.Widgets.Slideshare.prototype = new IriSP.Widgets.Widget(); - -IriSP.Widgets.Slideshare.prototype.defaults = { +static defaults = { annotation_type: "slide", sync: true, }; -IriSP.Widgets.Slideshare.prototype.messages = { +static messages = { fr: { slides_ : "Diapositives" }, @@ -20,10 +22,10 @@ } }; -IriSP.Widgets.Slideshare.prototype.template = +static template = '