forked from PythonScratcher/uv
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgo.html
More file actions
84 lines (83 loc) · 2.18 KB
/
go.html
File metadata and controls
84 lines (83 loc) · 2.18 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
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Microsoft Teams</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@48,400,0,0" />
<link rel="shortcut icon" href="assets/images/branding/favicon.png" type="image/x-icon">
<style>
body{margin: 0;}
.panel{
display: flex;
position: absolute;
width: fit-content;
height: fit-content;
justify-content: center;
inset: 0;
margin: 0 auto;
}
.panel .controls{
background: #111;
transform: translateY(-100%);
transition: 0.2s;
visibility: hidden;
padding: 16px 32px;
display: flex;
align-items: center;
border-top: bibe;
gap: 1em;
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
z-index: 900;
justify-content: center;
align-items: center;
height: 20px;
}
.btn{
outline: 0;
border: 0;
background: #222;
padding: 10px;
color: #e7e7e7;
border-radius: 2px;
cursor: pointer;
}
.panel:hover .controls {
transform: none;
visibility: visible;
max-height: none;
height: 51.4px;
}
</style>
</head>
<body>
<div class="panel">
<div class="controls">
<button id="home" class="btn material-symbols-outlined">home</button>
<button id="screen" class="btn material-symbols-outlined">fullscreen</button>
</div>
</div>
<iframe
src="/loading.html"
id="frame"
scrolling="yes"
frameborder="0"
marginheight="0px"
marginwidth="0px"
height="100%"
width="100%"
allowfullscreen
></iframe>
<script>
const homeBtn = document.getElementById('home');
const screenBtn = document.getElementById('screen');
homeBtn.onclick = ()=>{window.location.href = '/'}
screenBtn.onclick = ()=>{if (!document.fullscreenElement){document.documentElement.requestFullscreen();} else {document.exitFullscreen();}};
window.onload = function () {
let encodedUrl = sessionStorage.getItem("encodedUrl");
encodedUrl = "/service/" + encodedUrl;
document.querySelector("#frame").src = encodedUrl;
};
</script>
</body>
</html>