defaultStartPage = FLUIDBOOK_START_PAGE;
}
+
if (args.length <= 1 || args[1] == '' || args[1] == undefined) {
if (this.landingpage !== undefined && this.landingpage.hasLandingPage) {
window.location.hash = '/landing';
return;
}
return this.setCurrentPage(defaultStartPage);
- } else if (args[1] == 'closeview') {
+ } else if (args[1] === 'closeview') {
return this.setCurrentPage(this.currentPage);
- } else if (args[1] == 'page') {
+ } else if (args[1] === 'page') {
if (fluidbook.datas.pageLabels[args[2]] !== undefined) {
page = fluidbook.datas.pageLabels[args[2]];
} else {
return this.setCurrentPage('1');
}
- if (page != $this.currentPage) {
+ if (page !== $this.currentPage) {
$($this).trigger('fluidbook.page.navigation', [page]);
$($this).trigger('changePage', [page]);
}
this.landingpage.hide();
}
this.menu._closeView(function () {
- if (page != $this.currentPage) {
+ if (page !== $this.currentPage) {
$this.pagetransitions.pageTransition(page);
$this.stats.track(0, page);
}
$this.hideSplash();
}, true);
- } else if (args[1] == 'landing') {
+ } else if (args[1] === 'landing') {
$this.hideSplash();
if (this.landingpage !== undefined) {
this.landingpage.show();
}
} else {
var view = args[1];
+ if (view.match(/^[0-9]*$/)) {
+ var pageNrFlashURL = parseInt(view);
+ if (!isNaN(pageNrFlashURL)) {
+ this.setCurrentPage(pageNrFlashURL);
+ }
+ }
+
if (this.currentPage === -1) {
if (view === 'multimedia' || view === 'video' || view === 'iframe') {
var searchURL = args.join('/');