Difference between revisions of "Template:Loading"
From referenceTSS
(7 intermediate revisions by 2 users not shown) | |||
Line 9: | Line 9: | ||
var cTotalFrames=18; | var cTotalFrames=18; | ||
var cFrameWidth=55; | var cFrameWidth=55; | ||
− | var cImageSrc='/ | + | var cImageSrc='/reftss/images/LoaderGifs/sprites.gif'; //default but optional with Template |
var cImageTimeout=false; | var cImageTimeout=false; | ||
Line 48: | Line 48: | ||
cPreloaderTimeout=setTimeout('continueAnimation()', SECONDS_BETWEEN_FRAMES*1000); | cPreloaderTimeout=setTimeout('continueAnimation()', SECONDS_BETWEEN_FRAMES*1000); | ||
} | } | ||
− | + | ||
function stopAnimation(){//stops animation | function stopAnimation(){//stops animation | ||
clearTimeout(cPreloaderTimeout); | clearTimeout(cPreloaderTimeout); | ||
Line 63: | Line 63: | ||
genImage.src=s; | genImage.src=s; | ||
} | } | ||
− | + | ||
− | + | //The following code starts the animation | |
new imageLoader(cImageSrc, 'startAnimation()'); | new imageLoader(cImageSrc, 'startAnimation()'); | ||
Line 70: | Line 70: | ||
//var loading_image="</html>{{{loadingimage}}}<html>"; | //var loading_image="</html>{{{loadingimage}}}<html>"; | ||
− | |||
− | |||
$(document).on("click", "a", function() { | $(document).on("click", "a", function() { | ||
Line 89: | Line 87: | ||
} | } | ||
}); | }); | ||
− | |||
function toggle_visibility(id) { | function toggle_visibility(id) { |
Latest revision as of 10:29, 13 September 2021