$this.openSearch();
});
-
- if (this.fluidbook.support.fullscreen) {
- // Full screen toggle
- $(document).on('click', '.icon-fullscreen', function () {
- $this.menuAPI.close();
- screenfull.toggle();
- return false;
- });
-
-
- // Toggle icon on fullscreen change (also handles exiting via ESC key)
- screenfull.on('change', function () {
- resize();
- // Slight delay to stop icon state flickering during fullscreen transition
- setTimeout(function () {
- if (screenfull.isFullscreen) {
- $('.icon-fullscreen').addClass('active');
- } else {
- $('.icon-fullscreen').removeClass('active');
- }
- resize();
- }, 250);
-
- setTimeout(function () {
- resize();
- }, 1000);
- });
- }
-
// Share icon
$(document).on('click', '.icon-share', function () {
- if ($this.fluidbook.datas.phonegap != 'android') {
+ if ($this.fluidbook.datas.phonegap !== 'android') {
return true;
}
$this.fluidbook.share.intentShare();