]> _ Git - fluidbook-html5.git/commitdiff
wip #2286 @1
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 10 Oct 2018 16:55:08 +0000 (18:55 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 10 Oct 2018 16:55:08 +0000 (18:55 +0200)
js/libs/fluidbook/fluidbook.js
js/libs/fluidbook/links/fluidbook.links.zoomhd.js [new file with mode: 0644]
js/main.js

index ee62c69313350daf84371d52454c8bcb64af1884..8ab875a802a12df47dabd38a2662e2ed49f90b42 100644 (file)
@@ -97,6 +97,11 @@ Fluidbook.prototype = {
 
         this.initTheme();
         this.initKeyboardShortcuts();
+
+        setTimeout(function () {
+            $(document).trigger('fluidbook.init');
+            $(this).trigger('fluidbook.init');
+        }, 10);
     },
 
     initMaxPage: function () {
diff --git a/js/libs/fluidbook/links/fluidbook.links.zoomhd.js b/js/libs/fluidbook/links/fluidbook.links.zoomhd.js
new file mode 100644 (file)
index 0000000..e2dc61d
--- /dev/null
@@ -0,0 +1,15 @@
+function FluidbookLinksZoomHD(fluidbook) {
+    this.fluidbook = fluidbook;
+    this.init();
+}
+
+FluidbookLinksZoomHD.prototype = {
+    init: function () {
+    },
+}
+
+$(function () {
+    $(document).on('fluidbook.init', function () {
+        fluidbook.links_zoomhd = new FluidbookLinksZoomHD(fluidbook);
+    });
+});
\ No newline at end of file
index b4b9e2aa084c35f166479f6c8e5b23e461448042..58e2e7c169e6ce148c9372788cbc47d599faf513 100644 (file)
@@ -40,7 +40,9 @@ try {
         if (DATAS && DATAS.phonegap) {
             loadPhonegap();
         } else {
-            init();
+            setTimeout(function () {
+                init();
+            }, 10);
         }
     });