This repository has been archived by the owner on Apr 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·175 lines (175 loc) · 7.1 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
166
167
168
169
170
171
172
173
174
175
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>WWF Banner</title>
<link rel="stylesheet" href="css/central.css" />
</head>
<body>
<!-- Banner #1 START -->
<div id="banner">
<svg
class="mainSVG"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 800 600"
>
<!-- Water glass START -->
<defs>
<polygon id="liquid"></polygon>
<clipPath id="mainMask">
<polygon
points="470 220, 470 450, 465 460, 460 465, 450 470, 350 470, 340 465, 335 460, 330 450, 330 220"
fill="#fff"
stroke="#000"
stroke-miterlimit="10"
/>
</clipPath>
<clipPath id="liquidMask">
<use xlink:href="#liquid" />
</clipPath>
</defs>
<!-- Water glass END -->
<!-- Glass Outline START -->
<g
id="flask"
class="glass"
fill="#AACCFB"
stroke="#AACCFB"
stroke-miterlimit="10"
stroke-width="6"
>
<polyline
points="480 220, 480 450, 470 470, 450 480, 350 480, 330 470, 322 450, 322 220"
stroke-linecap="round"
stroke-width="8"
/>
<!-- Upper part glass outline START -->
<line
x1="320"
y1="220"
x2="480"
y2="220"
stroke-width="8"
/>
<!-- Upper part glass outline START -->
</g>
<!-- Glass Outline END -->
<!-- Water START -->
<g clip-path="url(#mainMask)">
<use
xlink:href="#liquid"
x="770"
y="0"
class="poly"
opacity="0.3"
/>
<use xlink:href="#liquid" class="poly" y="0" />
<!-- Bubbles START -->
<g
id="bubbleGroup"
stroke-width="0"
fill="#FFF"
opacity="1"
clip-path="url(#liquidMask)"
>
<rect x="300" y="380" width="3" height="3" />
<rect x="300" y="380" width="3" height="3" />
<rect x="300" y="380" width="3" height="3" />
<rect x="300" y="380" width="3" height="3" />
<rect x="300" y="380" width="3" height="3" />
<rect x="300" y="380" width="3" height="3" />
<rect x="300" y="380" width="3" height="3" />
<rect x="300" y="380" width="3" height="3" />
<rect x="300" y="380" width="3" height="3" />
<rect x="300" y="380" width="3" height="3" />
<rect x="300" y="380" width="3" height="3" />
<rect x="300" y="380" width="3" height="3" />
<rect x="300" y="380" width="3" height="3" />
<rect x="300" y="380" width="3" height="3" />
<rect x="300" y="380" width="3" height="3" />
<rect x="300" y="380" width="3" height="3" />
<rect x="300" y="380" width="3" height="3" />
<rect x="300" y="380" width="3" height="3" />
<rect x="300" y="380" width="3" height="3" />
<rect x="300" y="380" width="3" height="3" />
<rect x="300" y="380" width="3" height="3" />
<rect x="300" y="380" width="3" height="3" />
</g>
<!-- Bubbles END -->
</g>
<!-- Water END -->
<!-- Flask Shine START -->
<g id="flaskShine" opacity="0.2" stroke="none">
<polygon
points="335 300, 335 290, 335 238, 335 230, 375 230, 380 235 380 296, 375 300"
fill="#fff"
/>
<rect
x="445"
y="230"
width="20"
height="180"
fill="#fff"
opacity="0.2"
/>
<polygon
points="450 420, 465 420, 465 445, 460 455, 445 465, 430 465, 430 425, 435 420"
fill="#fff"
opacity="0.8"
/>
</g>
<!-- Flask Shine END -->
</svg>
<!-- Audio START -->
<audio id="heartbeat">
<source src="media/audio/heartbeat.mp3" type="audio/mpeg" />
</audio>
<!-- Audio END -->
<div id="theGlass">
<h1 class="theGlass">The glass</h1>
<h1 class="almostFull">is almost full</h1>
</div>
<h1 class="runningOut">We're running out of time</h1>
</div>
<!-- Banner #1 END -->
<!-- Banner #2 START -->
<div id="banner_info">
<div id="landing">
<img
id="wwf_logo"
src="media/images/wwf_logo.png"
alt="WWF Logo"
/>
<div id="donate">
<a>Let's donate!</a>
</div>
<h1 class="landing_greeting">
Press the Shift-Key to play/pause the video
</h1>
<h1 class="landing_greeting more">To find out more</h1>
<div id="enough">
<h1>With a donation you can help us protect the world</h1>
</div>
</div>
</div>
<!-- Banner #2 END -->
<!-- Video START -->
<div id="video">
<video
width="900"
height="auto"
disablepictureinpicture
controlslist="nodownload"
>
<source src="media/video/climate_change.mp4" type="video/mp4" />
</video>
</div>
<!-- Video END -->
<!-- Scripts START -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.5.1/gsap.min.js"></script>
<script src="javascript/code.js"></script>
<!-- Scripts END -->
</body>
</html>