2013-11-19 16:55:01 +01:00
|
|
|
<!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>
|
2013-11-25 14:20:58 +01:00
|
|
|
<script type="text/javascript" src="jquery.cookie.js"></script>
|
2013-11-19 16:55:01 +01:00
|
|
|
<script type="text/javascript" src="uhr.js"></script>
|
2013-11-25 10:57:30 +01:00
|
|
|
<script type="text/javascript" src="uhr-de_CH.js"></script>
|
2013-11-25 13:25:02 +01:00
|
|
|
<script type="text/javascript" src="uhr-de.js"></script>
|
2013-11-25 14:06:18 +01:00
|
|
|
<script type="text/javascript" src="uhr-en.js"></script>
|
2013-11-19 16:55:01 +01:00
|
|
|
<link rel="stylesheet" type="text/css" href="uhr.css" />
|
|
|
|
<link rel="stylesheet" type="text/css" href="uhr-black.css" id="theme" />
|
2013-11-25 10:14:10 +01:00
|
|
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
2013-11-19 16:55:01 +01:00
|
|
|
</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>
|
2013-11-25 10:14:10 +01:00
|
|
|
<div id="renderarea"></div>
|
2013-11-19 16:55:01 +01:00
|
|
|
<!-- glossy reflection -->
|
|
|
|
<span id="reflection"></span>
|
|
|
|
</div>
|
2013-11-25 13:25:02 +01:00
|
|
|
<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>
|
2013-11-25 14:06:18 +01:00
|
|
|
<option value="en">English</option>
|
2013-11-25 13:25:02 +01:00
|
|
|
</select>
|
2013-11-19 16:55:01 +01:00
|
|
|
<div class="onoffswitch">
|
|
|
|
<input type="checkbox" name="onoffswitch" class="onoffswitch-checkbox" id="onoffswitch" checked="checked" onclick="updateClockState()" />
|
|
|
|
<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">
|
|
|
|
$(document).ready(function() {
|
2013-11-25 13:25:02 +01:00
|
|
|
$('#themeswitcher').on('change', function() {
|
|
|
|
switchTheme(this.value);
|
|
|
|
});
|
|
|
|
$('#layoutswitcher').on('change', function() {
|
|
|
|
switchLayout(this.value);
|
2013-11-19 16:55:01 +01:00
|
|
|
});
|
2013-11-25 14:38:25 +01:00
|
|
|
$.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);
|
|
|
|
switchTheme(theme);
|
|
|
|
$('#layoutswitcher').val(layout);
|
|
|
|
switchLayout(layout);
|
|
|
|
if (status == 'on') {
|
|
|
|
if(!isOn()) {
|
|
|
|
$('#onoffswitch').click();
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
if(isOn()) {
|
|
|
|
$('#onoffswitch').click();
|
|
|
|
}
|
|
|
|
}
|
2013-11-19 16:55:01 +01:00
|
|
|
});
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
|