Template:Team:KIT-Kyoto/hidelogo

From 2014.igem.org

(Difference between revisions)
Line 28: Line 28:
}
}
);
);
 +
});
 +
 +
$(document).ready(function(){
 +
   
 +
    function showWidth(ele, w) {
 +
      $(".wndowsize").text("The width for the " + ele +
 +
                    " is " + w + "px.");
 +
}
 +
    $("#getw").click(function () {
 +
      showWidth("window", $(window).width());
 +
    });
});
});
</script>
</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 Width</button>
 +
<div class="windowsize"> </div>

Revision as of 14:58, 21 September 2014