time() funktion implementiert; damit kann eine fixe zeit gesetzt werden. noch nicht ganz ausgereift.

This commit is contained in:
Manuel Friedli 2014-01-11 22:54:46 +01:00
parent 9710663b1d
commit 831f1facd7
3 changed files with 75 additions and 33 deletions

View file

@ -30,16 +30,29 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
</head>
<body style="padding:0;margin:0;">
<div id="uhr"></div>
<div style="display:inline-block;">
<h3>Uhr mit der aktuellen Zeit</h3>
<div id="uhr"></div>
</div>
<div style="display:inline-block;">
<h3>Uhr mit statischer Zeit</h3>
<div id="uhr-statictime"></div>
</div>
<p id="disclaimer">Created by fritteli, inspired by <a href="http://www.qlocktwo.com/">QLOCKTWO</a>.
<script type="text/javascript" src="uhr-de_CH.js"></script>
<script type="text/javascript" src="uhr-de.js"></script>
<script type="text/javascript" src="uhr-en.js"></script>
<script type="text/javascript">
var height = jQuery(window).height();
var width = jQuery(window).width();
var size = height < width ? height : width;
$('#uhr').uhr({width:size+'px'});
var size = 300;
$('#uhr').uhr({
width: size + 'px'
});
$('#uhr-statictime').uhr({
width: size + 'px',
time: new Date(1982, 2, 22, 0, 12, 0)
});
// Auch möglich:
//$('#uhr-statictime').uhr("time", new Date(1982, 2, 22, 0, 10, 0));
</script>
</body>
</html>