Files
cthulhu/tests/browser-progress.html

20 lines
776 B
HTML

<!doctype html>
<html lang="en">
<meta charset="utf-8">
<title>Cthulhu Browser Probe</title>
<label>Probe start <input autofocus></label>
<button id="update">Update progress</button>
<label for="native">Native progress</label>
<progress id="native" max="100" value="0"></progress>
<div id="aria" role="progressbar" aria-label="ARIA progress"
aria-valuemin="0" aria-valuemax="100" aria-valuenow="10"></div>
<span id="shader">Processing Vulkan shaders (0%)</span>
<script>
document.getElementById('update').addEventListener('click', () => {
document.getElementById('native').value = 20;
document.getElementById('aria').setAttribute('aria-valuenow', '30');
document.getElementById('shader').textContent = 'Processing Vulkan shaders (37%)';
});
</script>
</html>