this.ready();
$("#main").css('visibility', 'visible');
this.hideLoader(0, true);
-
+
if (this.support.transitions2d) {
$("#splash").css('opacity', 0).one(this.support.getTransitionEndEvent(true), function () {
$(this).remove();
FluidbookMenu.prototype = {
init: function () {
this.index = new FluidbookIndex(this.fluidbook);
+ var $this = this;
+
+ $(document).on('click', ".mview .back", function () {
+ if ($(this).hasClass('closeView')) {
+ fluidbook.menu.closeView(function () {
+ }, false);
+ if ($(this).is('[href]')) {
+ maskHashChange = true;
+ window.location = $(this).attr('href');
+ setTimeout(function () {
+ maskHashChange = false;
+ }, 200);
+ }
+ return false;
+ }
+ if ($(this).hasClass('one')) {
+ fluidbook.menu.closeView(function () {
+ }, false);
+
+ if ($(this).is('[href]')) {
+ maskHashChange = true;
+ window.location = $(this).attr('href');
+ setTimeout(function () {
+ maskHashChange = false;
+ }, 200);
+ } else {
+ maskHashChange = true;
+ history.back();
+ setTimeout(function () {
+ maskHashChange = false;
+ }, 200);
+ }
+ return false;
+ }
+ window.location.hash = '/page/' + $this.fluidbook.currentPage;
+ return false;
+ });
+
},
viewMode: function () {
} else {
c = ' ' + c;
}
- return '<a href="#" class="back' + c + '">' + getSpriteIcon('interface-close') + '</a>';
+ return '<div class="button back' + c + '">' + getSpriteIcon('interface-close') + '</div>';
}
,
openAudio: function (audio, callback) {
}
- if(mview.length>0) {
+ if (mview.length > 0) {
TweenMax.to(mview, 0.25, {
autoAlpha: 0, onComplete: function () {
$this.fluidbook.video.killVideosIn(mview);
default:
break;
}
-
+
var captionHeight = m.find('.caption').outerHeight();
css = {};
ccss = {};
$("#logo").click(clickLogo);
- $(document).on('click', ".mview .back", function () {
- if ($(this).hasClass('closeView')) {
- fluidbook.menu.closeView(function () {
- }, false);
- if ($(this).attr('href') != '#') {
- maskHashChange = true;
- window.location = $(this).attr('href');
- setTimeout(function () {
- maskHashChange = false;
- }, 200);
-
- }
- return false;
- }
- if ($(this).hasClass('one')) {
- fluidbook.menu.closeView(function () {
- }, false);
-
- if ($(this).attr('href') != '#') {
- maskHashChange = true;
- window.location = $(this).attr('href');
- setTimeout(function () {
- maskHashChange = false;
- }, 200);
- } else {
- maskHashChange = true;
- history.back();
- setTimeout(function () {
- maskHashChange = false;
- }, 200);
- }
- return false;
- }
- if ($(this).attr('href') == '#') {
- window.location.hash = '/page/' + fluidbook.currentPage;
- return false;
- }
- });
-
$(document).on('click', '.lazy', function () {
return false;
});
return false;
});
- $(document).on('click', 'a', function () {
+ $(document).on('click', 'a', function () {
if (!DATAS.phonegap) {
return true;
}
.caption {
height: 0;
padding: 0;
- .back {
+ div.button.back {
width: 30px;
height: 30px;
padding: 10px;
white-space: nowrap;
}
- a {
+ div.button, a {
height: 27px;
font-weight: 600;
font-size: 14px;
line-height: 25px;
display: block;
+ cursor: pointer;
&.back {
position: absolute;
top: 0;