-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
112 lines (94 loc) · 3.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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>That Was Easy</title>
<link rel="icon" href="favicon.ico" />
<link href="style.css?v=5" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="radio-group">
<div class="radio-btn active">
Kyle
<audio id="easyAudio" src="Media/that_was_easy.wav" type="audio/wav" />
</div>
<div class="radio-btn">
James
<audio id="famAudio" src="Media/fam.m4a" type="audio/mp4" />
</div>
<div class="radio-btn">
Beth
<audio id="hematopoiesisAudio" src="Media/hematopoiesis.mp3" type="audio/mp3" />
</div>
</div>
<!-- http://jsfiddle.net/KyleMit/46raruoj/ /> -->
<svg version="1.1" id="easySVG"
baseProfile="full"
viewbox="0 0 200 200"
width="500" height="500"
xmlns="http://www.w3.org/2000/svg">
<defs>
<style type="text/css">
@import url('https://fonts.googleapis.com/css?family=Archivo+Black&text=easy');
#easyButton {
stroke: #3a3a3a;
stroke-width: 2px;
cursor: pointer;
}
#easyButton { fill: url(#buttonGradient); }
#easyButton:hover { fill: url(#hoverButtonGradient); }
#easyButton:active,
#easyButton:focus { fill: url(#activeButtonGradient); }
text {
font-family: 'Archivo Black', sans-serif;
text-shadow: -1px 1px 10px #af6262;
pointer-events: none;
}
</style>
<radialGradient id="baseGradient"
cx="53%" cy="47%"
r="5%" spreadMethod="reflect">
<stop offset="0%" stop-color="#ececec" />
<stop offset="100%" stop-color="#c3c3c3" />
</radialGradient>
<radialGradient id="buttonGradient"
cx=".6" cy="0.2" r=".8">
<stop offset="0%" stop-color="white" />
<stop offset="10%" stop-color="#fe5555" />
<stop offset="50%" stop-color="#f61d01" />
<stop offset="90%" stop-color="#8c0b03" />
<stop offset="100%" stop-color="#4e0200" />
</radialGradient>
<radialGradient id="hoverButtonGradient"
cx=".6" cy="0.2" r=".8">
<stop offset="0%" stop-color="white" />
<stop offset="20%" stop-color="#fe5555" />
<stop offset="60%" stop-color="#f61d01" />
<stop offset="95%" stop-color="#8c0b03" />
<stop offset="100%" stop-color="#4e0200" />
</radialGradient>
<radialGradient id="activeButtonGradient"
cx=".6" cy="0.2" r=".8">
<stop offset="0%" stop-color="white" />
<stop offset="15%" stop-color="#fe5555" />
<stop offset="30%" stop-color="#f61d01" />
<stop offset="95%" stop-color="#8c0b03" />
<stop offset="100%" stop-color="#4e0200" />
</radialGradient>
</defs>
<g>
<circle cx="100" cy="100" r="90" fill="url(#baseGradient)" />
<circle id="easyButton" cx="100" cy="100" r="80" stroke="black" />
<text x="100" y="120"
font-size="50"
text-anchor="middle"
fill="white"
transform="translate(-15,10)rotate(-15)translate(-15,10)">
easy
</text>
</g>
</svg>
<script src="script.js?v=3" type="text/javascript"></script>
</body>
</html>