', {
'class': 'h5p-baq-intro-page-inner'
});
$innerWrapper.append($('
', {
'class': 'h5p-baq-intro-page-title'
}).append($('', {
html: text
})));
// Create and add the start button:
UI.createButton({
text: t.startButton,
'class': 'mq-control-button',
click: function () {
self.trigger('start-game');
}
}).appendTo($innerWrapper);
$innerWrapper.appendTo(this.$introPage);
/**
* Append Intropage to a container
*
* @param {H5P.jQuery} $container
*/
self.appendTo = function ($container) {
this.$introPage.appendTo($container);
};
/**
* Remove me from DOM
*/
self.remove = function () {
this.$introPage.remove();
};
}
IntroPage.prototype = Object.create(H5P.EventDispatcher.prototype);
IntroPage.prototype.constructor = IntroPage;
return IntroPage;
})(H5P.jQuery, H5P.JoubelUI);