Spaces:
Running
Running
feat: index page
Browse files- index.html +56 -0
index.html
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Kinematify Proxy</title>
|
| 7 |
+
<style>
|
| 8 |
+
* {
|
| 9 |
+
margin: 0;
|
| 10 |
+
padding: 0;
|
| 11 |
+
box-sizing: border-box;
|
| 12 |
+
}
|
| 13 |
+
|
| 14 |
+
body, html {
|
| 15 |
+
width: 100%;
|
| 16 |
+
height: 100%;
|
| 17 |
+
overflow: hidden;
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
+
iframe {
|
| 21 |
+
width: 100%;
|
| 22 |
+
height: 100%;
|
| 23 |
+
border: none;
|
| 24 |
+
}
|
| 25 |
+
|
| 26 |
+
.error {
|
| 27 |
+
display: none;
|
| 28 |
+
padding: 20px;
|
| 29 |
+
background: #fee;
|
| 30 |
+
color: #c00;
|
| 31 |
+
text-align: center;
|
| 32 |
+
}
|
| 33 |
+
</style>
|
| 34 |
+
</head>
|
| 35 |
+
<body>
|
| 36 |
+
<div class="error" id="error">
|
| 37 |
+
Unable to load the content. The target site may not allow embedding.
|
| 38 |
+
</div>
|
| 39 |
+
<iframe
|
| 40 |
+
id="proxyFrame"
|
| 41 |
+
src="https://kinematify.kindsky-4c5ceb48.westus2.azurecontainerapps.io/"
|
| 42 |
+
sandbox="allow-same-origin allow-scripts allow-forms allow-popups allow-modals"
|
| 43 |
+
allowfullscreen>
|
| 44 |
+
</iframe>
|
| 45 |
+
|
| 46 |
+
<script>
|
| 47 |
+
const iframe = document.getElementById('proxyFrame');
|
| 48 |
+
const error = document.getElementById('error');
|
| 49 |
+
|
| 50 |
+
iframe.onerror = function() {
|
| 51 |
+
error.style.display = 'block';
|
| 52 |
+
iframe.style.display = 'none';
|
| 53 |
+
};
|
| 54 |
+
</script>
|
| 55 |
+
</body>
|
| 56 |
+
</html>
|