1
+ <!doctype html>
2
+ < html lang ="en " style ="overflow-y: scroll; ">
3
+ < head >
4
+ <!-- Required meta tags -->
5
+ < meta charset ="utf-8 ">
6
+ < meta name ="viewport " content ="width=device-width, initial-scale=1, shrink-to-fit=no ">
7
+ < link rel ="stylesheet " href ="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css ">
8
+ < link rel ="stylesheet " href ="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css ">
9
+ <!-- Bootstrap CSS -->
10
+ < link rel ="stylesheet " href ="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css " integrity ="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2 " crossorigin ="anonymous ">
11
+ < script src ="https://cdnjs.cloudflare.com/ajax/libs/animejs/2.0.2/anime.min.js "> </ script >
12
+ < style >
13
+ .modal-open [style ] {
14
+ padding-right : 0px !important ;
15
+ }
16
+ </ style >
17
+ < title > NoteFizz</ title >
18
+ </ head >
19
+ < body style ="padding-right: 0px !important; ">
20
+
21
+ < nav class ="navbar navbar-expand-lg navbar-dark bg-dark ">
22
+ < a class ="navbar-brand " href ="# "> NoteFizz</ a >
23
+ < button class ="navbar-toggler " type ="button " data-toggle ="collapse " data-target ="#navbarSupportedContent " aria-controls ="navbarSupportedContent " aria-expanded ="false " aria-label ="Toggle navigation ">
24
+ < span class ="navbar-toggler-icon "> </ span >
25
+ </ button >
26
+
27
+ < div class ="collapse navbar-collapse " id ="navbarSupportedContent ">
28
+ < ul class ="navbar-nav mr-auto ">
29
+ < li class ="nav-item active ">
30
+ < a class ="nav-link " href ="index.html "> Home < span class ="sr-only "> (current)</ span > </ a >
31
+ </ li >
32
+ < li class ="nav-item ">
33
+ < a class ="nav-link " href ="# "> View All Notes</ a >
34
+ </ li >
35
+
36
+ </ ul >
37
+ < form class ="form-inline my-2 my-lg-0 ">
38
+ < input class ="form-control mr-sm-2 note-search " type ="search " placeholder ="Search " onkeyup ="note_search() " aria-label ="Search ">
39
+
40
+ </ form >
41
+ </ div >
42
+ </ nav >
43
+
44
+ < div id ="alert "> </ div >
45
+ < div class ="main-container mx-auto " style ="max-width: 60%; box-sizing: border-box; ">
46
+
47
+ < h2 class =" ml3 mt-5 mb-2 "> < span class ="letters "> Welcome to NoteFizz App</ span > </ h2 >
48
+
49
+ < form >
50
+
51
+ < div class ="form-group ">
52
+
53
+
54
+ < div class ="custom-control custom-switch my-3 ">
55
+ < input type ="checkbox " class ="custom-control-input " id ="fetchnote " onclick ="switch_state() ">
56
+ < label class ="custom-control-label " for ="fetchnote "> Fetch Saved Notes on Startup</ label >
57
+ </ div >
58
+ < button type ="button " class ="btn btn-dark " onclick ="saved_notes_display() "> Fetch Saved Notes</ button >
59
+ < button type ="button " class ="btn btn-dark " data-toggle ="modal " data-target ="#exampleModal " > Clear Local Storage</ button >
60
+ </ form >
61
+ < div class ="note_container my-5 " style ="min-width: 100%; box-sizing: border-box; " id ="nc ">
62
+ < h4 > Your Notes</ h4 >
63
+ < div class ="notes d-flex flex-wrap justify-content-between " style ="width: 100%;box-sizing: border-box; "id ="nt ">
64
+
65
+ </ div >
66
+ </ div >
67
+ </ div >
68
+ </ div >
69
+ <!-- ///////////////////////////bootstrap modal/////////////////////////// -->
70
+
71
+ <!-- Modal -->
72
+ < div class ="modal fade " id ="exampleModal " tabindex ="-1 " aria-labelledby ="exampleModalLabel " aria-hidden ="true ">
73
+ < div class ="modal-dialog ">
74
+ < div class ="modal-content ">
75
+ < div class ="modal-header ">
76
+ < h5 class ="modal-title " id ="exampleModalLabel "> Warning</ h5 >
77
+ < button type ="button " class ="close " data-dismiss ="modal " aria-label ="Close ">
78
+ < span aria-hidden ="true "> ×</ span >
79
+ </ button >
80
+ </ div >
81
+ < div class ="modal-body ">
82
+ If you proceed further then your whole local storage will be cleared and you'll lost all note saved in your browser local storage. Think twice before proceeding.
83
+ </ div >
84
+ < div class ="modal-footer ">
85
+ < button type ="button " class ="btn btn-secondary " data-dismiss ="modal "> Close</ button >
86
+ < button type ="button " onclick ="localStorage_clear()
87
+ " class ="btn btn-dark "> Clear Storage</ button >
88
+ </ div >
89
+ </ div >
90
+ </ div >
91
+ </ div >
92
+ < script src ="js/script.js "> </ script >
93
+ <!-- Optional JavaScript; choose one of the two! -->
94
+
95
+ <!-- Option 1: jQuery and Bootstrap Bundle (includes Popper) -->
96
+ < script src ="https://code.jquery.com/jquery-3.5.1.slim.min.js " integrity ="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj " crossorigin ="anonymous "> </ script >
97
+ < script src ="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/js/bootstrap.bundle.min.js " integrity ="sha384-ho+j7jyWK8fNQe+A12Hb8AhRq26LrZ/JpcUGGOn+Y7RsweNrtN/tE3MoK7ZeZDyx " crossorigin ="anonymous "> </ script >
98
+
99
+ </ body >
100
+ </ html >
0 commit comments