Template:Team:KIT-Kyoto/hidelogo

From 2014.igem.org

(Difference between revisions)
 
(2 intermediate revisions not shown)
Line 4: Line 4:
     var browserheight = $(window).height();
     var browserheight = $(window).height();
   
   
-
     if(browserheight <= 630){
+
     if(browserheight <= 730){
         $('.toplogo').addClass('hidelogo');
         $('.toplogo').addClass('hidelogo');
         $('.toplogo').removeClass('showlogo');
         $('.toplogo').removeClass('showlogo');
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