-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·111 lines (107 loc) · 5.38 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="theme-color" content="#fff">
<meta name="description" content="App by Emmanuel - GADS 2020 MWS track student.">
<title>GADS 2020 MWS - Emmanuel Karanja</title>
<script src="https://kit.fontawesome.com/885fbd8d84.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="./css/style.css">
<link rel="shortcut icon" href="./images/logo.png">
</head>
<body>
<div class="container">
<div id="analytics" class="analytics"></div>
<div class="context">
<nav class="navbar">
<div class="nav-controls">
<button name="projects" class="nav-link" onclick="openTab(event, 'projects')">
<i class="fas fa-project-diagram"></i>
<span>Projects</span>
</button>
<button name="notes" class="nav-link" onclick="openTab(event, 'notes')">
<i class="fas fa-sticky-note"></i>
<span>Notes</span>
</button>
<button name="todos" class="nav-link" onclick="openTab(event, 'todos')">
<i class="fas fa-tasks"></i>
<span>Todos</span>
</button>
</div>
<div class="nav-actions">
<button class="btn" data-action="notes" onclick="openForm('addNotes')">ADD NOTES</button>
<button class="btn" data-action="todos" onclick="openForm('addTodos')">ADD TODO</button>
</div>
<div class="countdown"></div>
<div class="theme-control">
<input type="checkbox" id="themeToggle" class="theme-toggle">
<label for="themeToggle" class="theme-switch">
<span class="switch"></span>
</label>
</div>
</nav>
<div class="content">
<div id="projects" class="tab-content">
<div class="projects empty">
<div class="emptyContent">
<div class="spinner"></div>
</div>
</div>
</div>
<div id="notes" class="tab-content">
<form id="addNotes" class="notes-form" autocomplete="off">
<input type="text" class="input note-title" placeholder="Title">
<textarea name="body" class="input note-body" cols="30" rows="5" placeholder="Body"></textarea>
<div class="form-controls">
<button type="button" class="btn" onclick="closeForm('addNotes')">Cancel</button>
<button type="submit" class="btn">Save</button>
</div>
</form>
<form id="editNotes" class="notes-form" autocomplete="off">
<input type="number" class="note-index" readonly hidden>
<input type="text" class="input note-title" placeholder="Title">
<textarea name="body" class="input note-body" cols="30" rows="5" placeholder="Body"></textarea>
<div class="form-controls">
<button type="button" class="btn" onclick="closeForm('editNotes')">Cancel</button>
<button type="submit" class="btn">Update</button>
</div>
</form>
<div class="notes empty">
<div class="emptyContent">
<div class="spinner"></div>
</div>
</div>
</div>
<div id="todos" class="tab-content">
<form id="addTodos" class="todos-form" autocomplete="off">
<input type="text" class="input todo" placeholder="Todo">
<div class="form-controls">
<button type="button" class="btn" onclick="closeForm('addTodos')">Cancel</button>
<button type="submit" class="btn">Save</button>
</div>
</form>
<form id="editTodos" class="todos-form" autocomplete="off">
<input type="number" class="todo-index" readonly hidden>
<input type="text" class="input todo" placeholder="Todo">
<div class="form-controls">
<button type="button" class="btn" onclick="closeForm('editTodos')">Cancel</button>
<button type="submit" class="btn">Update</button>
</div>
</form>
<div class="todos empty">
<div class="emptyContent">
<div class="spinner"></div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="./js/api.js"></script>
<script src="./js/main.js"></script>
<script src="./js/projects.js"></script>
<script src="./js/notes.js"></script>
<script src="./js/todos.js"></script>
</body>
</html>