mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:07:35 +00:00
Base: Move all the HTML test content into /res/html/misc
This commit is contained in:
parent
4720635aab
commit
de12cf6821
58 changed files with 1 additions and 1 deletions
23
Base/res/html/misc/set-interval.html
Normal file
23
Base/res/html/misc/set-interval.html
Normal file
|
@ -0,0 +1,23 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>setInterval() test</title>
|
||||
<script>
|
||||
document.addEventListener("DOMContentLoaded", function () {
|
||||
var output = document.getElementById("output");
|
||||
var counter = 0;
|
||||
function updateOutput () {
|
||||
output.innerHTML = `setInterval() was called ${counter} times!`;
|
||||
}
|
||||
updateOutput();
|
||||
setInterval(function () {
|
||||
counter++;
|
||||
updateOutput();
|
||||
}, 1000);
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="output"></div>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue