Template:Imperial/09/TemplateTop

From 2009.igem.org

(Difference between revisions)
Line 2: Line 2:
<script type="text/javascript">
<script type="text/javascript">
if (window.innerWidth<=1024) {
if (window.innerWidth<=1024) {
-
   document.write('</html>{{Imperial/09/CSS/Reduced}}<html>');
+
   document.write('</html>{{Imperial/09/CSS/Reduced}}');
}else if(document.documentElement.clientWidth<=1024){
}else if(document.documentElement.clientWidth<=1024){
-
   document.write('</html>{{Imperial/09/CSS/Reduced}}<html>');
+
   document.write('</html>{{Imperial/09/CSS/Reduced}}');
}else if(window.innerWidth>1024){
}else if(window.innerWidth>1024){
   alert('yeah');
   alert('yeah');
-
   document.write('</html>{{Imperial/09/CSS}}<html>');
+
   document.write('</html>{{Imperial/09/CSS}}');
}else if(document.documentElement.clientWidth>1024){
}else if(document.documentElement.clientWidth>1024){
   alert('yeah in IE');
   alert('yeah in IE');
-
   document.write('</html>{{Imperial/09/CSS}}<html>');
+
   document.write('</html>{{Imperial/09/CSS}}');
}
}
</script>
</script>

Revision as of 15:39, 28 September 2009

'); }else if(document.documentElement.clientWidth<=1024){

  document.write('</html>


');

}else if(window.innerWidth>1024){

  alert('yeah');
  document.write('</html>



');

}else if(document.documentElement.clientWidth>1024){

  alert('yeah in IE');
  document.write('</html>



');

} </script>

<body>

</html>