-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
41 lines (41 loc) · 2.67 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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Simple Todo List - Vanilla JS</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="Barak Pinchovski">
<meta name="description" content="Simple todo list written in plain vanilla JS">
<meta name="keywords" content="todo, javascript, js, vanilla, plain, app, accessibility, accessible, example">
<link rel="stylesheet" href="css/main.css">
<link rel="icon" href="img/favicon.png">
</head>
<body>
<div id="container">
<header>
<h1>Todo App</h1>
</header>
<main>
<form name="todoForm" onsubmit="return addItem()">
<div class="new-item">
<input maxlength="57" placeholder="Enter an item to add it to the list" onkeyup="toggleTooltip(this.value)"/>
<div onclick="addItem()" onkeyup="simulateMouseClick(this, event)" class="tooltip a11y-focus hide" tabindex="0">Press Enter or click here to add the item</div>
</div>
<ol class="clearfix todos-list">
</ol>
</form>
</main>
<footer>
<div>Completed: <span class="completed-count">no</span> items</div>
<div>
<img id="bulk-complete" tabindex="0" class="shrink a11y-focus" src="img/check-all.png" alt="Check all items" onclick="toggleAllChecked(true)" onkeyup="simulateMouseClick(this, event)" onmouseenter="toggleLegend('Check all items')" onfocus="toggleLegend('Check all items')" onmouseleave="toggleLegend()" onblur="toggleLegend()"/>
<img id="bulk-incomplete" tabindex="0" class="shrink a11y-focus" src="img/uncheck-all.png" alt="Uncheck all items" onclick="toggleAllChecked()" onkeyup="simulateMouseClick(this, event)" onmouseenter="toggleLegend('Uncheck all items')" onfocus="toggleLegend('Uncheck all items')" onmouseleave="toggleLegend()" onblur="toggleLegend()"/>
<img id="bulk-remove-completed" tabindex="0" class="shrink a11y-focus" src="img/remove-all-completed.png" alt="Remove completed items" onclick="removeAllCompleted()" onkeyup="simulateMouseClick(this, event)" onmouseenter="toggleLegend('Remove all completed items')" onfocus="toggleLegend('Remove all completed items')" onmouseleave="toggleLegend()" onblur="toggleLegend()"/>
</div>
<div id="legend"></div>
</footer>
</div>
</body>
<script src="js/main.js"></script>
</html>