Template:Team:KIT-Kyoto/hidelogo

From 2014.igem.org

(Difference between revisions)
 
(4 intermediate revisions not shown)
Line 12: Line 12:
     }
     }
setTimeout(function(){
setTimeout(function(){
-
$(".hidelogo img").animate({'margin-top':'-40px','margin-bottom':'-65px'},1000,'linear');
+
$(".hidelogo img").animate({'margin-top':'-40px','margin-bottom':'-65px'},800,'linear');
},3000);
},3000);
setTimeout(function(){
setTimeout(function(){
-
$(".showlogo img").animate({'margin-top':'14px','margin-bottom':'-10px'},1000,'linear');
+
$(".showlogo img").animate({'margin-top':'14px','margin-bottom':'-10px'},800,'linear');
-
},3000);
+
},1000);
};
};
   
   
Line 36: Line 36:
});
});
</script>
</script>
-
<script type="text/javascript">
 
-
$(document).ready(function(){
 
-
    function showHeight(ele, w) {
 
-
      $(".windowsize").text("The height for the " + ele +
 
-
                    " is " + w + "px.");
 
-
}
 
-
    $("#getw").click(function () {
 
-
      showHeight("window", $(window).height());
 
-
    });
 
-
});
 
-
</script>
 
-
<style type="text/css">
 
-
#getw{
 
-
font-size:12px;
 
-
position:fixed;
 
-
bottom:50px;
 
-
left:10px;
 
-
}
 
-
.windowsize{
 
-
color:#ffffff;
 
-
width:250px;
 
-
height:30px;
 
-
position:fixed;
 
-
bottom:10px;
 
-
left:0;
 
-
border:1px dashed #fff;
 
-
}
 
-
</style>
 
-
 
-
<button id="getw">Get Window Height</button>
 
-
<div class="windowsize"> </div>
 

Latest revision as of 20:06, 21 September 2014