//##################################// // Author : Cavethemes // // Contact : cavethemes@gmail.com // //##################################// //---------------------------// // INTERNET EXPLORER CODE // //---------------------------// // It replaces svg with a png image for IE browsers. function IE() { "use strict"; var ms_ie = false; var ua = window.navigator.userAgent; var old_ie = ua.indexOf('MSIE '); var new_ie = ua.indexOf('Trident/'); if ((old_ie > -1) || (new_ie > -1)) { ms_ie = true; } if (ms_ie) { $('svg').css('display','none'); $('body').append("
"); } } //---------------------------// // LOADING PAGE CODE // //---------------------------// // It shows the loading animation for 3 seconds, before starting of the page/ $('.spinner').css('display','block'); $(function(){ $('svg').css('opacity','0'); $('nav').css('opacity','0'); $('.error').css('opacity','0'); setTimeout(function(){ $('nav').css('opacity','1'); $('svg').css('opacity','1'); $('.error').css('opacity','1'); $('.spinner').css('display','none'); IE(); }, 3000); });