Difference between revisions of "Template:Fudan-CHINA"

Line 1: Line 1:
 
<html>
 
<html>
 
 
+
<!--start---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------->
+
<!--start---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------->
+
 
</p>
 
</p>
 
 
Line 245: Line 243:
 
 
 
<script type="text/javascript">         
 
<script type="text/javascript">         
     $(document).ready(function(){
+
     function rmLoading(){
 
setTimeout(function(){ $('body').addClass('loaded');
 
setTimeout(function(){ $('body').addClass('loaded');
 
         $('#loader-wrapper .load_title').remove(); }, 1500);
 
         $('#loader-wrapper .load_title').remove(); }, 1500);
     });  
+
     };
 +
window.onload=rmLoading();
 
</script>   
 
</script>   
 
<!--------------------------------------------------------------------------------------------------------------------------------------------------->
 
<!--------------------------------------------------------------------------------------------------------------------------------------------------->
Line 375: Line 374:
 
</ul>
 
</ul>
 
<script>
 
<script>
$(function(){
+
function navFun(){
var navFun=function(){
+
 
var winWidth=$(window).width();
 
var winWidth=$(window).width();
 
var navWidth=$('#navUl').width();
 
var navWidth=$('#navUl').width();
Line 383: Line 381:
 
$("#navUl").css("top",0.1*winHeight);
 
$("#navUl").css("top",0.1*winHeight);
 
};
 
};
navFun();
+
window.onload=navFun();
 +
 
$(window).resize(function(){
 
$(window).resize(function(){
 
navFun();
 
navFun();
 
});
 
});
  
 
 
     $(window).scroll(function(){
 
     $(window).scroll(function(){
 
var winHeight=$(window).height();
 
var winHeight=$(window).height();
Line 407: Line 405:
 
};
 
};
 
     });
 
     });
});
 
 
</script>
 
</script>
 
 
Line 416: Line 413:
 
 
 
<!---------------------------------------------------------------------------------------------------------------------------------------------------->
 
<!---------------------------------------------------------------------------------------------------------------------------------------------------->
 +
  
  

Revision as of 16:17, 21 September 2018

LOADING
Fudan-CHINA