-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
166 lines (131 loc) · 5.08 KB
/
index.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
<!doctype html>
<!--
Thanks alot to impress.js
-->
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=1024" />
<title>Application</title>
<meta name="description" content="20x20 style presentation on webapp technologies." />
<meta name="author" content="Mads Buch" />
<link href="http://fonts.googleapis.com/css?family=Open+Sans:regular,semibold,italic,italicsemibold|PT+Sans:400,700,400italic,700italic|PT+Serif:400,700,400italic,700italic" rel="stylesheet" />
<link href="css/presentation.css" rel="stylesheet" />
</head>
<body class="impress-not-supported">
<div class="fallback-message">
<p>We are in fallback mode, because I don't think your browser would be
doing a good enough piece of work.</p>
</div>
<div id="impress">
<div id="1" class="step slide" data-x="-10000" data-y="-1000" data-rotate="90">
<img src="images/1.jpg" style="width:100%;"/>
</div>
<div id="2" class="step slide" data-x="-9000" data-y="-1500" data-rotate="45">
<img src="images/2.gif" style="width:100%;"/>
</div>
<div id="3" class="step slide" data-x="-8000" data-y="-1500" data-rotate="45">
<img src="images/3.png" style="width:100%;"/>
</div>
<div id="4" class="step slide" data-x="-6500" data-y="-1500" data-rotate="135">
<img src="images/4.jpg" style="width:100%;"/>
</div>
<div id="5" class="step slide" data-x="-4000" data-y="-1500" data-rotate="-90">
<img src="images/8.png" style="width:100%;"/>
</div>
<div id="6" class="step slide" data-x="-3000" data-y="-1500" data-rotate="-90">
<img src="images/10.png" style="width:100%;"/>
</div>
<div id="7" class="step slide" data-x="-2000" data-y="-1500" data-rotate="-90">
<img src="images/11.png" style="width:100%;"/>
</div>
<!-- Client side -->
<div id="8" class="step slide" data-x="-1000" data-y="-1500" data-rotate="90">
<img src="images/5.jpg" style="width:100%;"/>
</div>
<div id="9" class="step slide" data-x="0" data-y="-1500" data-rotate="90">
<img src="images/6.jpg" style="width:100%;"/>
</div>
<div id="10" class="step slide" data-x="1000" data-y="-1500" data-rotate="90">
<img src="images/7.png" style="width:100%;"/>
</div>
<!-- a bit dvelding with JS -->
<div id="11" class="step slide" data-x="-2000" data-y="-1500" data-rotate="-90">
<img src="images/11.png" style="width:100%;"/>
</div>
<!-- Frameworks -->
<div id="12" class="step slide" data-x="-1500" data-y="1500" data-scale="7">
<img src="images/14.jpg" style="width:100%;"/>
</div>
<!-- Web tools -->
<div id="13" class="step slide" data-x="-5500" data-y="2500" data-rotate="180">
<img src="images/15.png" style="width:100%;"/>
</div>
<div id="14" class="step slide" data-x="-5500" data-y="3500" data-rotate="180">
<img src="images/16.jpg" style="width:100%;"/>
</div>
<div id="15" class="step slide" style="opacity:1;" data-x="-5500" data-y="500" data-rotate="-90" data-scale="2">
<img src="images/mvp.png" style="width:100%;"/>
</div>
<div id="16" class="step slide" data-x="-5600" data-y="550" data-rotate="-90" data-scale="0.6">
</div>
<!-- Lean startup -->
<div id="17" class="step slide" style="opacity:1;" data-x="-8500" data-y="1500" data-rotate="90" data-scale="6">
<img src="images/18.png" style="width:100%;opacity:3;"/>
</div>
<div id="18" class="step slide" data-x="-7600" data-y="2700" data-rotate="90" data-scale="1">
</div>
<div id="19" class="step slide" data-x="-9300" data-y="1500" data-rotate="90" data-scale="1">
</div>
<div id="20" class="step slide" data-x="-7800" data-y="100" data-rotate="90" data-scale="1">
</div>
<div id="overview" class="step" data-x="-4500" data-y="1500" data-scale="11">
</div>
</div>
<div id="pbar_outerdiv">
<div id="pbar_innerdiv">
</div>
<div id="pbar_innertext"></div>
</div>
<script src="js/impress.js"></script>
<script src="js/jquery-2.1.0.min.js"></script>
<script>
impress().init();
function updateProgress(promille) {
$('#pbar_innerdiv').css("width", promille/10 + "%");
}
var start = new Date();
var maxTime = 20000;
var timeoutVal = Math.floor(maxTime/1000);
var stop = false;
var started = false;
function animateUpdate() {
var now = new Date();
var timeDiff = now.getTime() - start.getTime();
var promille = Math.round((timeDiff/maxTime)*1000);
if (promille <= 1000) {
updateProgress(promille);
setTimeout(animateUpdate, timeoutVal)
}
else {
//slide
impress().next();
if(window.location.hash == "#/overview"){
impress().goto("overview");
}
else{//yeah, it's ugly
start = new Date();
setTimeout(animateUpdate, timeoutVal);
}
}
}
$('body').bind('keyup click',function(e){
console.log(e);
if(e.keyCode == 83){
start = new Date();
animateUpdate();
}
});
</script>
</body>
</html>