forked from kopiro/siriwave
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
96 lines (90 loc) · 1.87 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
<!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;
}
.subcontainer {
width: 259px;
height: 80px;
position: absolute;
left: 0;
right: 0;
bottom: 20px;
}
</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 class="subcontainer" id="container-classic-canvas""></div>
</div>
</div>
<div id="container-ios9" class="container">
<img src="http://pngimg.com/upload/iphone_PNG5735.png" />
<div class="iphone-display">
<div class="subcontainer" id="container-ios9-canvas"></div>
</div>
</div>
</div>
<script src="siriwave.js"></script>
<script>
var $siri_classic = document.getElementById('container-classic-canvas');
var SW = new SiriWave({
amplitude: 1,
container: document.getElementById('container-classic-canvas'),
autostart: true,
});
var SW9 = new SiriWave({
amplitude: 1,
container: document.getElementById('container-ios9-canvas'),
autostart: true,
style: 'ios9'
});
</script>
</body>
</html>