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 | + | $(".wndowsize").text("The height for the " + ele + |
- | $(".wndowsize").text("The | + | |
" is " + w + "px."); | " is " + w + "px."); | ||
} | } | ||
$("#getw").click(function () { | $("#getw").click(function () { | ||
- | + | showHeight("window", $(window).height()); | |
}); | }); | ||
}); | }); | ||
Line 59: | Line 59: | ||
</style> | </style> | ||
- | <button id="getw">Get Window | + | <button id="getw">Get Window Height</button> |
<div class="windowsize"> </div> | <div class="windowsize"> </div> |
Revision as of 15:02, 21 September 2014