-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
129 lines (113 loc) · 3.19 KB
/
index.html
File metadata and controls
129 lines (113 loc) · 3.19 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
<!DOCTYPE html>
<html>
<head>
<html lang="en-us"></html> <meta charset="utf-8" />
<title>Shade Notes Go</title>
<link href="https://fonts.googleapis.com/css?family=Reenie+Beanie&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="style.css" />
<link rel="manifest" href="manifest.json" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<style>
.circle-popup {
position: fixed;
bottom: 30px;
left: 30px;
width: 40px;
height: 40px;
border-radius: 50%;
background-color: #e74c3c;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
z-index: 9999;
}
.chat-icon {
position: fixed;
bottom: 30px;
left: 30px;
width: 60px;
height: 60px;
border-radius: 50%;
background-color: #e74c3c;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
z-index: 9999;
}
.popup-content {
position: fixed;
top: 10px;
left: 10%;
right: 10%;
width: 80%;
height: 50%;
background-color: rgba(0, 0, 0, 0.7);
display: none;
z-index: 99999;
border-radius: 20%
}
.close-btn {
position: absolute;
top: 10px;
left: 50px
right: 10px;
width: 20px;
height: 20px;
background-color: #e74c3c;
cursor: pointer;
}
iframe {
width: 100%;
height: 100%;
border-radius: 10%;
}
</style>
</head>
<body>
<div id="heading">
<h1>Shade Notes</h1>
</div>
<div id="form">
<form id="inputForm">
<input type="text" class="inputText" placeholder="Note Title" id="new-note-title-input" autocomplete="on" required
autofocus />
<input class="inputText" type="text" placeholder="What's on your mind?" id="new-note-body-input"
autocomplete="off" required />
<button type="submit" class="btn">
Save Note
</button>
</form>
</div>
<h3 id="no-notes">You don't have any notes, try adding some.</h3>
<ul id="notes"></ul>
<script src="myscripts.js"></script>
<div class="circle-popup">
<div class="chat-icon">🪄</div>
<div class="popup-content">
<iframe id="popup-iframe" src="https://shadeappworld.github.io/shadeapp/index.html#!https://shadeappworld.github.io/shadeapp/index.html"></iframe>
</div>
</div>
<script>
// Get the necessary DOM elements
var circlePopup = document.querySelector('.circle-popup');
var popupContent = document.querySelector('.popup-content');
var closeBtn = document.querySelector('.close-btn');
// Function to toggle the popup
function togglePopup() {
popupContent.style.display = popupContent.style.display === 'none' ? 'block' : 'none';
}
// Add event listeners to the elements
circlePopup.addEventListener('click', togglePopup);
closeBtn.addEventListener('click', togglePopup);
</script>
<script>
</script>
<script>
if (typeof navigator.serviceWorker !== 'undefined') {
navigator.serviceWorker.register('sw.js')
}
</script>
</body>
</html>