Team:Sevilla/Notebook

From 2011.igem.org

(Difference between revisions)
(Replaced content with "{{:Team:Sevilla/Templates/general}} <html> <img style="z-index:-5;" src="https://static.igem.org/mediawiki/2011/9/95/Notebook.png" /> </html>")
Line 3: Line 3:
<html>
<html>
<img style="z-index:-5;" src="https://static.igem.org/mediawiki/2011/9/95/Notebook.png" />
<img style="z-index:-5;" src="https://static.igem.org/mediawiki/2011/9/95/Notebook.png" />
-
 
-
 
-
 
-
<p id="ready">ArcanumTV....are you ready?</p>
 
-
 
-
<link href='http://fonts.googleapis.com/css?family=Miltonian' rel='stylesheet' type='text/css'>
 
-
<link href='http://fonts.googleapis.com/css?family=VT323' rel='stylesheet' type='text/css'>
 
-
 
-
 
-
 
-
<style>
 
-
#ready
 
-
{
 
-
    font-size:30px;
 
-
    color:blue;
 
-
font-family: 'Miltonian', serif;
 
-
}
 
-
#clock1
 
-
{
 
-
  float:right;
 
-
    font-size:50px;
 
-
font-family: 'VT323', serif;
 
-
}
 
-
</style>
 
-
 
-
 
-
<br />
 
-
 
-
<div id="clock1"> Quedan [clock1]</div>
 
-
<script language="JavaScript">
 
-
  StartCountDown("clock1","7/10/2011 08:53 AM -0400")
 
-
 
-
  /*
 
-
  Author: Robert Hashemian (http://www.hashemian.com/)
 
-
  Modified by: Munsifali Rashid (http://www.munit.co.uk/)
 
-
  Modified by: Tilesh Khatri
 
-
        Traslated by:  Josep Campanales (http://buscodescargas.com/)
 
-
  */
 
-
  function StartCountDown(myDiv,myTargetDate)
 
-
  {
 
-
    var dthen = new Date(myTargetDate);
 
-
    var dnow = new Date();
 
-
    ddiff = new Date(dthen-dnow);
 
-
    gsecs = Math.floor(ddiff.valueOf()/1000);
 
-
    CountBack(myDiv,gsecs);
 
-
  }
 
-
  function Calcage(secs, num1, num2)
 
-
  {
 
-
    s = ((Math.floor(secs/num1))%num2).toString();
 
-
    if (s.length < 2)
 
-
    {
 
-
      s = "0" + s;
 
-
    }
 
-
    return (s);
 
-
  }
 
-
  function CountBack(myDiv, secs)
 
-
  {
 
-
    var DisplayStr;
 
-
    var DisplayFormat = "%%D%% Días %%H%%:%%M%%:%%S%%";
 
-
    DisplayStr = DisplayFormat.replace(/%%D%%/g, Calcage(secs,86400,100000));
 
-
    DisplayStr = DisplayStr.replace(/%%H%%/g, Calcage(secs,3600,24));
 
-
    DisplayStr = DisplayStr.replace(/%%M%%/g, Calcage(secs,60,60));
 
-
    DisplayStr = DisplayStr.replace(/%%S%%/g, Calcage(secs,1,60));
 
-
    if(secs > 0)
 
-
    {
 
-
      document.getElementById(myDiv).innerHTML = DisplayStr;
 
-
      setTimeout("CountBack('" + myDiv + "'," + (secs-1) + ");", 990);
 
-
    }
 
-
    else
 
-
    {
 
-
      document.getElementById(myDiv).innerHTML = "Sesión Finalizada";
 
-
    }
 
-
  }
 
-
</script>
 
-
 
-
       
 
-
 
-
 
-
 
-
 
-
 
-
 
</html>
</html>

Revision as of 09:28, 1 July 2011