-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
136 lines (132 loc) · 4.75 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link
rel="icon"
type="image/png"
href="/src/client/src/assets/logos/icon-152x152.png"
/>
<link
rel="apple-touch-icon"
type="image/png"
href="/src/client/src/assets/logos/icon-128x128.png"
/>
<link
rel="mask-icon"
type="image/png"
href="/src/client/src/assets/logos/icon-384x384.png"
/>
<link rel="manifest" href="/src/client/manifest.json" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>FrontiersCabal</title>
<meta
name="description"
content="Frontierscabal - your ultimate all-in-one platform designed to cater to every student's needs. Access extensive database of pastquestions and answers, helping you excel in exams with ease. Unleash Your creativity with built-in blog editor, where you can write and explore insightful articles on various topics. Stay updated with importants event through our handy notifier, Frontierscabal is here to empower and enrich your educational journey like never before! "
/>
<!-- Additional Meta Tags for SEO -->
<meta
name="keywords"
content="education, past questions, answers, exams, blog, events, Frontierscabal"
/>
<meta
name="robots"
content="index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1"
/>
<meta property="og:locale" content="en_US" />
<meta
name="og:title"
content="Frontierscabal - Your Ultimate Educational Platform"
/>
<meta
name="og:description"
content="Frontierscabal is your ultimate all-in-one platform designed to cater to every student's needs. Access an extensive database of past questions and answers, excel in exams with ease, unleash your creativity with our built-in blog editor, and stay updated with important events. Frontierscabal empowers and enriches your educational journey like never before."
/>
<meta name="og:url" content="https://frontierscabal.com" />
<meta name="og:type" content="website" />
<meta property="og:site_name" content="FrontiersCabal" />
<link rel="canonical" href="https://frontierscabal.com" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@frontierscabal" />
<!-- Global site tag (gtag.js) - Google Analytics -->
<script
async
src="https://www.googletagmanager.com/gtag/js?id=G-CZN50NEF3P"
defer
></script>
<script defer>
window.dataLayer = window.dataLayer || [];
function gtag() {
window.dataLayer.push(arguments);
}
gtag("js", new Date());
gtag("config", "G-CZN50NEF3P");
</script>
<style type="text/css">
.pwa-install {
width: 100%;
display: none;
align-items: center;
justify-content: center;
z-index: 9999;
padding: 10px 20px;
background-color: azure;
gap: 2px;
}
.pwa-install-btn {
padding: 9px 18px;
height: fit-content;
width: fit-content;
color: white;
border-radius: 4px;
border: none;
background-color: #176984;
cursor: pointer;
}
.pwa-text {
padding: 5px;
font-size: 12px;
text-align: left;
}
</style>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div class="pwa-install">
<p class="pwa-text">
<b>Frontierscabal</b> - your ultimate all-in-one platform designed to
cater to every student's needs.
</p>
<button class="pwa-install-btn">Install</button>
</div>
<div id="root"></div>
<script type="module" src="/src/client/src/main.tsx"></script>
<script type="module">
let deferredPrompt;
const installBtn = document.querySelector(".pwa-install-btn");
const pwaBanner = document.querySelector(".pwa-install");
if (
(window.addEventListener("beforeinstallprompt", (e) => {
e.preventDefault(),
(deferredPrompt = e),
(pwaBanner.style.display = "flex");
installBtn.addEventListener("click", (e) => {
e.preventDefault(),
(pwaBanner.style.display = "none"),
deferredPrompt.prompt(),
deferredPrompt.userChoice.then((e) => {
"accepted" === e.outcome
? console.log("A2HS prompt accepted")
: console.log("A2HS prompt dismissed"),
(deferredPrompt = null);
});
});
}),
!deferredPrompt)
) {
let e = window.location.href;
-1 != e.indexOf("pwa") && (pwaBanner.style.display = "flex");
}
</script>
</body>
</html>