repl.it
@Vandesm14/

Notebook

HTML, CSS, JS

A simple notebook system using Local Storage

fork
loading
Files
  • index.html
  • script.js
  • style.css
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
<!DOCTYPE html>
<html>

<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width">
	<title>Browser Notebook</title>
	<link href="style.css" rel="stylesheet" type="text/css" />
</head>

<body>
	<div class="app">
		<div class="topbar">
			<div class="titlebar">
				<div class="title">
					Title:
					<input type="text" id="name" autocomplete="off">
				</div>
			</div>
			<div class="toolbar">
				<div class="btngroup">
					<button class="btn filebtn" id="new">New</button>
					<button class="btn filebtn" id="open">Open</button>
				</div>
			</div>
		</div>
		<div class="editor">
			<div class="fileList">
				<div class="list-header">
					<p class="file-name">Name</p>
					<p>Size</p>
					<p>Created</p>
					<p>Modified</p>
					<p></p>
				</div>
				<div class="list-items">
					<p>Loading files...</p>
				</div>
			</div>
			<textarea class="document" id="document" cols="104"></textarea>
		</div>
	</div>
	<template id="fileTemplate">
		<div class="file">
			<p class="file-name">{{name}}</p>
			<p class="file-size">{{size}}</p>
			<p class="file-datec">{{datec}}</p>
			<p class="file-datem">{{datem}}</p>
			<p class="file-id">{{id}}</p>
			<button class="file-delete">Delete</button>
		</div>
	</template>
	<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
	<script src="script.js"></script>
</body>
</html>
result
console
?