-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
71 lines (71 loc) · 2.66 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
<html>
<head>
<title>Simple CRUD Operations using JS - Local Storage</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta
name="keywords"
content="CRUD Operations JavaScript, JS CRUD Operations, CRUD LocalStorage, JS CRUD LocalStorage"
/>
<meta name="author" content="Arravind" />
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link
href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="src/style/style.css" />
</head>
<body>
<div class="main-wrapper">
<h2>JavaScript CRUD Operations Using LocalStorage</h2>
<div class="panels-wrap">
<div class="left-panel">
<div class="insert-box cardbox">
<p><b>Insert/ Update Data</b></p>
<span>Enter a key and a value to add and/ or update records</span>
<div class="input-wrapper">
<input id="inputKey" type="text" placeholder="Enter Key" />
<input id="inputValue" type="text" placeholder="Enter Value" />
</div>
<button type="button" id="btnInsert">Insert Data</button>
</div>
<div class="read-box cardbox">
<p><b>Read Data</b></p>
<span>Enter a key and a value for the record</span>
<div class="input-wrapper">
<input
id="inputReadDataKey"
type="text"
placeholder="Enter Key"
/>
<button type="button" id="btnReadData">Read Data</button>
</div>
<p id="readedDataHere"></p>
</div>
<div class="delete-box cardbox">
<p><b>Delete Data</b></p>
<span
>Enter a key to delete the record associated with that key</span
>
<div class="input-wrapper">
<input id="inputDelKey" type="text" placeholder="Enter Key" />
<button type="button" id="btnDelete">Delete Data</button>
</div>
</div>
</div>
<div class="right-panel">
<div class="display-all-box cardbox">
<p><b>Local Storage</b></p>
<span id="avialRecords"></span>
<p id="autoFILL"></p>
<div id="lsOutput"></div>
<div id="deleteAllBtn" class="delete-all">
<button type="button" id="btnAllDelete">Delete All Data</button>
</div>
</div>
</div>
</div>
</div>
<script src="src/scripts.js"></script>
</body>
</html>