From 2014.igem.org
(Difference between revisions)
|
|
(One intermediate revision not shown) |
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