Last active
June 20, 2018 11:51
-
-
Save AliShareei/5435bbb2d34819f0732551bff8f58f0a to your computer and use it in GitHub Desktop.
رفع مشکل لاینرتایمر و تغییرات فایل dbsap-main.js در ماژول شگفت انگیز
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function tabAutoPlay($wrapper,speed) { | |
var speed = parseInt($wrapper.data('speed')) || 4000; | |
var linerTimerInterval; | |
tabTimer = setInterval(function(){ | |
var $titles = $wrapper.find('.dbsa_tab_titles'); | |
var $active = $titles.find('.dbsa_active_title'); | |
var $target = $active.next(); | |
if($target.length){ | |
tabNavigate($target); | |
if($target.hasClass('dbsa_magic_line')){ | |
tabNavigate($titles.find('li').first()); | |
} | |
} else { | |
tabNavigate($titles.find('li').first()); | |
} | |
clearInterval(linerTimerInterval); | |
LinerTimerProccess(speed); | |
},speed); | |
function LinerTimerProccess(speed) { | |
var linerSpeed = speed/110; | |
var elem = document.getElementById("liner_timer"); | |
var width = 3; | |
elem.style.width = width + '%'; | |
linerTimerInterval = setInterval(function(){ | |
width++; | |
elem.style.width = width + '%'; | |
}, linerSpeed); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment