-
Notifications
You must be signed in to change notification settings - Fork 860
/
Copy pathevent.hbs
271 lines (249 loc) · 10.8 KB
/
event.hbs
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
<!DOCTYPE html>
<html lang="en">
<head>
{{> googleanalytics}}
<link rel="preload" as="script" href="./js/jquery.min.js">
<link rel="preload" as="script" href="./js/bootstrap.min.js">
<link rel="preload" as="script" href="./js/event.min.js">
<link rel="preload" as="style" href="./css/schedule.css">
<link rel="preload" as="style" href="./css/font-awesome.min.css">
<link rel="preload" as="style" href="./css/bootstrap.min.css">
<link rel="manifest" href="./manifest.json">
<link rel="preload" as="font" href="https://fonts.googleapis.com/css?family=Open+Sans:400,600,300" crossorigin>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#317EFB"/>
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<meta name="description" content="{{ apptitle }} Schedule">
<meta name="author" content="{{ metaauthor }}">
<title>{{ apptitle }}</title>
<!-- Bootstrap core CSS -->
<!-- Latest compiled and minified CSS -->
<link rel="shortcut icon" href="{{ eventurls.ico_url }}" type="image/x-icon" />
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,600,300' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="./css/font-awesome.min.css">
<link rel="stylesheet" href="./css/bootstrap.min.css">
<link rel="stylesheet" href="./css/schedule.css">
<!-- Mapbox GL JS Javascript and CSS files for OSM-->
<script src="https://api.tiles.mapbox.com/mapbox-gl-js/v0.50.0/mapbox-gl.js" type="text/javascript"></script>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.50.0/mapbox-gl.css' rel='stylesheet' />
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<a href="#event" class="skip">Skip to content</a>
{{> scroll}}
<a id="top"></a>
{{> navbar}}
<div class="carousel slide" id="event">
<div id="info" class="carousel-inner">
<div style=" background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4)), url('{{eventurls.background_url }}');background-repeat: no-repeat;background-attachment: fixed;background-size: cover;background-position: center;" class="item active">
<div class="container">
<div class="carousel-caption">
<h4>{{eventurls.date}} {{eventurls.time}} to {{eventurls.end_date}} {{eventurls.end_time}}</h4>
<h1>{{eventurls.name}}</h1>
<h4><i class="fa fa-map-marker"></i>
{{eventurls.location}}</h4>
<p></p>
</div>
</div>
</div>
</div>
</div>
<div class="eventpage container">
{{#if eventurls.register}}
<div class="listing-panel row">
<div class="col-md-12">
<div class="row">
<div class="col-md-4">
</div>
<div class="ticket-button-container col-md-8">
<a href="{{eventurls.register}}" id="ticket-button" class="pull-right btn btn-lg btn-primary" role="button">Tickets</a>
</div>
</div>
</div>
</div>
{{/if}}
<a id="description"></a>
<div class ="container">
{{#if eventurls.description}}
<div class="row">
<div class="eventdes col-md-12"><p>{{{eventurls.description}}}</p></div>
</div>
{{/if}}
</div>
{{#if eventurls.featuresection}}
<div class="container">
<div class="row">
<div class="col-md-12">
<section class="speakers duplicatable-content">
<div class="container paddingzero">
<div class="row">
<div class="col-sm-12 text-center">
<h1 class="section-header">Featured Speakers</h1>
</div>
</div>
</div>
<div class="row featured-speakers">
{{#speakerslist}}{{#if featured}}
<div class="col-md-6 col-sm-12">
<div class="speaker-with-bio">
<div class="speaker">
<div class="image-holder">
{{#if photo}}
<img onError="this.onerror=null;this.src='./images/avatar.png';" data-original="{{photo}}" class="lazy background-image display-block" alt="{{name}}">
{{else}}
<img class="background-image display-block" alt="{{name}}" src="images/avatar.png"/>
{{/if}}
<div class="responsive-overlay">
<div class="hover-state text-center preserve3d">
<div class="social-links vertical-align">
{{#if website}}
<a href="{{website}}" target="default"><i class="icon fa fa-home"></i></a>
{{/if }}
{{#if twitter}}
<a href="{{twitter}}"><i class="icon fa fa-twitter"></i></a>
{{/if}}
{{#if facebook}}
<a href ="{{facebook}}"><i class="icon fa fa-facebook"></i></a>
{{/if}}
{{#if linkedin}}
<a href ="{{linkedin}}"><i class="icon fa fa-linkedin"></i></a>
{{/if}}
</div>
</div>
</div>
</div>
</div>
<div class="speaker-description">
<h2>{{name}}</h2>
<span class="sub">{{position}} {{organisation}}</span>
<p>
{{{long_biography}}}
</p>
</div>
</div>
</div>
{{/if}} {{/speakerslist}}
</div>
</section>
</div>
</div>
</div>
{{/if}}
</div>
{{#if eventurls.tweetUrl}}
<div class="row tweets-row">
<section class="container">
<div class="tweet-row">
<div class="col-sm-12 col-md-12 col-xs-12">
<i class ="social_twitter fa fa-twitter"></i>
<div class="tweets-feed" id="tweets" data-count=50 data-query="{{eventurls.twitterLink}}" data-from="{{eventurls.twitterLink}}">
<div class="arrow-up"></div>
<p id="tweet" class="tweet">
Loading...
</p>
<span id="dateTweeted"></span>
<p>Follow <u><b><a href="{{eventurls.tweetUrl}}"/>@{{eventurls.twitterLink}}</a></b></u> for more updates </p>
</div>
</div>
</div>
</section>
</div>
{{/if}}
{{#if eventurls.orgdescription}}
<div class="col-sm-12 col-md-12 col-xs-12 text-center">
<h1 class="section-header">Organized by {{eventurls.orgname}}</h1><br>
</div>
<section class="container">
<div class="row">
<div class="col-sm-12 col-md-12 col-xs-12 endspacing">
{{eventurls.orgdescription}}
</div>
</div>
</section>
{{/if}}
{{#if eventurls.sponsorsection}}
<div class="sponsor-container">
<section class="sponsorscont">
<div class="row sponsor-row">
<div class="col-sm-12 col-md-12 col-xs-12 text-center">
<h1 class="section-header">Proudly supported by</h1><br>
</div>
</div>
<div class="row">
<div class="col-sm-10 col-sm-offset-1">
<div class="row">
{{#each sponsorpics}}
{{#each this}}
<div class="sponsor-row-text {{divclass}}">
<div class="{{sponsorimg}} text-center">
<a href="{{url}}" data-toggle="tooltip" title="{{type}}">
<img class="lazy centre {{imgsize}}" alt="{{name}}" data-original="{{logo}}">
</a>
{{name}}
</div>
</div>
{{/each}}
{{/each}}
</div> <!-- sponsor-row -->
</div>
</div>
</section>
</div>
{{/if}}
{{#if eventurls.latitude}}
{{#if eventurls.longitude}}
<div class="location">
<div class="location-map row">
<div class="col-md-8" id="map">
</div>
<div class="address col-md-4">
{{#if eventurls.location}}
<h4> Address </h4>
<p>{{eventurls.location}}</p>
{{/if}}
<br>
{{#if eventurls.email}}
<h4>Contact</h4>
<p>{{eventurls.email}}</p>
{{/if}}
</div>
</div>
</div>
{{/if}}
{{/if}}
<input type="hidden" id="mappos" value="{{eventurls.latitude}},{{eventurls.longitude}}"/>
<input type="hidden" id="theme" value={{theme}} />
<input type="hidden" id="mapType" value={{map}} />
{{> footer}}
<script src="./js/jquery.min.js"></script>
<script src="./js/bootstrap.min.js" type="text/javascript"></script>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCd_L2ncYmf3Yyr6Or01E_ze6QEv289HYs" type="text/javascript"></script>
<script type="text/javascript" src="./js/event.min.js"></script>
<!--<script src="//platform.twitter.com/widgets.js" charset="utf-8"></script>-->
<script>
datafetcher();
if ('serviceWorker' in navigator) {
window.addEventListener('load', function() {
navigator.serviceWorker.register('./sw.js').then(function(registration) {
// Registration was successful
//console.log('ServiceWorker registration successful with scope: ', registration.scope);
}, function(err) {
// registration failed :(
console.log('ServiceWorker registration failed: ', err);
});
});
}
$(function() {
$("img.lazy").lazyload({
threshold: 2000
});
});
</script>
</body>
</html>