Spaces:
Running
Running
Update index.html
Browse files- index.html +15 -3
index.html
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
<head>
|
4 |
<meta charset="UTF-8">
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
-
<title>전체 화면
|
7 |
<style>
|
8 |
html, body {
|
9 |
margin: 0;
|
@@ -12,7 +12,7 @@
|
|
12 |
height: 100%;
|
13 |
overflow: hidden;
|
14 |
}
|
15 |
-
|
16 |
width: 100%;
|
17 |
height: 100%;
|
18 |
border: none;
|
@@ -20,6 +20,18 @@
|
|
20 |
</style>
|
21 |
</head>
|
22 |
<body>
|
23 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
</body>
|
25 |
</html>
|
|
|
3 |
<head>
|
4 |
<meta charset="UTF-8">
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>전체 화면 웹뷰</title>
|
7 |
<style>
|
8 |
html, body {
|
9 |
margin: 0;
|
|
|
12 |
height: 100%;
|
13 |
overflow: hidden;
|
14 |
}
|
15 |
+
#webview {
|
16 |
width: 100%;
|
17 |
height: 100%;
|
18 |
border: none;
|
|
|
20 |
</style>
|
21 |
</head>
|
22 |
<body>
|
23 |
+
<webview id="webview" src="https://fhcuop.vercel.app/" allowfullscreen></webview>
|
24 |
+
<script>
|
25 |
+
// 페이지가 로드되면 웹뷰 크기를 자동으로 조정
|
26 |
+
window.onload = function() {
|
27 |
+
const webview = document.getElementById('webview');
|
28 |
+
webview.style.height = window.innerHeight + 'px';
|
29 |
+
|
30 |
+
// 윈도우 크기가 변경될 때 웹뷰 크기도 조정
|
31 |
+
window.onresize = function() {
|
32 |
+
webview.style.height = window.innerHeight + 'px';
|
33 |
+
};
|
34 |
+
};
|
35 |
+
</script>
|
36 |
</body>
|
37 |
</html>
|