<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Wrapper</title> | |
<style> | |
body, html { | |
margin: 0; | |
padding: 0; | |
height: 100%; | |
overflow: hidden; | |
} | |
.fullscreen-iframe { | |
position: absolute; | |
top: 0; | |
left: 0; | |
width: 100%; | |
height: 100%; | |
} | |
iframe { | |
width: 100%; | |
height: 100%; | |
} | |
</style> | |
</head> | |
<body> | |
<div class="fullscreen-iframe"> | |
<iframe | |
src="https://app.cu.bzh" | |
frameborder="0" | |
allowfullscreen | |
crossorigin | |
credentialless | |
allow="cross-origin-isolated"> | |
</iframe> | |
</div> | |
</body> | |
<!-- <body> | |
<h1>Wrapper</h1> | |
<iframe | |
src="http://localhost:3000" | |
crossorigin | |
allow="cross-origin-isolated"> | |
</iframe> | |
<iframe | |
src="https://app.cu.bzh" | |
crossorigin | |
credentialless | |
allow="cross-origin-isolated" | |
width="480px" | |
height="360px"> | |
</iframe> | |
<script> | |
document.addEventListener('DOMContentLoaded', function() { | |
var resultElement = document.createElement('p'); | |
var featureCheckResult; | |
if (typeof SharedArrayBuffer !== 'undefined') { | |
featureCheckResult = 'SharedArrayBuffers are supported in this browser. ✅'; | |
} else { | |
featureCheckResult = 'SharedArrayBuffers are not supported in this browser. ❌'; | |
} | |
resultElement.textContent = featureCheckResult; | |
document.body.appendChild(resultElement); | |
}); | |
</script> | |
</body> --> | |
</html> |