Difference between revisions of "Template:Loading"
From referenceTSS
(Created page with "<html> <div id="loader" class="hiddeable" style="display:none; position: fixed; top: 0; right: 0; width: 100%; height: 100%; z-index: 1; background: transparent;"> </div> <scr...") |
|||
(13 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