-
Notifications
You must be signed in to change notification settings - Fork 0
/
todolist_english.html
267 lines (261 loc) · 9.73 KB
/
todolist_english.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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
<!DOCTYPE html>
<html lang="ja">
<head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-SLCHF8P25K"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-SLCHF8P25K');
</script>
<script type="text/javascript" data-cmp-ab="1" src="https://cdn.consentmanager.net/delivery/autoblocking/31566d9c7185e.js" data-cmp-host="a.delivery.consentmanager.net" data-cmp-cdn="cdn.consentmanager.net" data-cmp-codesrc="16"></script>
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-NJ2KPZTP');</script>
<!-- End Google Tag Manager -->
<meta http-equiv="Content-Type" content="text/html; charset="UTF-8" />
<link rel="stylesheet" href="https://pyscript.net/latest/pyscript.css" />
<script defer src="https://pyscript.net/latest/pyscript.js"></script>
<script src="https://unpkg.com/jquery"></script>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>To Do List</title>
<style type = "text/css">
body {
font-family: helvetica, arial, sans-serif;
margin: 2em;
}
h1 {
color: #373fff;
}
a {
color: inherit;
}
a:hover {
background-color: plum
}
.container {
padding: 1em;
background: white;
opacity: 0.9375;
position: relative;
max-width: 700px;
width: 100%;
margin: auto;
}
</style>
<canvas width="100" height="80" style="width: 100px; height: 80px; position: absolute; right: 0px; bottom: 0px;">
</canvas>
<div style="position:fixed; right:2px; top:2px; z-index:9999999999; -webkit-user-select: none; cursor:pointer;">
</div>
<div style="position:fixed; right:2px; bottom:2px; z-index:9999999999; -webkit-user-select: none; cursor:pointer;">
</div>
<style type = "text/css">
body, html {
font-family: helvetica, arial, sans-serif;
margin: 10px;
}
h1 {
font-style: italic;
color: #ff0066;
}
button {
display: inline-block;
font-size: 12px;
padding: 7.5px;
margin: 7.5px;
}
</style>
<body class="container" id="bg">
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-NJ2KPZTP"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<div data-v-7e2550d6="" class="odm_extension image_downloader_wrapper"></div>
<header class="header">
<div class="container" id="spacerSize">
<div id="dispArea" class="container">
<h1 class="title" style="text-align:left;">
<div style="color:black;font-weight:bold;text-align:left;">
To do list
<style type = "text/css">
div.right {
text-align: right;
}
</style>
<div style="text-align:left;float:right;">
<font size = "2.5" color="black" face = "Georgia">
For
<script>
name = window.prompt("Please enter your name.", "");
document.write(name);
</script>
<br>
<a href="./todolist_japanese.html">Japanese page</a>
<br>
<font size="0.125">Change sizes of title font and line spaces</font>
<br>
<button onclick = "changeSpacerSizeSmall()">Small</button>
<button onclick = "changeSpacerSizeMidium()">Midium</button>
<button onclick = "changeSpacerSizeLarge()">Large</button>
</font>
</div>
<br>
<font size = "2.5" color="black" face = "Georgia"><div class="right"></div></font>
<br>
<style type = "text/css">
.ex1{
line-height:0.25;
}
.ex2{
line-height:1;
}
.ex3{
line-height:0.75;
}
.ex4{
line-height:1.25;
}
</style>
<p id="spacerSize"><font size="2" face="Georgia" color="indigo">Tasks</font></p>
<button id="add">Add/Register</button>
<button id="reset">Reset</button>
<ul id="todolist"></ul>
<script>
var initData = ["Detail1", "Detail2"];
var listString = "";
function initialize(){
$.each(initData, function(key, value) {
$("#todolist").prepend('<li><input type = "text" name ="tasks" style="width:300px;height:50px;font-size:14px;" placeholder="Please enter up to 38 characters here." /><input type = "checkbox" /><button class="delete">Delete</button></li>');
});
}
if (localStorage.getItem("todolist")) {
$("#todolist").html(localStorage.getItem("todolist"));
} else {
initialize();
}
$("#add").click(function() {
$("#todolist").prepend('<li><input type = "text" name ="tasks" style="width:300px;height:50px;font-size:14px;" placeholder="Please enter up to 38 characters here." /><input type = "checkbox" /><button class="delete">Delete</button></li>');
localStorage.setItem("todolist", $("#todolist").html());
});
$("#todolist").on("keyup", ":input", function(){
$.each($("input"), function(key, input){
$(input).attr("value", $("<div/>").text(input.value).html());
});
localStorage.setItem("todolist", $("#todolist").html());
});
$("#todolist").on("click", ".delete", function() {
$(this).parent().remove();
localStorage.setItem("todolist", $("#todolist").html());
});
$("#reset").click(function(){
$("#todolist").empty();
initialize();
localStorage.setItem("todolist", $("#todolist").html());
});
function changeBackgroundColor() {
var cbc = document.getElementById("bg");
var shift=window.prompt("Please enter background color");
cbc.style.background = shift;
}
function changeSpacerSizeSmall() {
var cfss = document.getElementById("spacerSize");
cfss.style.fontSize = '5px';
}
function changeSpacerSizeMidium() {
var cfsm = document.getElementById("spacerSize");
cfsm.style.fontSize = '10px';
}
function changeSpacerSizeLarge() {
var cfsl = document.getElementById("spacerSize");
cfsl.style.fontSize = '15px';
}
</script>
<br>
<b><hr noshade></b>
<p class = "ex1" id="spacerSize"><font size="1.5" face="Georgia" color="navy"><div onclick="obj=document.getElementById('open').style; obj.display=(obj.display=='none')?'block':'none';">
<a style="cursor:pointer;">How to use ( <- Please click here.)</a></div></font></p>
<br>
<div id="open" style="display:none;clear:both;">
<p class = "ex4" id="spacerSize"><font size="1.5" face="Georgia" color="navy">1. The "Add/Register" button combines the "Register" and "Add" buttons in one, and entering text into the input box will automatically save it, clicking on the "Add/Register" button will add an empty input box.
<br>
<p class = "ex4" id="spacerSize"><font size="1" face="Georgia" color="navy">* A maximum of 38 half-width alphanumeric lowercase characters entering can be displayed.</font></p>
<br>
<p class = "ex4" id="spacerSize"><font size="1" face="Georgia" color="navy">* The input box can be displayed as to do list.</font></p>
<br>
<p class = "ex4" id="spacerSize"><font size="1" face="Georgia" color="navy">* The "Reset" button under "Tasks" can be used to reset saved data.</font></p>
<br>
<p class = "ex4" id="spacerSize"><font size="1.5" face="Georgia" color="navy">2. The checkbox next to the task entry field can be used to temporarily mark and display the completed task if you have completed it and do not want to delete the data.</font></p>
<br>
<p class = "ex4" id="spacerSize"><font size="1" face="Georgia" color="navy">* Please note that the checkboxes will lose their checked data if you refresh the page or close the tab.</font></p>
<br>
<p class = "ex2" id="spacerSize"><font size="1.5" face="Georgia" color="navy">3. Click on the "Delete" button next to the checkbox to delete the task.</font></p>
<br>
<p class = "ex4" id="spacerSize"><font size="1.5" face="Georgia" color="navy">4. Click on the "Small", "Midium", and "Large" button under "Change sizes of title font and line spaces" to change sizes of title font and line spaces.</font></p>
<br>
<p class = "ex4" id="spacerSize"><font size="1.5" face="Georgia" color="navy">5. Click on the "Change background color" button to change the background color.</font></p>
<p class = "ex1" id="spacerSize"><font size="1" face="Georgia" color="navy">(Ex1) #ff0000</font></p>
<p class = "ex1" id="spacerSize"><font size="1" face="Georgia" color="navy">(Ex2) linear-gradient(yellowgreen,purple)</font></p>
<p class = "ex1" id="spacerSize"><font size="1" face="Georgia" color="navy">(Ex3) conic-gradient(#ffa500,#00ffff)</font></p>
<p class = "ex1" id="spacerSize"><font size="1" face="Georgia" color="navy">(Ex4) radial-gradient(yellow,green)</font></p>
<p class = "ex4" id="spacerSize"><font size="1" face="Georgia" color="navy">(Ex5) repeating-linear-gradient(#ff00ff,transparent 5px,#4b0082 10px)</font></p>
<p class = "ex1" id="spacerSize"><font size="1" face="Georgia" color="navy">etc...</font></p>
<br>
</div>
<hr>
<p id="spacerSize"><font size="1" face="Georgia" color="maroon">Current time</font></p>
<p class = "ex3" id="spacerSize"><font size="0.125" face="Georgia" color="maroon">You can use it to keep track of the start and finish times of your tasks.</font></p>
<strong style="text-align: right">
<script>
function currentTime() {
dd = new Date();
document.F1.T1.value = dd.toLocaleString();
window.setTimeout("currentTime()", 1000);
}
</script>
</strong>
<style>
body {
background-color: rgba(255,0,0,0);
text-align: left;
}
button:active {
background : conic-gradient(pink,orange,yellowgreen,cyan);
}
input[type="text"] {
border: 1px solid #000000;
width: 100px;
height: 50px;
font-size : 20px;
word-wrap:break-word;
}
input[type="text"] {
border: 1px solid #000000;
width: 200px;
height: 100px;
word-wrap:break-word;
}
</style>
</head>
<body onload="currentTime()">
<form name="F1" action="#">
<input type="text" name="T1" size=10 style="width:250px; height:25px;">
</form>
<form>
<span style "color: #ff0000">
<br>
<br>
</span>
</form>
</div>
</h1>
</div>
<button onclick="changeBackgroundColor()"> Change background color </button>
<br>
</header>
</body>
</html>