-
Notifications
You must be signed in to change notification settings - Fork 4
/
soon.php
164 lines (139 loc) · 5.82 KB
/
soon.php
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
<?php
date_default_timezone_set('EET');
$left = mktime(0,0,0, 4, 1, 2015) - time();
//$left = mktime(23,49,23, 3, 23, 2015) - time();
?>
<!DOCTYPE html>
<html>
<head>
<title>Portfolio of Cihad Turhan will be here soon.</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css/fonts.css"/>
<link rel="stylesheet" href="js/lib/harvest/tick.css"/>
<link rel="stylesheet" href="css/soon.css"/>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js">
</script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js">
</script>
<script src="js/lib/harvest/tick.js">
</script>
<script src="js/lib/html2canvas.min.js">
</script>
<script src="js/lib/glitch.js">
</script>
<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','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-61108250-1', 'auto');
ga('send', 'pageview');
$( document ).ready( function(){
$( '.tick' ).ticker({
delay : 1000,
incremental : -1,
separators : true
});
var sto = window.setTimeout;
var rand = function (s,e){ return s + ~~(Math.random()*(e-s)) };
glitch = function(){
$(".glitchable").glitch({
amount: 3,
complete: function(canvas){
$(".glitchable").after(canvas);
sto(function(){
$(canvas).remove();
}, rand(60,200))
}
});
}
var randomGlitchTimeout = function(){
sto(function(){
glitch();
sto(glitch,rand(60,200))
/*sto(glitch,rand(32,34))
sto(glitch,rand(48,50))*/
randomGlitchTimeout();
}, rand(5000, 9000))
};
randomGlitchTimeout();
sto(glitch,1000);
$('#video-link').click(function(e){
e.preventDefault();
$('.hd720p').removeClass('hidden');
var iframe = $('.hd720p>iframe');
var ww = $(window).width();
if(ww <540){
iframe.attr({width: 480, height: 320 })
}else if(ww < 720){
iframe.attr({width: 640, height: 480 })
}else if (ww < 1280){
iframe.attr({width: 1024, height: 768 })
}
if(!iframe.attr('src')){
iframe.attr('src', iframe.attr('data-src'));
}
return false;
})
$('body').click(function(){
if(!$('.hd720p').hasClass('hidden')){
$('.hd720p').addClass('hidden');
}
})
});
$(".sendgrid-subscription-widget").on("success", function (e) {
$(this).find(".response").addClass("success").html("<img src=\"colon/d/face.png\" alt=\"YAY!\"> " + e.detail);
});
$(".sendgrid-subscription-widget").on("error", function (e) {
$(this).find(".response").addClass("error").html("<img src=\"sad/panda/face.png\" alt=\"D:\"> " + e.detail);
});
$(".sendgrid-subscription-widget").on("sent", function () {
$(this).addClass("loading")
.append("<img src=\"my/super/cool/loading.gif\" alt=\"Loading...\">");
$(this).find("input[type=submit").attr("disabled", "disabled");
$(".sendgrid-subscription-widget").on("success error", function () {
$(this).removeClass("loading")
$(this).find("img").remove();
$(this).find("input[type=submit").removeAttr("disabled");
});
});
</script>
</head>
<body>
<header>
<div id="img-container">
<img class="glitchable" src="img/logo/logo.png">
</div>
</header>
<article class="table">
<div class="table-cell-center">
<h1> Wait for it! </h1>
<h2> My fully interactive portfolio will be ready in </h2><br/>
<p id="ticker">
<span class="tick tick-flip"><?php echo number_format($left , 0, '.', ','); ?></span>
</p>
<h2> seconds </h2><br/>
<h2> Meanwhile, you can watch beta <a id="video-link" href="#">video</a>. </h2>
</div>
</article>
<footer>
Wanna be notified first?
<div class="sendgrid-subscription-widget" data-css="false" data-token="a%2FvBD9DUFGdCv2JkaT2IbLk3M0fR5IJBS%2FUSaCjtnEZOBtFjYq8DP5Ln05Ho5Jvv5J%2F%2Bue%2F82A%2F1yU8PgTgrQQ%3D%3D"></div><script>
!function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0], p = /^http:/.test(d.location) ? "http" : "https";
if (!d.getElementById(id)) {
js = d.createElement(s);
js.id = id;
js.src = p + "://s3.amazonaws.com/subscription-cdn/0.2/widget.min.js";
fjs.parentNode.insertBefore(js, fjs);
}
}(document, "script", "sendgrid-subscription-widget-js");
</script>
<!-- <div class="sendgrid-subscription-widget" data-css="false" data-token="a%2FvBD9DUFGdCv2JkaT2IbOAsD5YgmilSRbq%2BNO93hpYFDSOgbVKQJabZsLHCN3hI9G99Gh90tcvmzs3uGerRUQ%3D%3D"></div><script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?"http":"https";if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://s3.amazonaws.com/subscription-cdn/0.2/widget.min.js";fjs.parentNode.insertBefore(js,fjs);}}(document, "script", "sendgrid-subscription-widget-js");</script> -->
</footer>
<div class="hd720p hidden">
<iframe width="1280" height="720" data-src="https://www.youtube.com/embed/QyxgpjkLAx8?controls=0&color=white&theme=white&autoplay=1&vq=HD720" frameborder="0" allowfullscreen></iframe>
</div>
</body>
</html>