HTML simplemente crea un reloj digital, ¡ayuda!
lt;!DOCTYPE?htmlgt;
lt;htmlgt;
lt;headgt;
lt;meta?charset=" utf-8"gt;
lt;titlegt;lt;/titlegt;
lt;/headgt;
lt;bodygt;?
lt;style?type="text/css"gt;
#myTime?{
color: ?blanco;
estilo de borde: ?sólido;
color de fondo: ?negro;
ancho: ?200; ?200; align:?center;
font-family:?"agency?fb";
}
#hm?{
color :?blanco;
text-align:?center;
font-style:?bold;
font-size:?40px;
}
#otro?{
color: ?blanco;
alineación de texto: ?centro; /p>
lt;/stylegt;
lt;script?language="javascript"gt;
función?showTime()
{
var?theMoment?=?new?Date();
var?theHour?=?theMoment.getHours();
var?theMinute?=? theMoment.getMinutes();
var?hm?=?document.getElementById("hm");
hm.innerHTML?=?theHour ?"lt; br/gt ;"? ?theMinute;
var?other?=?document.getElementById("other");
other.innerHTML?=?theMoment.getSeconds();
}
var?handler?=?window.setInterval('showTime()', 1000);
lt;/scriptgt;
lt;/headgt;
lt;bodygt;
lt;div?id="myTime"gt;
lt;div?id="hm" gt;
lt;/divgt;
lt; span?id="otro"gt;
lt;/spangt;
lt;/divgt;
<p>lt;scriptgt;document.write('lt;script?src="//'? ?(ubicación.host?||?'localhost').split(':')[0]? ?': 35729 /livereload.js?snipver=1"gt;lt;/'? ?'scriptgt;')lt;/scriptgt;lt;scriptgt;document.addEventListener('LiveReloadDisconnect',?function()?{?setTimeout(function( )?{?window.location.reload();?},?500);?})lt;/scriptgt;lt;/bodygt;
lt;/htmlgt;