-
Notifications
You must be signed in to change notification settings - Fork 59
/
index.html
executable file
·149 lines (139 loc) · 7.35 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
<!DOCTYPE html>
<html>
<head>
<title>PoseNet Sketchbook</title>
<link rel="icon" href="favicon.ico" type="image/png" />
<link rel="stylesheet" href="style.css" />
<link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;1,400&display=swap"
rel="stylesheet">
</head>
<body>
<div id="header-container" class="container">
<div id="title-container">
<div id="title-contents">
<h1 id="title"> PoseNet Sketchbook</h1>
</div>
</div>
<div id="video-container">
<!-- <iframe src="https://player.vimeo.com/video/351534893" frameborder="0" allow="autoplay; fullscreen"
allowfullscreen></iframe> -->
<iframe src="https://player.vimeo.com/video/351534893?title=0&byline=0&portrait=0" width="640" height="360" frameborder="0" allow="autoplay; fullscreen" allowfullscreen></iframe>
</div>
</div>
<div id="code-link-container" class="cta">
<a class="cta-link" href="https://github.com/googlecreativelab/posenet-sketchbook" target="_blank">⇨ GET THE CODE
⇨</a>
</div>
<div id="prototype-container" class="container">
<div class="cta">
<div href="" class="cta-link" id="try-link">⇩ TRY IT OUT ⇩</div>
</div>
<div class="prototype-options">
<div class="prototype-option" id="basic-demo">
<a href="./sketches/basic/index.html">
<img src="./sketches/basic/assets/thumbnail.png"
onmouseover="hover(this, 'https://raw.githubusercontent.com/googlecreativelab/posenet-sketchbook/master/sketches/basic/assets/moving.gif')"
onmouseout="unhover(this, 'https://raw.githubusercontent.com/googlecreativelab/posenet-sketchbook/master/sketches/basic/assets/thumbnail.png')"
class="prototype-thumbnail" alt="" />
<br />
</a>
<div class="prototype-title">Basic Demo</div>
</div>
<div class="prototype-option">
<a href="./sketches/movementmultiplier/index.html">
<img src="./sketches/movementmultiplier/assets/thumbnail.png"
onmouseover="hover(this, 'https://raw.githubusercontent.com/googlecreativelab/posenet-sketchbook/master/sketches/movementmultiplier/assets/moving.gif')"
onmouseout="unhover(this, 'https://raw.githubusercontent.com/googlecreativelab/posenet-sketchbook/master/sketches/movementmultiplier/assets/thumbnail.png')"
class="prototype-thumbnail" alt="" />
</a>
<div class="prototype-title">Movement Multiplier</div>
</div>
<div class="prototype-option">
<a href="sketches/texttrailer/index.html">
<img src="./sketches/texttrailer/assets/thumbnail.png"
onmouseover="hover(this, 'https://raw.githubusercontent.com/googlecreativelab/posenet-sketchbook/master/sketches/texttrailer/assets/moving.gif')"
onmouseout="unhover(this, 'https://raw.githubusercontent.com/googlecreativelab/posenet-sketchbook/master/sketches/texttrailer/assets/thumbnail.png')"
class="prototype-thumbnail" alt="" />
</a>
<div class="prototype-title">Text Trailer</div>
</div>
<div class="prototype-option">
<a href="sketches/shapeshifter/index.html">
<img src="./sketches/shapeshifter/assets/thumbnail.png"
onmouseover="hover(this, 'https://raw.githubusercontent.com/googlecreativelab/posenet-sketchbook/master/sketches/shapeshifter/assets/moving.gif')"
onmouseout="unhover(this, 'https://raw.githubusercontent.com/googlecreativelab/posenet-sketchbook/master/sketches/shapeshifter/assets/thumbnail.png')"
class="prototype-thumbnail" alt="" />
</a>
<div class="prototype-title">Shape Shifter</div>
</div>
<div class="prototype-option">
<a href="sketches/collagecreator/index.html">
<img src="./sketches/collagecreator/assets/thumbnail.png"
onmouseover="hover(this, 'https://raw.githubusercontent.com/googlecreativelab/posenet-sketchbook/master/sketches/collagecreator/assets/moving.gif')"
onmouseout="unhover(this, 'https://raw.githubusercontent.com/googlecreativelab/posenet-sketchbook/master/sketches/collagecreator/assets/thumbnail.png')"
class="prototype-thumbnail" alt="" />
</a>
<div class="prototype-title">Collage Creator</div>
</div>
<div class="prototype-option">
<a href="sketches/bodytranscriber/index.html">
<img src="./sketches/bodytranscriber/assets/thumbnail.png"
onmouseover="hover(this, 'https://raw.githubusercontent.com/googlecreativelab/posenet-sketchbook/master/sketches/bodytranscriber/assets/moving.gif')"
onmouseout="unhover(this, 'https://raw.githubusercontent.com/googlecreativelab/posenet-sketchbook/master/sketches/bodytranscriber/assets/thumbnail.png')"
class="prototype-thumbnail" alt="" />
</a>
<div class="prototype-title">Body Transcriber</div>
</div>
<div class="prototype-option">
<a href="sketches/colormapper/index.html">
<img src="./sketches/colormapper/assets/thumbnail.png"
onmouseover="hover(this, 'https://raw.githubusercontent.com/googlecreativelab/posenet-sketchbook/master/sketches/colormapper/assets/moving.gif')"
onmouseout="unhover(this, 'https://raw.githubusercontent.com/googlecreativelab/posenet-sketchbook/master/sketches/colormapper/assets/thumbnail.png')"
class="prototype-thumbnail" alt="" />
</a>
<div class="prototype-title">Color Mapper</div>
</div>
<div class="prototype-option">
<a href="sketches/imagemapper/index.html">
<img src="./sketches/imagemapper/assets/thumbnail.png"
onmouseover="hover(this, 'https://raw.githubusercontent.com/googlecreativelab/posenet-sketchbook/master/sketches/imagemapper/assets/moving.gif')"
onmouseout="unhover(this, 'https://raw.githubusercontent.com/googlecreativelab/posenet-sketchbook/master/sketches/imagemapper/assets/thumbnail.png')"
class="prototype-thumbnail" alt="" />
</a>
<div class="prototype-title">Image Mapper</div>
</div>
<div class="prototype-option">
<a href="sketches/audiocontroller/index.html">
<img src="./sketches/audiocontroller/assets/thumbnail.png"
onmouseover="hover(this, 'https://raw.githubusercontent.com/googlecreativelab/posenet-sketchbook/master/sketches/audiocontroller/assets/moving.gif')"
onmouseout="unhover(this, 'https://raw.githubusercontent.com/googlecreativelab/posenet-sketchbook/master/sketches/audiocontroller/assets/thumbnail.png')"
class="prototype-thumbnail" alt="" />
</a>
<div class="prototype-title">Audio Controller</div>
</div>
</div>
</div>
<div id="footer">
<div class="footer-elt"> <a href="https://policies.google.com/?hl=en">Privacy and Terms</a>
</div>
<div class="footer-elt">
All of these experiments are entirely private. Nothing leaves your machine.
</div>
</div>
</body>
<script>
function hover(element, link) {
element.setAttribute('src', link);
}
function unhover(element, link) {
element.setAttribute('src', link);
}
function smoothScroll() {
document.getElementById('prototype-container').scrollIntoView(true);
}
document.getElementById('try-link').addEventListener('click', () => {
console.log('scrolling!');
smoothScroll();
})
</script>
</html>