-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
68 lines (59 loc) · 2.02 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Tri Kozaky Club</title>
<link rel="icon" type="image/png" href="favicon.png">
<style>
html,
body {
height: 100%;
width: 100vw;
margin: 0;
padding: 0;
overflow: hidden;
display: block;
position: relative;
box-sizing: border-box;
}
iframe {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
width: 100%;
height: 100%;
border: none;
}
.con-kit-bar {
display: none !important;
}
</style>
</head>
<body>
<iframe src="https://tri-kozaky.onepage.me/" frameborder="0" allowfullscreen></iframe>
<script>
document.addEventListener("DOMContentLoaded", function () {
const targetNode = document.body; // Body is usually a good place to observe for added elements
const config = { attributes: false, childList: true, subtree: true };
const callback = function (mutationsList, observer) {
for (let mutation of mutationsList) {
if (mutation.type === 'childList') {
mutation.addedNodes.forEach(node => {
if (node.nodeType === 1 && node.matches('.con-kit-bar')) { // Check if it's an element node and has the class
node.style.display = 'none'; // Hide it
}
});
}
}
};
// Create an observer instance linked to the callback function
const observer = new MutationObserver(callback);
// Start observing the target node for configured mutations
observer.observe(targetNode, config);
});
</script>
</body>
</html>