Template: Loading: Difference between revisions

From referenceTSS
Jump to: navigation, search
mNo edit summary
No edit summary
 
(4 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='/resource_browser/images/LoaderGifs/sprites.gif'; //default but optional with Template  
var cImageSrc='/reftss/images/LoaderGifs/sprites.gif'; //default but optional with Template  
var cImageTimeout=false;
var cImageTimeout=false;
Line 66: Line 66:
//The following code starts the animation
//The following code starts the animation
new imageLoader(cImageSrc, 'startAnimation()');
new imageLoader(cImageSrc, 'startAnimation()');
$(document).ready(function() {
//var loading_image="</html>{{{loadingimage}}}<html>";


$(document).on("click", "a", function() {
$(document).on("click", "a", function() {
Line 82: Line 86:
}else{
}else{
}
}
});
function toggle_visibility(id) {
        var thelist = $('.hiddeable');
    for (var i = 0; i < thelist.length; i++) {
    thelist[i].style.display = 'none';
    }
    var e = $('#loader')[0];
    if(e.style.display == 'block') {
    e.style.display = 'none';
    } else {
    e.style.display = 'block';
    }
    }
});
});
</script>
</script>
</html>
</html>

Latest revision as of 10:29, 13 September 2021