forked from fossasia/open-event-wsgen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
speakers.hbs
246 lines (231 loc) · 10.2 KB
/
speakers.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
<!DOCTYPE html>
<!--
Note to contributors: Do not submit any changes to this page, as it is generated automatically
from https://github.com/fossasia/open-event-scraper.
-->
<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/speakers.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="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">
<!-- 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">
<!-- 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]-->
<style>
.search-filter>label>.fa {
position: absolute;
padding-top: 25px;
padding-left: 67px;
}
@media only screen and (max-width: 600px) {
.search-filter>label>.fa {
position: absolute;
padding-top: 25px;
padding-left: 40px;
}
}
</style>
</head>
<body id="speaker-body">
<a href="#speakers-list" class="skip">Skip to content</a>
{{> scroll}}
<a id="top"></a>
{{> navbar}}
<div class="main container" id="speaker-container">
<div class="row">
<div class="middle col-sm-12">
<h2 class="filter-heading track-heading text-center">
<span>
Speakers
</span>
</h2>
</div>
</div>
<!-- --------------------------------------------------------------
search-filter, search-filter-speaker and fossasia-filter
These classes are designed for search tab.
--------------------------------------------------------------- -->
<div class="row" style="margin: auto; max-width: 300px;">
<div class="search-filter search-filter-speaker" id="speakers-list">
<label for="search-input"><i class="fa fa-search" aria-hidden="true"></i></label>
<input class="fossasia-filter" type="text" placeholder="Search">
</div>
</div>
<div class="row speakers-row">
{{#speakerslist}}
<div class="col-md-3 col-sm-6 speaker-column" id="{{speaker_id}}">
<div class="speaker">
<div class="image-holder">
<a class="anchor" id="{{nameIdSlug}}"></a>
{{#if photo}}
<img onError="this.onerror=null;this.src='images/avatar.png';" data-original="{{photo}}" class="lazy background-image" alt="{{name}}" />
{{else}}
<img class="background-image" alt="{{name}}" src="images/avatar.png"/>
{{/if}}
<div class="responsive-overlay">
<div class="text-center preserve3d">
<div class="bio vertical-align">
</div>
<div class="social-links vertical-align">
{{#if website}}
<a href="{{website}}"><i class="icon fa fa-external-link"></i></a>
{{/if}}
{{#if github}}
<a href="{{github}}"><i class="icon fa fa-github"></i></a>
{{/if}}
{{#if twitter}}
<a href="{{twitter}}"><i class="icon fa fa-twitter"></i></a>
{{/if}}
{{#if linkedin}}
<a href="{{linkedin}}"><i class="icon fa fa-linkedin"></i></a>
{{/if}}
</div>
</div>
</div>
</div>
<div class="pop-box hide">
<div class="arrow">
<span></span>
</div>
<div class="pop-container" id="pop-speaker-name">
<div class="pop">
<div class="pop-header">
<span class="s-popup-header-name"><strong>{{name}}</strong>
{{#if organisation}}
{{#ifvalue organisation notequals=""}}
({{position}} {{organisation}})
{{/ifvalue}}
{{/if}}</span>
</div>
<div class="pop-over row">
{{{long_biography}}}
<div id="speaker-social-icons" class="icons row">
{{#if website}}
<div class="col-xs-1 col-sm-1 col-md-1"><a href="{{website}}"><i class="fa fa-home"></i></a></div>
{{/if}}
{{#if github}}
<div class="col-xs-1 col-sm-1 col-md-1"><a href="{{github}}"><i class="fa fa-github"></i></a></div>
{{/if}}
{{#if twitter}}
<div class="col-xs-1 col-sm-1 col-md-1"><a href="{{twitter}}"><i class="fa fa-twitter"></i></a></div>
{{/if}}
{{#if linkedin}}
<div class="col-xs-1 col-sm-1 col-md-1"><a href="{{linkedin}}"><i class="fa fa-linkedin"></i></a></div>
{{/if}}
<a class="session-link clickable-link">
<div class="col-xs-1 col-sm-1 col-md-1"><i class="fa fa-share"></i></div>
</a>
</div>
<div class="social-buttons-speaker row">
{{> social}}
<div class="row social-link">
<input class="speakers-inputbox" type="text" onclick="this.select()" value="base#{{nameIdSlug}}" readonly\>
</div>
</div>
</div>
<hr class="line">
<h4 class="session-header text"><strong>Sessions</strong></h4>
<div class="pop-speakers">
<div class="pop-over row">
<div class="sessions col-xs-12 col-md-12">
{{#each sessions}}
<h5>
<strong>
{{date}}
<span id="session-location" >{{microlocation}}</span>
</strong>
</h5>
{{#if ../../mode}}
<a href = "sessions/session_{{session_id}}.html">
{{else}}
<a href = "tracks.html#{{session_id}}">
{{/if}}
<h4 style="background-color:{{color}}; color:{{font_color}}" class="sizeevent event">
<span class="time-track">{{start}} - {{end}} • </span>
<span>{{title}}</span>
</h4>
</a>
{{/each}}
<center><h5 class="card-text"></h5></center>
</div>
</div>
</div>
</div>
</div>
</div>
<span class="speaker-name">{{name}}</span>
<span class="speaker-name org-name">{{position}} {{organisation}}</span>
</div>
</div>
{{/speakerslist}}
</div>
</div>
{{> footer}}
<script src="./js/jquery.min.js"></script>
<script src="./js/bootstrap.min.js" type="text/javascript"></script>
<script type="text/javascript" src="./js/speakers.min.js"></script>
<script type="text/javascript">
$(function() {
$("img.lazy").lazyload({
threshold : 2000
});
});
$(document).ready(function(){
$('.session-link').click(function() {
$(this).parent().parent().find("div.social-buttons-speaker").toggle();
var val = $(this).parent().parent().find('.speakers-inputbox').val();
$(this).parent().parent().find('.speakers-inputbox').val(window.location.href.split('#')[0] + '#' + val.split('#').pop());
});
$('.fossasia-filter').change(function() {
var filterVal = $(this).val();
if (filterVal) {
$('.speaker').each(function() {
if ($(this).find('.speaker-name').text().toUpperCase().indexOf(filterVal.toUpperCase()) < 0 &&
$(this).find('.pop-over').text().toUpperCase().indexOf(filterVal.toUpperCase()) < 0) {
$(this).parent().hide();
} else if ($(this).find(".speaker-name").text().toUpperCase().indexOf(filterVal.toUpperCase()) >= 0 ||
$(this).find(".pop-over").text().toUpperCase().indexOf(filterVal.toUpperCase()) >= 0) {
$(this).parent().show();
}
});
} else {
$('.speaker').each(function() {
$(this).parent().show();
});
}
// show "no results" if search input value matches zero items
if ($('.speaker:visible').length == 0) {
$('#no-results').remove();
$('.search-filter-speaker:first').after('<p id="no-results" style="color: red; padding-left: 25px; margin-left: 30px; font-weight: bold">No matching results found.</p>');
} else {
$('#no-results').remove();
}
return false;
}).keyup(function() {
$(this).change();
});
});
</script>
</body>
</html>