Software: Apache. PHP/5.5.15 uname -a: Windows NT SVR-DMZ 6.1 build 7600 (Windows Server 2008 R2 Enterprise Edition) i586 SYSTEM Safe-mode: OFF (not secure) E:\copia nuevo\htdocs\cumbreclima\wp-content\plugins\gallery-video\js\ drwxrwxrwx |
Viewing file: video_gallery-all.js (2.92 KB) -rw-rw-rw- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) | // SET THIS VARIABLE FOR DELAY, 1000 = 1 SECOND var delayLength = 4000; function doMove(panelWidth, tooFar) { var leftValue = jQuery("#mover").css("left"); // Fix for IE if (leftValue == "auto") { leftValue = 0; }; var movement = parseFloat(leftValue, 10) - panelWidth; if (movement == tooFar) { jQuery(".slide img").animate({ "top": -200 }, function() { jQuery("#mover").animate({ "left": 0 }, function() { jQuery(".slide img").animate({ "top": 20 }); }); }); } else { jQuery(".slide img").animate({ "top": -200 }, function() { jQuery("#mover").animate({ "left": movement }, function() { jQuery(".slide img").animate({ "top": 20 }); }); }); } } jQuery(function(){ var $slide1 = jQuery("#slide-1"); var panelWidth = $slide1.css("width"); var panelPaddingLeft = $slide1.css("paddingLeft"); var panelPaddingRight = $slide1.css("paddingRight"); panelWidth = parseFloat(panelWidth, 10); panelPaddingLeft = parseFloat(panelPaddingLeft, 10); panelPaddingRight = parseFloat(panelPaddingRight, 10); panelWidth = panelWidth + panelPaddingLeft + panelPaddingRight; var numPanels = jQuery(".slide").length; var tooFar = -(panelWidth * numPanels); var totalMoverwidth = numPanels * panelWidth; jQuery("#mover").css("width", totalMoverwidth); jQuery("#slider").append('<a href="#" id="slider-stopper">Stop</a>'); sliderIntervalID = setInterval(function(){ doMove(panelWidth, tooFar); }, delayLength); jQuery("#slider-stopper").click(function(){ if (jQuery(this).text() == "Stop") { clearInterval(sliderIntervalID); jQuery(this).text("Start"); } else { sliderIntervalID = setInterval(function(){ doMove(panelWidth, tooFar); }, delayLength); jQuery(this).text("Stop"); } }); }); ///// ;(function($){ /** * Store scroll position for and set it after reload * * @return {boolean} [loacalStorage is available] */ $.fn.scrollPosReaload = function(){ if (localStorage) { var posReader = localStorage["posStorage"]; if (posReader) { $(window).scrollTop(posReader); localStorage.removeItem("posStorage"); } $(this).click(function(e) { localStorage["posStorage"] = $(window).scrollTop(); }); return true; } return false; } /* ================================================== */ jQuery(document).ready(function($) { // Feel free to set it for any element who trigger the reload $('.paginate5').scrollPosReaload(); $('.paginate4').scrollPosReaload(); $('.paginate3').scrollPosReaload(); $('.paginate2').scrollPosReaload(); $('.video_view9_cont_wrapper').scrollPosReaload(); }); }(jQuery)); |
:: Command execute :: | |
--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0156 ]-- |