2013-11-19 16:55:01 +01:00
|
|
|
<!DOCTYPE html>
|
2013-11-27 11:12:50 +01:00
|
|
|
<!--
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
-->
|
2013-11-19 16:55:01 +01:00
|
|
|
<html manifest="manifest.appcache">
|
|
|
|
<head>
|
2013-11-25 16:58:21 +01:00
|
|
|
<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.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" />
|
2013-11-19 16:55:01 +01:00
|
|
|
</head>
|
|
|
|
<body>
|
2013-11-27 15:25:34 +01:00
|
|
|
<div id="uhr" class="uhr">
|
|
|
|
<span class="item dot dot1"></span>
|
|
|
|
<span class="item dot dot2"></span>
|
|
|
|
<span class="item dot dot3"></span>
|
|
|
|
<span class="item dot dot4"></span>
|
2013-11-27 15:40:56 +01:00
|
|
|
<div class="letterarea"></div>
|
2013-11-19 16:55:01 +01:00
|
|
|
<!-- glossy reflection -->
|
2013-11-27 15:25:34 +01:00
|
|
|
<span class="reflection"></span>
|
2013-11-19 16:55:01 +01:00
|
|
|
</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">
|
2013-11-26 12:48:15 +01:00
|
|
|
<input type="checkbox" name="onoffswitch" class="onoffswitch-checkbox" id="onoffswitch" checked="checked" onclick="uhr.toggle()" />
|
2013-11-19 16:55:01 +01:00
|
|
|
<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">
|
2013-11-27 15:40:56 +01:00
|
|
|
var uhr = new Uhr($('#uhr'), $('#theme'));
|
2013-11-19 16:55:01 +01:00
|
|
|
$(document).ready(function() {
|
2013-11-26 12:48:15 +01:00
|
|
|
$('#themeswitcher').on('change', function() {
|
|
|
|
uhr.setTheme(this.value);
|
2013-11-19 16:55:01 +01:00
|
|
|
});
|
2013-11-26 13:38:04 +01:00
|
|
|
$('#layoutswitcher').on('change', function() {
|
|
|
|
uhr.setLayout(this.value);
|
|
|
|
});
|
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);
|
2013-11-26 12:48:15 +01:00
|
|
|
uhr.setTheme(theme);
|
2013-11-25 14:38:25 +01:00
|
|
|
$('#layoutswitcher').val(layout);
|
2013-11-26 12:48:15 +01:00
|
|
|
uhr.setLayout(layout);
|
2013-11-25 14:38:25 +01:00
|
|
|
if (status == 'on') {
|
2013-11-26 12:48:15 +01:00
|
|
|
uhr.start();
|
2013-11-26 12:56:52 +01:00
|
|
|
$('#onoffswitch').prop('checked', true);
|
2013-11-25 14:38:25 +01:00
|
|
|
} else {
|
2013-11-26 12:48:15 +01:00
|
|
|
uhr.stop();
|
2013-11-26 12:56:52 +01:00
|
|
|
$('#onoffswitch').prop('checked', false);
|
2013-11-25 14:38:25 +01:00
|
|
|
}
|
2013-11-19 16:55:01 +01:00
|
|
|
});
|
|
|
|
</script>
|
2013-11-26 13:25:50 +01:00
|
|
|
<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>
|
2013-11-19 16:55:01 +01:00
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
|