<div id="ol" aria-hidden="true"></div>
<canvas id="pscanvas" width="4096" height="4096" aria-hidden="true"></canvas>
<div id="loader" aria-hidden="true"></div>
-<div id="hiddencontents" aria-hidden="true"><!-- $hiddenContents --></div>
+<div id="hiddencontents" aria-hidden="true"></div>
<div id="splash" style="background-color:#<!-- $bgcolor -->;<!-- $splashstyles -->" aria-hidden="true">
<!-- $splash --></div>
<div id="popinOverlay" aria-hidden="true"></div>
init: function (callback) {
let $this = this;
if (this.fluidbook.settings.hosting_loadbalancer) {
+
+ $this.loadbalancing = ['s1.lb.fluidbook.com'];
+
this._loadbalancingServerURL = this.fluidbook.cache.get('_loadbalancingServerURL', {});
+
setInterval(function () {
$this.fluidbook.cache.set('_loadbalancingServerURL', $this._loadbalancingServerURL);
}, 15000);
+
$.ajax("https://toolbox.fluidbook.com/lb.json").done(function (data) {
$this.loadbalancing = data;
$this.loadShades(callback);
$this.loadbalancing = false;
$this.loadShades(callback);
});
+
} else {
this.loadShades(callback);
}
},
loadShades: function (callback) {
- console.log('load shades');
this.shadeLeft = this.loadImage(this.getURL('images/shadows/pages/left.png'));
this.shadeRight = this.loadImage(this.getURL('images/shadows/pages/right.png'));
if (callback) {