-
Notifications
You must be signed in to change notification settings - Fork 2
/
landing.html
392 lines (341 loc) · 20.5 KB
/
landing.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
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- meta info + OG tags -->
<title>Danes je nov dan</title>
<meta name="description" content="Negujemo kritično misel. Postavljamo druga vprašanja. Hekamo nov dan. Skrbimo za varen, vključujoč in sodoben splet. In svet. Verjamemo v skupnost. Naše merilo je veselje do življenja.">
<meta name="author" content="Danes je nov dan, Inštitut za druga vprašanja">
<link rel="shortcut icon" href="http://danesjenovdan.si/favicon.ico">
<meta property="og:title" content="Danes je nov dan"/>
<meta property="og:type" content="article" />
<meta property="og:description" content="Negujemo kritično misel. Postavljamo druga vprašanja. Hekamo nov dan. Skrbimo za varen, vključujoč in sodoben splet. In svet. Verjamemo v skupnost. Naše merilo je veselje do življenja." />
<meta property="og:image" content="http://danesjenovdan.si/img/djndog.png" />
<!-- Bootstrap -->
<link href="/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<!-- font -->
<link href='http://fonts.googleapis.com/css?family=Titillium+Web:200,300,400,600,700&subset=latin-ext,latin' rel='stylesheet' type='text/css'>
<!-- icons -->
<link href="/icons_/icons.css" rel="stylesheet">
<!-- CSS -->
<link href="/css/guide.css" rel="stylesheet">
<!-- WP fix -->
<script>
(function() {
if ("-ms-user-select" in document.documentElement.style && navigator.userAgent.match(/IEMobile\/10\.0/)) {
var msViewportStyle = document.createElement("style");
msViewportStyle.appendChild(
document.createTextNode("@-ms-viewport{width:auto!important}")
);
document.getElementsByTagName("head")[0].appendChild(msViewportStyle);
}
})();
</script>
<style>
.bck-light-blue {
background-color: #c2d8d8 !important;
}
.col-light-blue, .link-light-blue {
color: #c2d8d8 !important;
}
.triangle-light-blue {
border-color: #c2d8d8 transparent transparent transparent;
}
.spacer {
height: 100px;
}
.col-black {
color: #272727 !important;
}
textarea.form-control {
border-radius: 0px;
outline: none;
box-shadow:none !important;
-webkit-appearance:none;
border: 2px solid #c2d8d8;
height: 200px;
font-size: 18px;
margin-bottom: 12px;
color: #7ebfbf;
}
#cefizeljemail, #cefizeljtext, #cefizeljname {
color: #704a45 !important;
border-color: #e3c3bf !important;
}
#cefizeljemail:hover, #cefizeljemail:active, #cefizeljemail:focus,
#cefizeljtext:hover, #cefizeljtext:active, #cefizeljtext:focus,
#cefizeljname:hover, #cefizeljname:active, #cefizeljname:focus {
border-color: #704a45 !important;
}
.ac-cefizelj svg path {
stroke: #dd786b !important;
}
</style>
</head>
<body>
<div class="container-fluid">
<div class="row bck-gray" id="header">
<div class="container">
<div class="row">
<div class="menu">
<h1 id="nologo">Danes je nov dan</h1>
</div>
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="cookiewarning">
<span class="cookiewords">Soglašam z uporabo piškotkov</span>
<br class="visible-xs">
<div class="confirmcookies btn-cookie bck-red">V REDU</div>
<div class="cookiemoreinfo btn-cookie bck-light-green">Želim več informacij</div>
</div>
</div>
</div>
</div>
<div class="col-md-12">
<h1 id="intro">Cefizelj copy. Negujemo kritično misel. Postavljamo druga vprašanja. Hekamo nov dan. Skrbimo za varen, vključujoč in sodoben splet. In svet. Verjamemo v skupnost. Naše merilo je veselje do življenja.</h1>
</div>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-md-4 col-sm-6">
<div class="tile tile-small bck-light-blue" data-href="/projekti" onclick="ga('send', {'hitType': 'event', 'eventCategory': 'landing', 'eventAction': 'projekti', 'eventValue': 2})">
<h1 class="tiletitle">Kako se kulturno organizirati?</h1>
<div class="arrow-down-right bck-light-blue"><div class="icon-arrow-down-right col-red"></div></div>
</div>
</div>
<div class="col-md-4 col-sm-6">
<div class="tile tile-small bck-light-blue" data-href="/konsenz" onclick="ga('send', {'hitType': 'event', 'eventCategory': 'landing', 'eventAction': 'konsenz', 'eventValue': 4})">
<h1 class="tiletitle">Kako organizirati dogodek?</h1>
<div class="arrow-down-right bck-light-blue"><div class="icon-arrow-down-right col-red"></div></div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="spacer"></div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="card">
<div class="cardtitlecontainer">
<h1 class="cardtitle col-black">Kako lahko pomagam z novimi vsebinami?</h1>
<div class="triangle triangle-top triangle-light-blue"></div>
<div class="triangle triangle-bottom"></div>
</div>
<div class="row">
<div class="col-md-6">
<p class="tooltiptext">Blah blah fucking blah. Blah blah fucking blah. Blah blah fucking blah. Blah blah fucking blah. Blah blah fucking blah. Blah blah fucking blah. Blah blah fucking blah. Blah blah fucking blah. </p>
<p class="tooltiptext">Blah blah fucking blah. Blah blah fucking blah. Blah blah fucking blah. Blah blah fucking blah. Blah blah fucking blah. Blah blah fucking blah. Blah blah fucking blah. Blah blah fucking blah. </p>
<p class="tooltiptext">Blah blah fucking blah. Blah blah fucking blah. Blah blah fucking blah. Blah blah fucking blah. Blah blah fucking blah. Blah blah fucking blah. Blah blah fucking blah. Blah blah fucking blah. </p>
<p class="tooltiptext">Blah blah fucking blah. Blah blah fucking blah. Blah blah fucking blah. Blah blah fucking blah. Blah blah fucking blah. Blah blah fucking blah. Blah blah fucking blah. Blah blah fucking blah. </p>
</div>
<div class="col-md-6">
<form class="ac-custom ac-checkbox ac-checkmark ac-cefizelj">
<p class="tooltiptext">Email:</p>
<input id="cefizeljemail" type="email" class="form-control" placeholder="ti@email.com">
<p class="tooltiptext">Kako nam boš pomagala?</p>
<textarea id="cefizeljtext" class="form-control"></textarea>
<ul>
<li><input id="cefizeljdodajme" class="dodajme" name="cefizeljdodajme" type="checkbox"><label for="cefizeljdodajme">dodaj me na listo podpornikov</label><svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"></svg></li>
</ul>
<div class="hider cefizelj-hider">
<p class="popuptext">Zaupaj nam še svoje polno ime.</p>
<input id="cefizeljname" type="text" class="form-control" placeholder="Ime Priimek">
</div>
</form>
<button class="btn btn-popup push bck-red" id="submitcefizeljemail">Oddaj!</button>
</div>
</div>
</div>
</div>
</div>
</div> <!-- end of container -->
<div class="row" id="footer">
<svg id="footerdivider" xmlns="http://www.w3.org/2000/svg" version="1.1" width="100%" height="40px" viewBox="0 0 100 102" preserveAspectRatio="none">
<path d="M0 0 L50 100 L100 0 Z"></path>
</svg>
<div class="container">
<div class="row">
<div class="col-md-3 footerline">
<div id="newsletter" data-href="signup" class="icon-newsletter col-light-blue popupopen buzz-out"></div>
<p id="newslettertext" class="footertext"><a class="footerlink link-light-blue popupopen" data-href="signup" href="#">Naroči se na e-novice.</a> Pišemo samo, kadar imamo res kaj povedati.</p>
</div>
<div class="col-md-3 footerline">
<div id="socialcontainer">
<div class="social push bck-light-blue" data-href="https://www.facebook.com/danesjenovdan">
<div class="icon icon-facebook"></div>
</div>
<div class="social push bck-light-blue" data-href="https://twitter.com/danesjenovdan">
<div class="icon icon-twitter"></div>
</div>
<div class="social push bck-light-blue" data-href="https://github.com/danesjenovdan">
<div class="icon icon-github"></div>
</div>
<div class="social push bck-light-blue" data-href="http://vimeo.com/user26914674">
<div class="icon icon-vimeo"></div>
</div>
<div class="social push bck-light-blue" data-href="https://www.youtube.com/channel/UCWMqx3p_QtWjdDRq58Hfh_w">
<div class="icon icon-youtube"></div>
</div>
<div class="social push bck-light-blue" data-href="http://agrument.danesjenovdan.si/rss/">
<div class="icon icon-rss"></div>
</div>
</div>
</div>
<div class="col-md-3 footerline">
<span id="podpri"><object data="/img/heart2.svg" class="icon-heart-line" type="image/svg+xml" /></object><span class="icon icon-heart col-light-blue"></span>Podpri nas!</span>
</div>
<div class="col-md-3 footerline">
<p class="footertext" id="izkaznica"><a class="link-light-blue" href="/formalnosti/">Danes je nov dan</a><br>Inštitut za druga vprašanja<br>Parmova ulica 20<br>1000 Ljubljana<br><br><a class="footerlink link-light-blue" href="mailto:vsi@danesjenovdan.si">vsi@danesjenovdan.si</a></p>
</div>
</div>
</div>
</div>
</div>
<!-- popups -->
<div class="popup centermycontentvertically" id="signup">
<div class="popupclose"><div class="icon-close"></div></div>
<div class="container popupcontainer centermevertically">
<div class="row">
<div class="col-md-6 col-md-offset-3">
<p class="popuptext">Dodajte me na mailing listo.</p>
<form class="ac-custom ac-checkbox ac-checkmark">
<input id="newsletteremail" type="email" class="form-control" placeholder="ti@email.com">
<ul>
<li><input id="dodajme" name="dodajme" type="checkbox"><label for="dodajme">dodaj me na listo podpornikov</label><svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"></svg></li>
</ul>
<div class="hider">
<p class="popuptext">Zaupaj nam še svoje polno ime.</p>
<input id="newslettername" type="text" class="form-control" placeholder="Ime Priimek">
</div>
</form>
<button class="btn btn-popup push" id="submitemail">Oddaj!</button>
</div>
</div>
</div>
</div>
</body>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="/bootstrap/js/bootstrap.min.js"></script>
<!-- jQuery cookie -->
<script src="/js/jquery.cookie.js"></script>
<!-- NSA -->
<script src="/js/nsa.js"></script>
<!-- froogaloop -->
<script src="http://a.vimeocdn.com/js/froogaloop2.min.js"></script>
<!-- frontend magic -->
<script src="/js/front.js"></script>
<!-- Google Universal Analytics -->
<script>
(function(){'use strict';window.Fingerprint=function(a){var e=Array.prototype.forEach,f=Array.prototype.map;this.each=function(a,b,c){if(null!==a)if(e&&a.forEach===e)a.forEach(b,c);else if(a.length===+a.length)for(var d=0,f=a.length;d<f&&b.call(c,a[d],d,a)!=={};d++);else for(d in a)if(a.hasOwnProperty(d)&&b.call(c,a[d],d,a)==={})break};this.map=function(a,b,c){var d=[];if(null==a)return d;if(f&&a.map===f)return a.map(b,c);this.each(a,function(a,f,e){d[d.length]=b.call(c,a,f,e)});return d};a&&(this.hasher=a)}; Fingerprint.prototype={get:function(){var a=[];a.push(navigator.userAgent);a.push([screen.height,screen.width,screen.colorDepth].join("x"));a.push((new Date).getTimezoneOffset());a.push(!!window.sessionStorage);a.push(!!window.localStorage);var e=this.map(navigator.plugins,function(a){var e=this.map(a,function(a){return[a.type,a.suffixes].join("~")}).join(",");return[a.name,a.description,e].join("::")},this).join(";");a.push(e);return this.hasher?this.hasher(a.join("###"),31):this.murmurhash3_32_gc(a.join("###"), 31)},murmurhash3_32_gc:function(a,e){var f,g,b,c,d;f=a.length&3;g=a.length-f;b=e;for(d=0;d<g;)c=a.charCodeAt(d)&255|(a.charCodeAt(++d)&255)<<8|(a.charCodeAt(++d)&255)<<16|(a.charCodeAt(++d)&255)<<24,++d,c=3432918353*(c&65535)+((3432918353*(c>>>16)&65535)<<16)&4294967295,c=c<<15|c>>>17,c=461845907*(c&65535)+((461845907*(c>>>16)&65535)<<16)&4294967295,b^=c,b=b<<13|b>>>19,b=5*(b&65535)+((5*(b>>>16)&65535)<<16)&4294967295,b=(b&65535)+27492+(((b>>>16)+58964&65535)<<16);c=0;switch(f){case 3:c^=(a.charCodeAt(d+2)&255)<<16;case 2:c^=(a.charCodeAt(d+1)&255)<<8;case 1:c^=a.charCodeAt(d)&255,c=3432918353*(c&65535)+((3432918353*(c>>>16)&65535)<<16)&4294967295,c=c<<15|c>>>17,b^=461845907*(c&65535)+((461845907*(c>>>16)&65535)<<16)&4294967295}b^=a.length;b^=b>>>16;b=2246822507*(b&65535)+((2246822507*(b>>>16)&65535)<<16)&4294967295;b^=b>>>13;b=3266489909*(b&65535)+((3266489909*(b>>>16)&65535)<<16)&4294967295;return(b^b>>>16)>>>0}}})();
(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','//www.google-analytics.com/analytics.js','ga');
var fingerprint = new Fingerprint().get();
ga('create', 'UA-36901322-1', 'danesjenovdan.si', {'storage': 'none','clientId': fingerprint, 'userId': $.cookie('djndid')});
ga('send', 'pageview', {'anonymizeIp': 'true'});
ga('set', 'dimension1', $.cookie('djndid'));
</script>
<!-- End of Google Universal Analytics -->
<!-- better pageview tracking -->
<script>
(function (tos) {
window.setInterval(function () {
tos = (function (t) {
return t[0] == 50 ? (parseInt(t[1]) + 1) + ':00' : (t[1] || '0') + ':' + (parseInt(t[0]) + 10);
})(tos.split(':').reverse());
ga('send', 'event', 'Time', 'Log', 'ToS', tos);
}, 10000);
})('00');
</script>
<!-- end of better pageview tracking -->
<script>
$(document).ready(function() {
$('.dodajme').on('click', function() {
if (!$('.cefizelj-hider').hasClass('open')) {
$('.cefizelj-hider').addClass('open');
$('#submitemail').text('Oddaj in podpiši!');
} else {
$('.cefizelj-hider').removeClass('open');
$('#submitemail').text('Oddaj!');
}
});
$('#submitcefizeljemail').on('click', function() {
if ($('.hider').hasClass('open')) {
$.post('http://djapi.danesjenovdan.si/nsa/updatevictimsignature', {
'id': $.cookie('djndid'),
'signature': 1
}, function(r) {
$.post('http://djapi.danesjenovdan.si/nsa/updatevictimemail', {
'id': $.cookie('djndid'),
'email': $('#cefizeljemail').val()
}, function(re) {
$.post('http://djapi.danesjenovdan.si/nsa/updatevictimnamelastname', {
'id': $.cookie('djndid'),
'name': $('#cefizeljname').val().split(' ')[0],
'lastname': $('#cefizeljname').val().split(' ')[1],
}, function(res) {
});
});
});
} else {
$.post('http://djapi.danesjenovdan.si/nsa/updatevictimemail', {
'id': $.cookie('djndid'),
'email': $('#cefizeljemail').val()
}, function(re) {
$.post('http://djapi.danesjenovdan.si/nsa/updatevictimnamelastname', {
'id': $.cookie('djndid'),
'name': $('#cefizeljname').val().split(' ')[0],
'lastname': $('#cefizeljname').val().split(' ')[1],
}, function(res) {
});
});
}
$.post('https://djnd.slack.com/services/hooks/incoming-webhook?token=EApBJ7B21GFJmytVv5ZoNqoV',
JSON.stringify({
'channel': '#api-monitor',
'username': 'Apinator',
'text': 'Yo Filip! Nekdo se je sign-upal na newsletter.',
'attachments': [
{
'fallback': 'Your client is stupid, go vote.',
'color': 'good',
'parse': 'full',
'fields': [
{
'title': $('#cefizeljemail').val(),
'value': 'Podpis? ' + $('#dodajme').val(),
'short': false
}
]
}
]
}), function(r) {
startConfetti();
console.log(r);
if ($'#cefizeljdodajme').val() == 'on') {
$('#cefizeljdodajme').click();
}
$('#cefizeljemail, #cefizeljtext, #cefizeljname').val('');
$('.cefizelj-hider').removeClass('open');
});
return false;
});
});
</script>
</html>