96 lines
2.9 KiB
HTML
96 lines
2.9 KiB
HTML
|
<!DOCTYPE html>
|
||
|
<html manifest="manifest.appcache">
|
||
|
<head>
|
||
|
<title>Die Zeit als Wort - in HTML, CSS und JS</title>
|
||
|
<script type="text/javascript" src="jquery-2.0.3.min.js"></script>
|
||
|
<script type="text/javascript" src="jquery.cookie.js"></script>
|
||
|
<script type="text/javascript" src="uhr-object.js"></script>
|
||
|
<script type="text/javascript" src="uhr.js"></script>
|
||
|
<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>
|
||
|
<link rel="stylesheet" type="text/css" href="uhr.css" />
|
||
|
<link rel="stylesheet" type="text/css" href="uhr-black.css" id="theme" />
|
||
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
||
|
</head>
|
||
|
<body>
|
||
|
<div id="uhr">
|
||
|
<span class="item dot dot1" id="dot1"></span>
|
||
|
<span class="item dot dot2" id="dot2"></span>
|
||
|
<span class="item dot dot3" id="dot3"></span>
|
||
|
<span class="item dot dot4" id="dot4"></span>
|
||
|
<div id="renderarea"></div>
|
||
|
<!-- glossy reflection -->
|
||
|
<span id="reflection"></span>
|
||
|
</div>
|
||
|
<select id="themeswitcher">
|
||
|
<option value="black">Schwarz</option>
|
||
|
<option value="red">Rot</option>
|
||
|
<option value="blue">Blau</option>
|
||
|
<option value="green">Grün</option>
|
||
|
<option value="white">Weiss</option>
|
||
|
</select>
|
||
|
<select id="layoutswitcher">
|
||
|
<option value="de_CH">Bärndütsch</option>
|
||
|
<option value="de">Hochdeutsch</option>
|
||
|
<option value="en">English</option>
|
||
|
</select>
|
||
|
<div class="onoffswitch">
|
||
|
<input type="checkbox" name="onoffswitch" class="onoffswitch-checkbox" id="onoffswitch" checked="checked" onclick="uhr.toggle();" />
|
||
|
<label class="onoffswitch-label" for="onoffswitch">
|
||
|
<div class="onoffswitch-inner"></div>
|
||
|
<div class="onoffswitch-switch"></div>
|
||
|
</label>
|
||
|
</div>
|
||
|
<p id="disclaimer">Created by fritteli, inspired by <a href="http://www.qlocktwo.com/">QLOCKTWO</a>.
|
||
|
<script type="text/javascript">
|
||
|
var uhr = new Uhr($('#renderarea'), $('#theme'));
|
||
|
uhr.register('de_CH', layout['de_CH']);
|
||
|
uhr.register('de', layout['de']);
|
||
|
uhr.register('en', layout['en']);
|
||
|
$(document).ready(function() {
|
||
|
$('#layoutswitcher').on('change', function() {
|
||
|
uhr.setLayout(this.value);
|
||
|
});
|
||
|
$('#themeswitcher').on('change', function() {
|
||
|
uhr.setTheme(this.value);
|
||
|
});
|
||
|
$.cookie.defaults.expires = 365;
|
||
|
$.cookie.defaults.path = '/';
|
||
|
var theme = $.cookie('theme');
|
||
|
var layout = $.cookie('layout');
|
||
|
var status = $.cookie('status');
|
||
|
if (theme == undefined) {
|
||
|
theme = 'black';
|
||
|
}
|
||
|
if(layout == undefined) {
|
||
|
layout = 'de_CH';
|
||
|
}
|
||
|
if (status == undefined) {
|
||
|
status = 'on';
|
||
|
}
|
||
|
$('#themeswitcher').val(theme);
|
||
|
uhr.setTheme(theme);
|
||
|
$('#layoutswitcher').val(layout);
|
||
|
uhr.setLayout(layout);
|
||
|
|
||
|
if (status == 'on') {
|
||
|
uhr.start();
|
||
|
if(!isOn()) {
|
||
|
uhr.stop();
|
||
|
$('#onoffswitch').click();
|
||
|
}
|
||
|
} else {
|
||
|
uhr.stop();
|
||
|
if(isOn()) {
|
||
|
uhr.start();
|
||
|
$('#onoffswitch').click();
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
|
||
|
</script>
|
||
|
</body>
|
||
|
</html>
|
||
|
|