-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
143 lines (126 loc) · 4.6 KB
/
Copy pathindex.html
File metadata and controls
143 lines (126 loc) · 4.6 KB
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<!DOCTYPE html>
<html>
<head>
<!-- bs style -->
<link rel="stylesheet"href="res/bs.css">
<!-- own manifest -->
<link rel="manifest" href="app.webmanifest">
<link rel="apple-touch-icon" href="app data/ico@192.png">
<link rel="icon"href="app data/ico@max.png">
<!-- mt de ic cdn -->
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<!-- own css style -->
<link rel = "stylesheet" href="style.css">
<!-- metas -->
<meta name="description" content="this is notes as well as task app , this page redirects to install this app . name of this app is boosted">
<meta name="theme-color" content="#6610f2">
<meta name="apple-touch-icon" content="app data/ico@192.png">
<meta name="author" content="SGI">
<!--Keywords For Search Engines-->
<meta name="keywords" content="notes,to do,tasking">
<script>
if(localStorage.mode==="dark"){
var styleFordark = document.createElement("style");
styleFordark.innerHTML=`
body{
background:#141425;
}
.grid_type_note_container *,.list_type_note_container *{
color:#efefef;
}
div.under_input_light{
background: linear-gradient(to bottom, transparent,rgba(0,0,0,.1),#181615);
}
div.under_input_light .notable-fab{
background:#1f2a3e;color:#efeffe;
}
.form-control input,.form-control{
background: transparent;
color:#efefef;
}
.material-icons{
color:#efefef;
}
.nav-item .active{
background:#141425 !important;
border-bottom:0;
}
.nav-tabs{
border-color:#141425;
}
.dropdown-menu .dropdown-item:active {
color:#efeffe !important;}
.list-item-res *, .list-item-res{
color:#efefef;
}
.task *{
color:#efefef;
}
`;
document.head.append(styleFordark);
}
if ('serviceWorker' in navigator) {
window.addEventListener('load', function() {
navigator.serviceWorker.register('sw.js').then(function(registration) {
// Registration was successful
console.log('ServiceWorker registration successful with scope: ', registration.scope);
}, function(err) {
// registration failed :(
console.log('ServiceWorker registration failed: ', err);
});
});
}
</script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1,user-scalable=no">
<title>Boosted : ultimate notes</title>
</head>
<body>
<ul style="display:flex;" class="nav nav-tabs">
<li class="nav-item">
<a class="nav-link active mt-ico-nt" aria-current="page" href="#"data-page="notes"><i class="material-icons" style="margin:auto;">edit</i></a>
</li>
<li class="nav-item">
<a class="nav-link mt-ico-nt" href="#" tabindex="-1" aria-disabled="true"><i class="material-icons" style="margin:auto;">check_circle</i></a>
</li>
</ul>
<div data-notable-type="page_containt">
</div>
<notes-post-scripts>
<script src="app.js"></script>
<!-- bs script -->
<script src="res/bs.js"></script>
<!-- gh@codeninja02/swalt.js -->
<script src="res/swalt@codeninja02.js"></script>
<!-- share.js of Boosted -->
<script src="res/share.js"></script>
</notes-post-scripts>
<script>
let deferredPrompt;
window.addEventListener('beforeinstallprompt', (e) => {
e.preventDefault();
deferredPrompt = e;
var cont = document.createElement('div');
cont.classList.add('alert-super-container');
cont.innerHTML=`
<div class="alert-container alert-${localStorage.mode}" style="justify-content: center;justify-items: center; align-items: center;padding:10px;">
For getting better experience try our pwa version it will let you to create notes without internet.
<hr>
<button class="btn" data-for-add-btn>Install PWA</button>
<Hr>
<button class="btn" data-for-cancel-btn>Cancel</button>
</div>
`;
document.body.append(cont);
cont.style.padding="5px";
$("button[data-for-cancel-btn]").addEventListener('click',()=>{cont.remove()});
$("button[data-for-add-btn]").addEventListener('click', (e) => {
// hide our user interface that shows our A2HS button
cont.remove();
// Show the prompt
deferredPrompt.prompt();
// Wait for the user to respond to the prompt
deferredPrompt.userChoice.then((choiceResult) => { if (choiceResult.outcome === 'accepted') { console.log('User accepted the A2HS prompt'); } else { console.log('User dismissed the A2HS prompt'); } deferredPrompt = null; }); }); });
</script>
</body>
</html>