"; titles[4] = "
"; titles[5] = "Na tej wyspie zatrzymał się Grabara"; titles[6] = "
"; $('#show-less').click(function() { $('#show-less').hide(); $('#show-more').show(); $('.show-box').html(title.substring(0, 50) + '...'); resetTimerIter(); }); $('#show-more').click(function() { $('#show-more').hide(); $('#show-less').show(); $('.show-box').html(title); resetTimerIter(); }); $('#imgLeft').click(function() { instance.previous(); resetTimerIter(); }); $('#imgRight').click(function() { instance.next(); resetTimerIter(); }); }); function navHide() { if(isShow && isHide) { isHide = false; timer(); } } function timer() { $(this).oneTime(1000, function() { if(timerIter==0) { $(".m-pic-nav").fadeOut(500); $(".m-pic-pnav").fadeOut(500); $(".m-pic-pl").fadeOut(500); $(".m-pic-top").fadeOut(500); isShow = false; isHide = true; } else { timerIter --; timer(); } }); } function navShow() { if(!isShow) { $(".m-pic-nav").fadeIn(500); $(".m-pic-pnav").fadeIn(500); $(".m-pic-pl").fadeIn(500); $(".m-pic-top").fadeIn(500); isShow = true; resetTimerIter(); } } function resetTimerIter() { timerIter = 8; } //-->