Some browser fixes.
This commit is contained in:
1 parent
8a560a25a5
commit
7c032a5f6e
22 files changed
+631
-31
No files matched your search
@@ -0,0 +1,12 @@
|
||||
<!doctype html><meta charset="utf-8"><title>Cthulhu Browser Probe</title>
|
||||
<button autofocus>Feed start</button>
|
||||
<main><section id="feed"><article><section><h2>Earlier post</h2></section></article><article><section><h2>Middle post</h2></section></article><article><section><h2>Later post</h2></section></article></section></main>
|
||||
<script>
|
||||
document.addEventListener('keydown', event => {
|
||||
if (event.key === 'F9') {
|
||||
document.getElementById('feed').outerHTML = '<section id="feed"><article><section><h2>Earlier refreshed post</h2></section></article><article><section><h2>Middle refreshed post</h2></section></article><article><section><h2>Later refreshed post</h2></section></article></section>';
|
||||
document.querySelector('button').textContent = 'Feed replacement complete';
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
Reference in new issue
Block a user