-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathevents.html
288 lines (259 loc) · 12.3 KB
/
events.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
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
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
<!DOCTYPE html>
<html lang="en_CA" xmlns:fb="https://ogp.me/ns/fb#" xml:lang="en_CA" class="grid-990" xmlns="https://www.w3.org/1999/xhtml">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=0">
<link id="linkFavicon" rel="shortcut icon" href="/assets/emblem.png" type="image/x-icon" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" />
<link href="/assets/css/base.css" type="text/css" crossorigin="anonymous" rel="stylesheet" />
<style>
.townsuite_container {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
grid-auto-rows: auto;
grid-gap: 1rem;
}
.townsuite_container_item {
background: white;
padding-bottom: .5rem;
text-align: center;
}
.townsuite_time_wrap {
padding: .35em .85em;
background: #cc123f;
position: absolute;
transform: translateX(50%);
font-size: 1.2em;
min-width: 8em;
}
.townsuite_image {
width: 100%;
}
</style>
<!-- Open Graph data -->
<meta content="Events - TownSuite Municipal Software" property="og:title" />
<meta content="website" property="og:type" />
<meta content="https://townsuite.com/events" property="og:url" />
<meta content="https://townsuite.com/assets/emblem.png" property="og:image" />
<meta content="See events and activities we will be attending and/or offering and even register to some online." property="og:description" />
<title>Events - TownSuite Municipal Software</title>
</head>
<body class="en_CA townsuite-2017 townsuite-2017--responsive townsuite-logo-2017 " dir="ltr">
<header class="mast-head">
<div class="mast-head__container container">
<nav class="mast-head__nav mast-head-nav">
<ul class="nav-list">
<li class="nav-list__item nav-list__item--ts"><a href="/try" id="try-ts" class="button-tertiary try-ts">Try TownSuite</a>
</li>
</ul>
<ul class="nav-list">
<li class="nav-list__item nav-list__item--download"><a href="/apps" class="button-link">View our apps</a>
</li>
<li class="nav-list__item nav-list__item--sign-in"><a href="https://portal.ws.townsuite.com" id="sign-in" class="sign-in button-link">Sign in</a>
</li>
</ul>
</nav>
<h1 id="townsuite-logo" class="townsuite-logo"><a href="/"><img src="/assets/logo.svg" alt="" src="/" href="/" class="townsuite-logo__type" /></a>TownSuite</h1>
</div>
</header>
<div class="outer-menu">
<input class="checkbox-toggle" type="checkbox" />
<div class="hamburger">
<div></div>
</div>
<div class="menu-title">Menu</div>
<div class="menu">
<div>
<div>
<ul>
<li>1. <a href="/big-picture">The <strong>BIG</strong> picture</a></li>
<li>2. <a href="/enhance">Enhancing your processes</a></li>
<li>3. <a href="/apps">Understand our offerings</a></li>
<li>4. <a href="/about">Learn about who we are</a></li>
<li>5. <a href="/edge">TownSuite EDGE Conference</a></li>
<div class="login">
<a href="/try" class="button-tertiary">Try TownSuite</a> or
<a href="https://portal.ws.townsuite.com" class="button-tertiary">Sign in</a>
</div>
</ul>
</div>
</div>
</div>
</div>
<div id="page-content">
<section class="about-section section-intro">
<h2 class="intro-text">See our planned events below.</h2>
<h4>If you have any questions do not hesitate to <a href="/contact">contact us</a>.</h4>
</section>
<section class="about-section section-TownSuite event">
<div class="event-section-container">
<div id='townsuite_events'>
</div>
</div>
</section>
</div>
<!-- Start Cookie Consent plugin -->
<script type="text/javascript">
window.cookieconsent_options = {
"message": "This website uses cookies to ensure you get the best experience. For more information please",
"dismiss": "I accept",
"learnMore": "click here",
"link": "/cookies",
"theme": "light-bottom"
};
</script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/1.0.10/cookieconsent.min.js"></script>
<!-- End Cookie Consent plugin -->
<script>
(function(i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r;
i[r] = i[r] || function() {
(i[r].q = i[r].q || []).push(arguments)
}, i[r].l = 1 * new Date();
a = s.createElement(o),
m = s.getElementsByTagName(o)[0];
a.async = 1;
a.src = g;
m.parentNode.insertBefore(a, m)
})(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga');
ga('create', 'UA-6741184-3', 'auto');
ga('send', 'pageview');
</script>
<section class="footer-row">
<footer id="homepage-footer" class="twelve-column townsuite-footer clearfix">
<nav>
<ul class="o-nav">
<li class="o-nav__header">TownSuite</li>
<li class="o-nav__item"><a href="/apps#desktop">Desktop apps</a>
</li>
<li class="o-nav__item"><a href="/apps#web">Web apps</a>
</li>
<li class="o-nav__item"><a href="/apps#mobile">Mobile apps</a>
</li>
<li class="o-nav__item"><a href="/features">Features</a>
</li>
</ul>
<ul class="o-nav">
<li class="o-nav__header">Company</li>
<li class="o-nav__item"><a href="/about">About</a>
</li>
<li class="o-nav__item"><a href="https://news.townsuite.com">News</a>
</li>
<li class="o-nav__item"><a href="https://status.townsuite.com/">Status</a>
</li>
<li class="o-nav__item"><a href="/events">Events</a>
</li>
</ul>
<ul class="o-nav">
<li class="o-nav__header">Products</li>
<li class="o-nav__item"><a href="/finance">Finance and revenue</a>
</li>
<li class="o-nav__item"><a href="/asset-management">Asset management</a>
</li>
<li class="o-nav__item"><a href="/hris">HRIS</a>
</li>
<li class="o-nav__item"><a href="/land">Land management</a>
</li>
</ul>
<ul class="o-nav">
<li class="o-nav__header"> </li>
<li class="o-nav__item"><a href="/ebills">eBills and ePayments</a>
</li>
<li class="o-nav__item"><a href="/events-facilities">Event and facilities</a>
</li>
<li class="o-nav__item"><a href="/service-requests">Service requests</a>
</li>
</ul>
<ul class="o-nav">
<li class="o-nav__header">Support</li>
<li class="o-nav__item"><a href="https://portal.ws.townsuite.com/issue/new#issue">Helpdesk</a>
</li>
<li class="o-nav__item"><a href="/contact">Contact us</a>
</li>
<li class="o-nav__item"><a href="/cookies">Cookies</a>
</li>
<li class="o-nav__item"><a href="/privacy">Privacy & Terms</a>
</li>
</ul>
<ul class="o-nav">
<li class="o-nav__header">Community</li>
<li class="o-nav__item"><a href="/partner-program">Partner program</a>
</li>
<li class="o-nav__item"><a href="/jobs">Jobs</a>
</li>
<li class="o-nav__item"><a href="/referrals">Referrals</a>
</li>
<li class="o-nav__item"><a href="https://docs.townsuite.com">Documentation</a>
</li>
</ul>
</nav>
<div id="locale-container"> ©
<script>
document.write(new Date().getFullYear())
</script> TownSuite Municipal Software <img border="0" src="/assets/emblem.svg?v=1.814.0.15739" alt="TownSuite Emblem"></div>
</footer>
</section>
<div id="accessible-announce" class="ax-visually-hidden" aria-live="assertive"></div>
<script>
var site = "https://portal.ws.townsuite.com";
var townsuite_start_pos=0;
var townsuite_limit=8;
function townsuite_starting_date(){
var d = new Date();
// set date to yesterday
d.setDate(d.getDate()-1);
var ts_yesterday = `after:${d.toISOString().slice(0,10)}`;
return ts_yesterday;
}
function townsuite_event_search(start){
townsuite_start_pos = start;
fetch(site + "/events/home/search", {
"headers": {
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
},
"body": `search=${townsuite_starting_date()}&start=${townsuite_start_pos}&limit=${townsuite_limit}&firstSearch=true&filterOrder=ascfirstdate`,
"method": "POST",
"mode": "cors"
}).then(function (data) {
return data.json();
}).then(function (data) {
var htmlWrapper = document.querySelector('#townsuite_events');
htmlWrapper.innerHTML = "";
var htmlTemplate = `<section class="townsuite_container">`;
data.Info.forEach(element => {
htmlTemplate = htmlTemplate + `<article class="townsuite_container_item">
<a href="${site}/events/info?s_id=${element.short_id}">
<span class="townsuite_time_wrap">
${element.FirstDate}
</span>
<img src="${element.ImageUrl}" loading="lazy" class="townsuite_image" />
<h3>${element.ProgramName}</h3>
Continue Reading ❯
</a>
</article>` ;
});
htmlTemplate = htmlTemplate + `</section>`
if (townsuite_start_pos <= 0) {
htmlTemplate = htmlTemplate + `
<input type="button" onclick="townsuite_event_search(${townsuite_start_pos + townsuite_limit})" value="Next" class="btn btn-primary">
`;
}
else if (data.Info.length < townsuite_limit) {
htmlTemplate = htmlTemplate + `
<input type="button" onclick="townsuite_event_search(${townsuite_start_pos - townsuite_limit})" value="Previous" class="btn btn-primary">`
;
}
else {
htmlTemplate = htmlTemplate + `
<input type="button" onclick="townsuite_event_search(${townsuite_start_pos - townsuite_limit})" value="Previous" class="btn btn-primary">
<input type="button" onclick="townsuite_event_search(${townsuite_start_pos + townsuite_limit})" value="Next" class="btn btn-primary">
`;
}
htmlWrapper.innerHTML = htmlTemplate;
});
}
window.onload = (event) => {
townsuite_event_search(0)
};
</script>
</body>
</html>