Team:Nankai

From 2014.igem.org

(Difference between revisions)
 
(35 intermediate revisions not shown)
Line 1: Line 1:
-
<html xmlns="http://www.w3.org/1999/xhtml">
+
<html>
-
<head>
+
<!--Thanks to Nelson's works.make Bootstrap template (any outside servers) perfectly work in iGEM wiki system. How to? First you buy a server and upload your websites, and then copy my code below, replace your servers address. Second, in every iGEM wiki page, put the similar code.(How to edit page? Replace your school name (and year ) in "https://2014.igem.org/wiki/index.php?title=Team:Nankai&action=edit" and put it in your browser) (and if you want to edit Nankai/Team, just add /Team in that address) Third, in every linkage, replace "href="xxx" by "onclick=window.parent.location.href="xxx"", if you have pdf file, please upload to iGEM and paste the address. If you have further question please feel free to ask Nelson's email: yuiuiuiuiui@163.com-->
-
<meta http-equiv="Content-Type" content="text/html; charset=GB2312" />
+
-
<!-- TemplateBeginEditable name="doctitle" -->
+
-
<title>Untitled Document</title>
+
-
<!-- TemplateEndEditable -->
+
-
<!-- TemplateBeginEditable name="head" -->
+
-
<!-- TemplateEndEditable -->
+
-
</head>
+
-
<body>
 
-
<div id="leamain">
+
<meta name="viewport" content="width=device-width, initial-scale=1">
 +
<script src="http://inankai.cn/igem/assets/jqueryv182.js"></script>
 +
<script>
 +
    $('head').empty();
 +
 +
  $('body').empty().removeClass().css('margin','0');
 +
 
 +
  var iframe = $('<iframe src="http://inankai.cn/igem" style="border: 0; width: 100%;"></iframe>').css('height',$(window).height());
 +
  $('body').html(iframe);
-
      <iframe src="http://inankai.cn/igem/" marginheight="0" marginwidth="0" frameborder="0" scrolling="no" width="765" height=100% id="iframepage" name="iframepage" onLoad="iFrameHeight()" ></iframe>
+
  $(window).resize(function () {
 +
    iframe.css('height',$(window).height());
 +
  });
-
<script type="text/javascript" language="javascript">
+
</script>
-
 
+
-
    function iFrameHeight() {
+
-
 
+
-
        var ifm= document.getElementById("iframepage");
+
-
 
+
-
        var subWeb = document.frames ? document.frames["iframepage"].document :
+
-
 
+
-
ifm.contentDocument;
+
-
 
+
-
            if(ifm != null && subWeb != null) {
+
-
 
+
-
            ifm.height = subWeb.body.scrollHeight;
+
-
 
+
-
            }
+
-
 
+
-
    }
+
-
 
+
-
</script>
+
-
 
+
-
    </div>
+
-
 
+
-
 
+
-
</body>
+
</html>
</html>

Latest revision as of 01:30, 18 October 2014