Difference between revisions of "Template:Tsinghua"

Line 43: Line 43:
  
  
 +
 +
// Preloader
 +
$.holdReady( true );
 +
 +
$('body').imagesLoaded({ background: ".background-holder" }, function(){
 +
    $('#preloader').removeClass("loading");
 +
    $.holdReady( false );
 +
    setTimeout(function() {
 +
        $('#preloader').remove();
 +
    }, 800);
 +
});
 +
 +
// Zanimation
 +
$(window).on('load', function(){
 +
    $('*[data-inertia]').each(function(){
 +
        $(this).inertia();
 +
    });
 +
});
 
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 
</script>
 
</script>

Revision as of 17:40, 16 October 2019