Difference between revisions of "Team:Tel-Hai"

Line 2: Line 2:
 
<head>
 
<head>
 
<link href="https://static.igem.org/mediawiki/2016/d/dc/T--Tel-Hai--test.txt" type="text/css" rel="stylesheet" />
 
<link href="https://static.igem.org/mediawiki/2016/d/dc/T--Tel-Hai--test.txt" type="text/css" rel="stylesheet" />
<script>
 
var ifrm;
 
function createIframe(){
 
        var contentHeight = document.getElementById("globalWrapper").offsetHeight;
 
        ifrm = document.createElement("iframe");
 
        ifrm.setAttribute("src", "http://igemtelhai.wixsite.com/telhaiigem");
 
        ifrm.style.width = "100%";
 
        ifrm.style.height = (window.innerHeight-contentHeight-40) + 'px';
 
        document.body.appendChild(ifrm);
 
  }
 
 
 
  function resizeIframe() {
 
    // alert("df");
 
        ifrm.parentNode.removeChild(ifrm);
 
        //document.removeChild(ifrm);
 
        createIframe();
 
      // ifrm.style.width = window.innerWidth;
 
        //ifrm.style.height = (window.innerHeight-contentHeight-40) + 'px';
 
  }
 
  
  document.addEventListener("DOMContentLoaded", function(event) {
 
    document.getElementById("sideMenu").style.display = "none";
 
document.getElementById("content").style.display = "none"; 
 
 
 
    createIframe() ;   
 
  });
 
 
  window.onresize = resizeIframe;
 
</script>
 
  
 
<head>
 
<head>

Revision as of 19:19, 7 September 2016

test