Upload files to "/"
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="id">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
||||
<meta name="theme-color" content="#379237">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
||||
<title>Aplikasi SMK YAPPI Wonosari</title>
|
||||
|
||||
<meta name="description" content="Portal Aplikasi SMK YAPPI Wonosari" />
|
||||
<meta name="keywords" content="smk yappi wonosari, aplikasi, portal sekolah" />
|
||||
<meta http-equiv="Content-Security-Policy" content="default-src * 'self' 'unsafe-inline' 'unsafe-eval' data:; upgrade-insecure-requests">
|
||||
<meta name="ngrok-skip-browser-warning" content="true">
|
||||
|
||||
<link rel="manifest" href="/online/manifest.json">
|
||||
<link rel="icon" href="favicon.png" type="image/x-icon">
|
||||
|
||||
<style>
|
||||
body, html {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
background-color: #379237;
|
||||
}
|
||||
iframe {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border: none;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<iframe src="https://server.smkyappi-wns.sch.id/online" allowfullscreen></iframe>
|
||||
|
||||
<script>
|
||||
// PWA Registration in mask
|
||||
if ('serviceWorker' in navigator) {
|
||||
window.addEventListener('load', () => {
|
||||
navigator.serviceWorker.register('/online/service-worker.js')
|
||||
.then(reg => console.log('SW Registered in Mask'))
|
||||
.catch(err => console.log('SW Failed', err));
|
||||
});
|
||||
}
|
||||
|
||||
// Disable right-click & source view shortcuts
|
||||
document.addEventListener("contextmenu", (e) => e.preventDefault(), false);
|
||||
document.addEventListener("keydown", (e) => {
|
||||
if (e.key === "F12" || (e.ctrlKey && e.shiftKey && (e.key === "I" || e.key === "J" || e.key === "C")) || (e.ctrlKey && e.key === "U")) {
|
||||
e.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user