Team:Osaka/Test2

From 2010.igem.org

(Difference between revisions)
Line 7: Line 7:
width: 200px; height: 50px;
width: 200px; height: 50px;
margin: auto; padding: 5px;
margin: auto; padding: 5px;
-
font-family: Arial; font-size: 18pt;
+
font-family: Arial; font-size: 0pt; //hides the ugly output from external php file since i cant modify it
}
}
</style>
</style>
-
<SCRIPT language="JavaScript" SRC="http://www.minisitegallery.com/2020/countdown.php?timezone=US/Eastern&countto=2010-11-05 00:00:00&do=t&data=iGEM 2010 Jamboree"></SCRIPT>
+
<SCRIPT type="text/javascript" SRC="http://www.minisitegallery.com/2020/countdown.php?timezone=US/Eastern&countto=2010-11-05 00:00:00&do=t&data=iGEM 2010 Jamboree">
 +
</SCRIPT>
 +
 
 +
<SCRIPT type="text/javascript">
 +
function tick()
 +
{
 +
    if (countdown < 0)   
 +
    {   
 +
        document.getElementById('TEST').innerHTML = "time's up!";
 +
    }
 +
    else   
 +
    {   
 +
        document.getElementById('TEST').innerHTML = convert_to_time(countdown);
 +
        document.write(mm + "minutes");
 +
        document.write(ss + "seconds");
 +
        setTimeout('tick()', 1000);
 +
    } 
 +
}
 +
document.write("<div id='TEST'></div>\n");
 +
tick();
 +
</SCRIPT>
</body>
</body>
</html>
</html>

Revision as of 15:41, 27 September 2010