mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-08 00:22:14 +01:00
28 lines
539 B
HTML
28 lines
539 B
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Gutenberg</title>
|
|
</head>
|
|
<body>
|
|
|
|
<p id="status">
|
|
No window.status
|
|
</p>
|
|
|
|
<script type="application/javascript">
|
|
const delay = ms => new Promise(res => setTimeout(res, ms))
|
|
|
|
const changeStatus = async (status) => {
|
|
await delay(2000)
|
|
console.log('waited 2s')
|
|
|
|
document.getElementById('status').innerText = 'window.status === ' + status
|
|
|
|
window.status = status
|
|
};
|
|
|
|
changeStatus('ready')
|
|
</script>
|
|
</body>
|
|
</html> |