Template:Team:KIT-Kyoto/hidelogo

From 2014.igem.org

(Difference between revisions)
Line 29: Line 29:
);
);
});
});
-
 
+
</script>
 +
<script type="text/javascript">
$(document).ready(function(){
$(document).ready(function(){
-
   
+
     function showHeight(ele, w) {
-
     function showWidth(ele, w) {
+
       $(".wndowsize").text("The height for the " + ele +  
-
       $(".wndowsize").text("The width for the " + ele +  
+
                     " is " + w + "px.");
                     " is " + w + "px.");
}
}
     $("#getw").click(function () {  
     $("#getw").click(function () {  
-
       showWidth("window", $(window).width());  
+
       showHeight("window", $(window).height());  
     });
     });
});
});
Line 59: Line 59:
</style>
</style>
-
<button id="getw">Get Window Width</button>
+
<button id="getw">Get Window Height</button>
<div class="windowsize"> </div>
<div class="windowsize"> </div>

Revision as of 15:02, 21 September 2014