X
<>
<>
"; titles[2] = ""; titles[3] = ""; titles[4] = ""; titles[5] = ""; titles[6] = ""; titles[7] = ""; titles[8] = ""; titles[9] = ""; titles[10] = ""; $('#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; } //-->