html
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
<!DOCTYPE html>
<html lang="es" class="no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- Mobile viewing enhancement -->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- ⚠ Format as Primary Keyword - Secondary Keyword | Brand Name, keep under 55 characters -->
<title>JS2 To-DO App!</title>
<!-- ⚠ Description should be roughly 155 characters, no double quotes, use keywords -->
<meta name="description" content="A simple To-DO app made with HTML5, CSS3 and Vanilla Javascript ES2018">
<meta name="keywords" content="sololearn,html5,css3,javascript,ES2018,web code,app,todo list">
<meta name="author" content="davorpatech - https://www.sololearn.com/profile/20275480">
<meta name="date" content="2021-04-25" scheme="YYYY-MM-DD">
<meta name="revised" content="2021-05-04" scheme="YYYY-MM-DD">
<!-- PWAs definition -->
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
<link rel="shortcut icon" href="/favicon.ico">
<meta name="msapplication-TileColor" content="#2b5797">
<meta name="msapplication-config" content="/browserconfig.xml">
<meta name="theme-color" content="#ffffff">
<!-- speed up outsourced resources -->
<link rel="preconnect" href="https://wallpaperaccess.com">
<link rel="dns-prefetch" href="https://wallpaperaccess.com">
Enter to Rename, Shift+Enter to Preview
css
css
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
*,
*::before,
*::after {
margin: 0;
padding: 0;
font-size: inherit;
-webkit-box-sizing: inherit;
-khtml-box-sizing: inherit;
-moz-box-sizing: inherit;
-ms-box-sizing: inherit;
-o-box-sizing: inherit;
box-sizing: inherit;
}
:root {
--dark: black;
--medium: gray;
--light: lightgray;
--lighten: whitesmoke;
--action: #0075ff;
--action-dark: #0042cc;
--action-light: var(--lighten);
--success-dark: green;
--success-soft: rgba(20,180,20,0.5);
--errors-dark: darkred;
--errors-soft: rgba(255,0,0,0.2);
--gappad: 0.8rem;
}
Enter to Rename, Shift+Enter to Preview
js
js
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
/*
import init, {
listTasks,
countTasks,
deleteAllTasks,
deleteDoneTasks,
addTodo,
toggleTodo,
} from "./model.js";
import UI from "./ui.js";
*/
(function(global, undefined) { // IIFE
"use strict";
/*
* DATA/MODEL MODULE
************************************* */
const Model =
(function() { // IIFE Data/Model
const _state = { tasks : [] },
_cfg = {};
let persister = null;
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Run