mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-11 01:42:15 +01:00
feat: add 7.x source code
This commit is contained in:
28
test/testdata/chromium/html/sample2/index.html
vendored
Normal file
28
test/testdata/chromium/html/sample2/index.html
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
<!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>
|
||||
Reference in New Issue
Block a user