}
});
+ console.log(page, id, this.links);
+
if (id === 'none') {
this.svg.find('[id^="o"].active').removeClass('active');
});
}
- if (this.hideOnLastPage || this.hideOnFirstPage) {
- if (this.hideOnLastPage) {
- this.visibility.lastpage = true;
- }
- if (this.hideOnFirstPage) {
- this.visibility.firstpage = true;
- }
- $(this.fluidbook).on('fluidbook.page.change.start', function (e, page) {
- if ($this.hideOnFirstPage) {
- if (page <= 1) {
- $this.changeVisibility('firstpage', false);
- }
+ if (this.hideOnLastPage) {
+ this.visibility.lastpage = true;
+ }
+ if (this.hideOnFirstPage) {
+ this.visibility.firstpage = true;
+ }
+
+ $(this.fluidbook).on('fluidbook.page.change.start', function (e, page) {
+ if ($this.hideOnFirstPage) {
+ if (page <= 1) {
+ $this.changeVisibility('firstpage', false);
}
- if ($this.hideOnLastPage) {
- var last = $this.fluidbook.settings.pages;
- if (last % 2 === 1) {
- last--;
- }
- if (page >= last) {
- $this.changeVisibility('lastpage', false);
- }
+ }
+ if ($this.hideOnLastPage) {
+ var last = $this.fluidbook.settings.pages;
+ if (last % 2 === 1) {
+ last--;
}
- $this.changePage(page);
- });
+ if (page >= last) {
+ $this.changeVisibility('lastpage', false);
+ }
+ }
+ $this.changePage(page);
+ });
- $(this.fluidbook).on('fluidbook.page.change.end', function (e, page) {
- if ($this.hideOnFirstPage) {
- if (page > 1) {
- $this.changeVisibility('firstpage', true);
- }
+ $(this.fluidbook).on('fluidbook.page.change.end', function (e, page) {
+ if ($this.hideOnFirstPage) {
+ if (page > 1) {
+ $this.changeVisibility('firstpage', true);
}
- if ($this.hideOnLastPage) {
- var last = $this.fluidbook.settings.pages;
- if (last % 2 === 1) {
- last--;
- }
- if (page < last) {
- $this.changeVisibility('lastpage', true);
- }
+ }
+ if ($this.hideOnLastPage) {
+ var last = $this.fluidbook.settings.pages;
+ if (last % 2 === 1) {
+ last--;
}
- });
+ if (page < last) {
+ $this.changeVisibility('lastpage', true);
+ }
+ }
+ });
- $(document).on('mouseover', '.tablink[data-labelid]', function () {
- $this.svg.find('[id^="t"].active').removeClass('active');
- $this.svg.find('#' + $(this).data('labelid')).addClass('active');
- });
+ $(document).on('mouseover', '.tablink[data-labelid]', function () {
+ $this.svg.find('[id^="t"].active').removeClass('active');
+ $this.svg.find('#' + $(this).data('labelid')).addClass('active');
+ });
+
+ $(document).on('mouseout', '.tablink[data-labelid]', function () {
+ $this.svg.find('[id^="t"].active').removeClass('active');
+ });
- $(document).on('mouseout', '.tablink[data-labelid]', function () {
- $this.svg.find('[id^="t"].active').removeClass('active');
- });
- }
},
changeVisibility: function (type, visible) {