forked from kopiro/siriwave
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
96 lines (91 loc) · 1.8 KB
/
Copy pathindex.html
File metadata and controls
96 lines (91 loc) · 1.8 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<style>
body {
font-family: 'Helvetica Neue', Helvetica, sans-serif;
font-weight: 100;
background: #fff;
color: #000;
text-align: center;
}
#title {
font-size: 120px;
font-weight: 100;
margin-top: 30px;
margin-bottom: 40px;
}
h1, h2, h3 {
font-weight: 100;
}
#panel {
font-size: 14px;
}
#panel input {
display: block;
margin: 0 auto;
width: 300px;
margin-bottom: 40px;
}
.container {
display: inline-block;
width: 400px;
margin: 0;
position: relative;
}
.container > img {
width: 100%;
}
.container .iphone-display {
background: #111;
background-size: cover;
position: absolute;
left: 68px;
right: 73px;
top: 127px;
bottom: 142px;
}
.container canvas {
position: absolute;
bottom: 182px;
left: 68px;
right: 73px;
}
</style>
<body>
<div id="title">SiriWave JS</div>
<div>
<div id="container-classic" class="container">
<img src="http://pngimg.com/upload/iphone_PNG5735.png" />
<div class="iphone-display"></div>
</div>
<div id="container-ios9" class="container">
<img src="http://pngimg.com/upload/iphone_PNG5735.png" />
<div class="iphone-display"></div>
</div>
</div>
<script src="siriwave.js"></script>
<script src="siriwave9.js"></script>
<script>
var $siri_classic = document.getElementById('container-classic');
var SW = new SiriWave({
width: 259,
height: 50,
speed: 0.12,
amplitude: 1,
container: $siri_classic,
autostart: true,
});
var $siri_ios9 = document.getElementById('container-ios9');
var SW9 = new SiriWave9({
width: 259,
height: 40,
speed: 0.2,
amplitude: 1,
container: $siri_ios9,
autostart: true,
});
</script>
</body>
</html>