var a = credits.find('a');
var t = a.text();
credits.find('a').text(t);
- let li=$('<li></li>');
+ let li = $('<li></li>');
li.append(credits);
$("#menuList > ul").append(li);
},
hideMenuItems: function () {
- gsap.to($('#menuList >ul > li, #shareLinks,footer#mobile-credits'), {duration: 0.1, opacity: 0, display: 'none'});
+ gsap.to($('#menuList >ul > li, #shareLinks,footer#mobile-credits'), {
+ duration: 0.1, opacity: 0, display: 'none'
+ });
},
showMenuItems: function () {
- gsap.to($('#menuList >ul> li, #shareLinks,footer#mobile-credits'), {duration: 0.3, opacity: 1, display: 'block'});
+ gsap.to($('#menuList >ul> li, #shareLinks,footer#mobile-credits'), {
+ duration: 0.3, opacity: 1, display: 'block'
+ });
},
openSearch: function (q, cb) {
//$("#q").keyup(searchHints);
$(document).on('keyup', '#q', function (key) {
- console.log(key);
- if(key.ctrlKey){
+ if (key.ctrlKey) {
return;
}
switch (key.which) {
} else {
this.fluidbook.currentPage = page;
}
+
let $this = this;
$("#elasticpages .scrollholder .page.current:not(#epage_" + page + ")").removeClass('current');
$("#epage_" + page).addClass('current');
})
});
this.fluidbook.links.initLinks(page);
+ $(this.fluidbook).trigger('fluidbook.page.change.end', [this.fluidbook.currentPage]);
},
startHelpTimeout: function () {
init: function () {
var $this = this;
$(this.fluidbook).on('fluidbook.page.change.end', function (e, pageNr) {
+ console.log(':)');
$this.highlightSearchTerms(pageNr);
});
$(document).on('change', '#q', function () {
setRobustHighlightTerms: function (terms) {
let term = terms.join('');
term = this.removeSpaceAndPoints(term);
- console.log(term);
let letters = term.split('');
let occurences = [];
} else {
try {
if ($("#q").val().length == 0) {
- console.log(':)');
this.hideSearchHints();
this.fluidbook.nav.burger.showMenuItems(); // Show main menu items that were hidden previously
}