this.loader = new FluidbookLoader(this);
this.search = new FluidbookSearch(this);
this.pad = new FluidbookPad(this);
+ this.mobilefirst = new FluidbookMobileFirst(this);
this.scorm = new FluidbookScorm(this);
this.links = new FluidbookLinks(this);
this.waiters = [];
--- /dev/null
+function FluidbookMobileFirst(fluidbook) {
+ this.fluidbook = fluidbook;
+ this.enabled = this.fluidbook.datas.mobileNavigationType === 'mobilefirst';
+ if (this.enabled) {
+ this.init();
+ }else{
+ $("html").addClass('no-mobilefirst');
+ }
+}
+
+FluidbookMobileFirst.prototype = {
+ init: function () {
+ $("html").addClass('mobilefirst');
+ },
+}
\ No newline at end of file