this.sound = new FluidbookSound(this);
this.slideshow = new FluidbookSlideshow(this);
- if(this.datas.basket) {
+ if (this.datas.basket) {
this.cart = new FluidbookCart(this);
}
if (this.datas.form == 'bulle') {
var $this = this;
var page;
var args = window.location.hash.split('/');
+ var defaultStartPage = 1;
+
+ if (FLUIDBOOK_START_PAGE !== undefined) {
+ defaultStartPage = FLUIDBOOK_START_PAGE;
+ }
if (args.length <= 1 || args[1] == '' || args[1] == undefined) {
- if (this.landingpage!==undefined && this.landingpage.hasLandingPage) {
+ if (this.landingpage !== undefined && this.landingpage.hasLandingPage) {
window.location.hash = '/landing';
return;
}
- return this.setCurrentPage('1');
+ return this.setCurrentPage(defaultStartPage);
} else if (args[1] == 'closeview') {
return this.setCurrentPage(this.currentPage);
} else if (args[1] == 'page') {
if (page != $this.currentPage) {
$($this).trigger('changePage', [page]);
}
- if(this.landingpage!==undefined) {
+ if (this.landingpage !== undefined) {
this.landingpage.hide();
}
this.menu.closeView(function () {
else if (args[1] == 'landing') {
$this.hideSplash();
- if(this.landingpage!==undefined) {
+ if (this.landingpage !== undefined) {
this.landingpage.show();
}
}
this.lowdef = this.fluidbook.support.android || this.fluidbook.support.iOS;
+ $(document).on('click', '[href^="#"]:not([href="#"])', function () {
+ location.hash = $(this).attr('href');
+ return false;
+ });
+
$(document).on('click', '[data-wescosales-ref]', function () {
});
return false;
});
+
+
},
initLinks: function (pageNr) {
if (pageNr == undefined) {