Line 8: | Line 8: | ||
filter: brightness(0.85);" /> | filter: brightness(0.85);" /> | ||
<script> | <script> | ||
− | var winWidth=$(window).width(); | + | $(function(){ |
− | + | var bgPicFun=function(){ | |
− | + | var winWidth=$(window).width(); | |
− | + | $(".bgPic").css("width",winWidth); | |
− | + | } | |
− | + | bgPicFun(); | |
+ | $(window).resize(function(){ | ||
+ | bgPicFun(); | ||
+ | }); | ||
}); | }); | ||
</script> | </script> | ||
Line 31: | Line 34: | ||
<li class="navLi navImg" style="float: left;"><a class="navA activeA teamName" style="font-family: Algerian,_Algerian;font-size: 13em;font-weight: 400;height:200px;line-height: 200px;" href="#11"> S T E P</a></li> | <li class="navLi navImg" style="float: left;"><a class="navA activeA teamName" style="font-family: Algerian,_Algerian;font-size: 13em;font-weight: 400;height:200px;line-height: 200px;" href="#11"> S T E P</a></li> | ||
− | </ul> | + | </ul> |
− | + | ||
− | + | ||
<div id="fullName">Synthetic Transducer Engineering Platform</div> | <div id="fullName">Synthetic Transducer Engineering Platform</div> | ||
<style> | <style> | ||
Line 43: | Line 44: | ||
font-weight: 200; | font-weight: 200; | ||
} | } | ||
− | </style> | + | </style> |
− | + | ||
<script> | <script> | ||
− | var winWidth=$(window).width(); | + | $(function(){ |
− | + | var pjNameFun=function(){ | |
− | + | var winWidth=$(window).width(); | |
− | + | var bgPicHeight=$('.bgPic').height(); | |
− | + | var stepWidth=$('#step').width(); | |
− | + | var fnWidth=$('#fullName').width(); | |
− | + | $("#step").css("left",0.5*(winWidth-stepWidth)); | |
− | + | $("#step").css("top",0.3*bgPicHeight); | |
− | + | var stepHeight=$('#step').height(); | |
− | + | var stepY = $('#step').offset().top; | |
+ | $("#fullName").css("left",0.5*(winWidth-fnWidth)); | ||
+ | $("#fullName").css("top",stepY+1.2*stepHeight); | ||
+ | } | ||
+ | pjNameFun(); | ||
+ | $(window).resize(function(){ | ||
+ | pjNameFun(); | ||
+ | }); | ||
+ | }); | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</script> | </script> | ||
<!----------------------------------------------------------------------------------------------------------------------------------------------------> | <!----------------------------------------------------------------------------------------------------------------------------------------------------> | ||
Line 78: | Line 74: | ||
<p> | <p> | ||
<!--end---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------> | <!--end---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------> | ||
+ | |||
</html> | </html> |
Revision as of 13:44, 21 September 2018
Synthetic Transducer Engineering Platform