summaryrefslogtreecommitdiff
path: root/Base/home/anon/www/events.html
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-03-21 14:53:13 +0100
committerAndreas Kling <kling@serenityos.org>2020-03-21 14:53:13 +0100
commita7d458f76a654d145a2b466ff53c02bcac0505e6 (patch)
tree4225aaae7e854227fba2e5fa5de412661e5b460e /Base/home/anon/www/events.html
parent08b17d70af21c46247cf07c89073a0cb1ed7b1bc (diff)
downloadserenity-a7d458f76a654d145a2b466ff53c02bcac0505e6.zip
Base: Tidy up the events.html test page a little bit
Diffstat (limited to 'Base/home/anon/www/events.html')
-rw-r--r--Base/home/anon/www/events.html18
1 files changed, 7 insertions, 11 deletions
diff --git a/Base/home/anon/www/events.html b/Base/home/anon/www/events.html
index ed38a7178c..47754874a0 100644
--- a/Base/home/anon/www/events.html
+++ b/Base/home/anon/www/events.html
@@ -4,18 +4,14 @@
<script>
document.addEventListener("DOMContentLoaded", function() {
alert("It loaded!");
- );
- function on_mousedown() {
- alert("Mouse down!");
- }
-
- function on_mousemove() {
- alert("Mouse move!");
- }
-
- document.getElementById("my_div").addEventListener("mousedown", on_mousedown);
- document.getElementById("my_div").addEventListener("mousemove", on_mousemove);
+ document.getElementById("my_div").addEventListener("mousedown", function() {
+ alert("Mouse down!");
+ });
+ document.getElementById("my_div").addEventListener("mousemove", function() {
+ alert("Mouse move!");
+ });
+ });
</script>
</head>
<body>