-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
104 lines (102 loc) · 4.76 KB
/
index.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<!doctype html>
<html lang="nb" manifest="manifest.php">
<!--<html lang="nb">-->
<head>
<meta charset="utf-8">
<title>Kvarteret Events</title>
<meta name="description" content="">
<meta name="author" content="Webgruppen - Kvarteret">
<!-- <script src="debug.js" type="application/x-javascript" charset="utf-8"></script> -->
<script type='text/javascript'>
// Taken from http://ednortonengineeringsociety.blogspot.com/2010/10/detecting-offline-status-in-html-5.html
// Script for detecting cache changes
var cache = window.applicationCache;
cache.addEventListener("error", function (e) {
console.log("There was an error in the manifest, downloading cached files or you're offline: " + e);
}, false);
cache.addEventListener("updateready", function () {
cache.swapCache();
console.log("Updated cache is ready");
// Even after swapping the cache the currently loaded page won't use it
// until it is reloaded, so force a reload so it is current.
window.location.reload(true);
console.log("Window reloaded");
}, false);
</script>
<script src="md5.js" type="application/x-javascript" charset="utf-8"></script>
<script src="json.js" type="application/x-javascript" charset="utf-8"></script>
<script src="jquery.min.js" type="application/x-javascript" charset="utf-8"></script>
<script src="jqtouch/jqtouch.js" type="application/x-javascript" charset="utf-8"></script>
<!--<script src="jqtouch/jqtouch.transitions.js" type="application/x-javascript" charset="utf-8"></script>-->
<script src="jquery.tmpl.js" type="application/x-javascript" charset="utf-8"></script>
<script src="jquery.mobevents.js" type="application/x-javascript" charset="utf-8"></script>
<script src="application.js" type="application/x-javascript" charset="utf-8"></script>
<style type="text/css" media="screen">@import "jqtouch/jqtouch.css";</style>
<style type="text/css" media="screen">@import "jqtouch/themes/kvarteret/theme.css";</style>
<style type="text/css" media="screen">@import "application.css";</style>
<meta name="apple-mobile-web-app-capable" content="yes" />
<link rel="apple-touch-icon-precomposed" href="logo.png" />
<link rel="apple-touch-icon" href="logo.png" />
</head>
<body>
<div id="home" class="current">
<div class="toolbar">
<a class="button" id="refreshEvents" href="#"><img src="jqtouch/themes/kvarteret/img/refresh.png" alt="refresh" /></a>
<h1>Fremtidige events</h1>
</div>
<script type="text/html" id="item_template">
<li class='event_list arrow'>
<a href='#event_${id}' id='${id}'>
<span class="event_title">${title}</span>
<span class="small_subinfo">
{{each categories}}
${$value.name}{{if $index < categories.length-1}}, {{/if}}
{{/each}}
i {{if location_id > 0}} ${commonLocation.name} {{else}} ${customLocation} {{/if}}
<br>${arranger.name}
</span>
<span class="small_subinfo with_date">
${formatTime(startTime)}
</span>
</a>
</li>
</script>
<div class="info hide" id="noLocalstorage">
<span>Kan ikke brukes i offlinemodus, ingen tilgang på lokal mellomlagring.</span>
</div>
<div class="info hide" id="noConnection">
<span>Får ikke kontakt med serveren. Sjekk om du er online.</span>
</div>
<ul id="items" class="rounded">
</ul>
<div class="info hide" id="noMoreEvents">
<span>Fant ikke flere events.</span>
</div>
<a href="#" class="grayButton hide" id="loadMoreBtn">Last flere</a>
<div class="info">
<a href="http://kvarteret.no/" class="logo" target="_blank"><img src="logo.png" alt="logo"/></a>
</div>
</div>
<script type="text/html" id="event_template">
<div id='event_${id}' class="event">
<div class="toolbar">
<h1>${title}</h1>
<a class="button back" href="#">Tilbake</a>
</div>
<p class="event_details">
<b>Når:</b>
{{if startDate == endDate}}
${formatDate(startDate)} ${formatTime(startTime)} til ${formatTime(endTime)}
{{else}}
${formatTime(startTime)} - ${formatDate(startDate)} til ${formatTime(endTime)} - ${formatDate(endDate)}
{{/if}}<br>
<b>Hvor:</b> {{if location_id > 0}} ${commonLocation.name} {{else}} ${customLocation} {{/if}}
<br /><b>Arrangør:</b> ${arranger.name}
{{if (covercharge != null) && (covercharge.length > 0) }}<br /><b>CC:</b> ${covercharge}{{/if}}
</p>
<p>{{html leadParagraph}}</p>
{{html description}}
</div>
</script>
</body>
</html>