Visual-Audio / index.html
kolaslab's picture
Update index.html
b4e8aa0 verified
raw
history blame
1.06 kB
<!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>