return this.open();
},
+ hideMenuItems: function () {
+ gsap.to($('#menuList > li, #shareLinks,footer#mobile-credits'), {duration: 0.1, autoAlpha: 0});
+ },
+
+ showMenuItems: function () {
+ gsap.to($('#menuList > li, #shareLinks,footer#mobile-credits'), {duration: 0.3, autoAlpha: 1});
+ },
+
openSearch: function (q, cb) {
if (!this.fluidbook.search.isSearchActive()) {
if (!this.fluidbook.settings.searchFullBurger) {
}
}
-
if (q !== undefined) {
$("#q").val(q);
if ($("#menuSearchResults .content").length === 0) {
return i + 1;
},
- hideMenuItems: function () {
- gsap.to($('#menuList > ul > li, #shareLinks,footer#mobile-credits'), {duration: 0.1, autoAlpha: 0});
- },
-
- showMenuItems: function () {
- gsap.to($('#menuList > ul > li, #shareLinks,footer#mobile-credits'), {duration: 0.3, autoAlpha: 1});
- },
-
print: function (button) {
return this.openPDF(button, true);
},
burgerActive: function () {
return this.burger.isActive();
- }
+ },
+
+ openSearch: function () {
+ return this.burger.openSearch();
+ },
};
return;
}
this.menuSearchHints = $('#menuSearchHints');
- this.fluidbook.hideMenuItems(); // Hide menu items to give space for hints div
+ this.fluidbook.nav.burger.hideMenuItems(); // Hide menu items to give space for hints div
this.menuSearchHints.fadeIn(300);
-
- // if (this.menuSearchHints.hasClass('mm-hidden')) {
- // this.nav.menuAPI.openPanel(this.menuSearchHints, false);
- // }
},
getSearchHints: function (q) {
if (!this.hintsEnabled) {
- this.fluidbook.hideMenuItems();
+ this.fluidbook.nav.burger.hideMenuItems();
this._loadLib(function () {
});
this.hideSearchHints();
this.hideSearchResults();
- this.fluidbook.showMenuItems(); // Show menu items that were hidden previously
+ this.fluidbook.nav.burger.showMenuItems(); // Show menu items that were hidden previously
},
submitForm: function () {
if ($("#q").val().length == 0) {
fluidbook.search.hideSearchHints();
fluidbook.search.hideSearchResults();
- fluidbook.showMenuItems(); // Show main menu items that were hidden previously
+ fluidbook.nav.burger.showMenuItems(); // Show main menu items that were hidden previously
}
} catch (err) {
}