-
Notifications
You must be signed in to change notification settings - Fork 1
/
sandbox.html
36 lines (34 loc) · 1.79 KB
/
sandbox.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Sandbox</title>
<link rel="stylesheet" type="text/css" href="css/select2/select2.css">
<link rel="stylesheet" type="text/css" href="css/ui-lightness/jquery-ui-1.10.4.custom.css">
<link rel="stylesheet" type="text/css" href="css/ftz.css">
</head>
<body>
<script type="text/javascript" src="lib/cities.js"></script>
<script type="text/javascript" src="lib/jquery-2.0.3.js"></script>
<script type="text/javascript" src="lib/jquery-ui-1.10.4.custom.js"></script>
<script type="text/javascript" src="lib/jquery.cookie.js"></script>
<script type="text/javascript" src="lib/select2.js"></script>
<script type="text/javascript" src="lib/moment-with-langs.js"></script>
<script type="text/javascript" src="lib/moment-timezone.js"></script>
<script type="text/javascript" src="lib/moment-timezone-data.js"></script>
<script type="text/javascript" src="src/dst.js"></script>
<script type="text/javascript" src="src/ftz.js"></script>
<table id='test'><tr><td>This is a test.</td></tr></table>
<script type="text/javascript">
$(window).load(function () {
$(function() {
//$('#test').timezoneTable({'cities': [{'name': 'Seattle', 'tz': 'America/Los_Angeles'}, {'name': 'London', 'tz': 'Europe/London'}]});
var cities = JSON.parse($.cookie('cities') || "[]");
$('#test').timezoneTable({'cities': cities});
$('#test').on('citieschanged', function (e, city, cities) {
$.cookie('cities', JSON.stringify(cities));
});
});
});
</script>
</body>
</html>