if (this.datas.landingPage != undefined && this.datas.landingPage != '') {
this.landingpage = new FluidbookLandingPage(this);
}
+ this.secure = new FluidbookSecure(this);
this.contentlock = new FluidbookContentLock(this);
this.menu = new FluidbookMenu(this);
this.support = new FluidbookSupport(this);
--- /dev/null
+function FluidbookSecure(fluidbook) {
+ this.fluidbook = fluidbook;
+ this.init();
+}
+
+FluidbookSecure.prototype = {
+ init: function () {
+ if (this.fluidbook.datas.restrictPrintDownload !== '') {
+ if (window.location.search.indexOf(this.fluidbook.datas.restrictPrintDownload) === -1) {
+ if (this.fluidbook.datas.restrictPrint) {
+ this.fluidbook.datas.print = false;
+ }
+ if (this.fluidbook.datas.restrictDownload) {
+ this.fluidbook.datas.pdf = false;
+ }
+
+ if (this.fluidbook.datas.restrictSendBookmark) {
+ this.fluidbook.datas.bookmarkSendEnable = false;
+ }
+ }
+ }
+ },
+};
\ No newline at end of file