-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
145 lines (126 loc) · 3.23 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
<!doctype html>
<html lang="en">
<head>
<title>Academic to-do list</title>
<link rel="icon" type="image/png" href="favicon-32x32.png" sizes="32x32" />
<link rel="icon" type="image/png" href="favicon-16x16.png" sizes="16x16" />
<link rel="shortcut icon" href="icon.png" />
<meta property="og:type" content="website" />
<meta property="og:title" content="Academic to-do list" />
<meta property="og:url" content="http://academictodo.com" />
<meta property="og:image" content="http://academictodo.com/icon.png" />
<meta property="og:description" content="The ultimate to-do list for academics. Always shows the current top-priority task, improving focus and minimizing distractions." />
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@_daviddumas" />
<meta name="twitter:creator" content="@_daviddumas" />
<meta name="twitter:image" content="http://academictodo.com/icon.png" />
<meta name="twitter:description" content="The ultimate to-do list for academics. Always shows the current top-priority task, improving focus and minimizing distractions." />
<style type="text/css">
html, body {
width: 100%;
height: 100%;
font-family: 'Helvetica Neue LT', 'Helvetica LT Std', 'Helvetica Neue', 'Helvetica', sans-serif;
color: black;
margin: 0;
overflow: hidden;
}
form {
font-weight: bold;
font-size: 48pt;
text-decoration: none;
}
@media only screen and (max-width: 800px) {
form {
font-size: 36pt;
}
}
@media only screen and (max-width: 650px) {
form {
font-size: 28pt;
}
}
@media only screen and (max-width: 500px) {
form {
font-size: 21pt;
}
}
@media only screen and (max-width: 375px) {
form {
font-size: 18pt;
}
}
form {
position: fixed;
height: auto;
max-width: 95%;
width: 16em;
top: 40%;
left: 50%;
transform: translate(-6em,0);
border: 0;
}
form label {
display:block;
margin-left: 1.2em;
max-height:5em;
transition: opacity 1s ease-in;
}
form label.slideout {
transition: all 1s ease-out;
opacity: 0;
max-height: 0;
text-decoration: line-through;
}
/* https://stackoverflow.com/questions/16637993/replace-checkbox-with-unicode-character */
input[type='checkbox'] {
display:none;
}
input[type='checkbox'] + span:before {
margin-left: -1.2em;
width: 1.2em;
display: inline-block;
content: '\2610';
}
input[type='checkbox']:checked + span:before
{
pointer-events: none;
margin-left: -1.2em;
width: 1.2em;
display: inline-block;
content: '\2611';
}
div#about {
position:absolute;
bottom: 0.5em;
right: 1em;
color: #aaa;
}
a {
text-decoration: none;
color: inherit;
}
</style>
<script>
function handlecheck(cb) {
cb.removeAttribute('onclick');
cb.className = cb.cl
var target = cb.parentNode;
var frm = target.parentNode;
target.className = 'slideout';
var newlab = document.createElement('label');
newlab.innerHTML = '<input type="checkbox" onclick="handlecheck(this);" class="added"/><span/>Finish research paper';
frm.appendChild(newlab);
setInterval(function(){
target.remove()
}, 1000);
}
</script>
</head>
<body>
<form>
<label><input type="checkbox" onclick="handlecheck(this);"/><span/>Finish research paper</label>
</form>
<div id="about">
<a href="about.html">About</a>
</div>
</body>