-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
executable file
·88 lines (70 loc) · 1.64 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="HandheldFriendly" content="True">
<title>Like it Bitch</title>
<!--
viewport:
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
webapp:
<meta name="apple-mobile-web-app-capable" content="yes">
<link rel="apple-touch-icon-precomposed" href="icon.png">
favicon:
<link rel="icon" href="img/favicon.ico">
<link rel="icon" type="image/png" href="img/favicon.png">
-->
<style type="text/css">
html, body {
height: 100%;
font: 16px/1.5 helvetica, arial, sans-serif;
}
*, *:before, *:after {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
input[type="radio"] {
display: none;
}
input[type="radio"]:checked + label {
color: red;
}
.liker {
display: block;
margin: 2em;
}
.liker > span {
display: inline-block;
padding: .5em;
cursor: pointer;
transition: all .3s;
border-radius: 10px;
}
.liker > span.selected {
background-color: #fbb03b;
color: #ffffff;
}
</style>
</head>
<body>
<span id="test1">
<div class="liker" data-value="1">
</div>
<!--
<div class="liker" data-value="0"></div>
<div class="liker" data-value="-1"></div>
<div class="liker"></div>
-->
</span>
<!--
<span id="test2">
<div class="liker"></div>
</span>
-->
<script type="text/javascript" src="likers.js"></script>
<script type="text/javascript">
addLikers( document.getElementById("test1") );
</script>
</body>
</html>