-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
26 lines (25 loc) · 968 Bytes
/
index.html
File metadata and controls
26 lines (25 loc) · 968 Bytes
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
<!DOCTYPE HTML>
<html lang="fr-FR">
<head>
<meta charset="UTF-8" />
<title>vanilla Save Notes</title>
<script src="js/vanilla-save-notes.js?v=0.1.0"></script>
<meta name="viewport" content="width=device-width" />
</head>
<body>
<h1>vanilla Save Notes</h1>
<p>Save notes on your webpage in localstorage</p>
<p data-hasjseditorid="example-1" contenteditable>Try to edit this string and reload the page !</p>
<p data-hasjseditorid="example-2" contenteditable>Or this one !</p>
<button id="btn-reset" type="button">Reset</button>
<script>
document.addEventListener('DOMContentLoaded', function(event) {
var saveN = new vanillaSaveNotes();
document.getElementById('btn-reset').addEventListener('click',function(e){
e.preventDefault();
saveN.reset();
});
});
</script>
</body>
</html>