File size: 1,063 Bytes
406bd9a
bcd4508
406bd9a
 
ec22703
b4e8aa0
406bd9a
ec22703
406bd9a
ec22703
406bd9a
ec22703
 
406bd9a
b4e8aa0
406bd9a
 
ec22703
406bd9a
 
 
 
b4e8aa0
 
 
 
 
 
 
 
 
 
 
 
 
406bd9a
 
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
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>전체 화면 웹뷰</title>
    <style>
        html, body {
            margin: 0;
            padding: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
        }
        #webview {
            width: 100%;
            height: 100%;
            border: none;
        }
    </style>
</head>
<body>
    <webview id="webview" src="https://fhcuop.vercel.app/" allowfullscreen></webview>
    <script>
        // 페이지가 로드되면 웹뷰 크기를 자동으로 조정
        window.onload = function() {
            const webview = document.getElementById('webview');
            webview.style.height = window.innerHeight + 'px';
            
            // 윈도우 크기가 변경될 때 웹뷰 크기도 조정
            window.onresize = function() {
                webview.style.height = window.innerHeight + 'px';
            };
        };
    </script>
</body>
</html>