summaryrefslogtreecommitdiff
path: root/Base/home
diff options
context:
space:
mode:
Diffstat (limited to 'Base/home')
-rw-r--r--Base/home/anon/www/welcome.html6
-rw-r--r--Base/home/anon/www/welcome.js3
2 files changed, 5 insertions, 4 deletions
diff --git a/Base/home/anon/www/welcome.html b/Base/home/anon/www/welcome.html
index 3084977afe..e07463e859 100644
--- a/Base/home/anon/www/welcome.html
+++ b/Base/home/anon/www/welcome.html
@@ -20,14 +20,12 @@ span#ua {
color: red;
}
</style>
-<script>
-document.getElementById("ua").innerHTML = navigator.userAgent;
-</script>
+<script src="welcome.js"></script>
</head>
<body link="#44f" vlink="#c4c" background="90s-bg.png">
<h1>Welcome to the Serenity Browser!</h1>
<p>This is a very simple browser built on the LibWeb and LibJS engines.</p>
- <p>Your user agent is: <span id="ua"></span></p>
+ <p>Your user agent is: <b><span id="ua"></span></b></p>
<p>Some small test pages:</p>
<ul>
<li><a href="qsa.html">querySelectorAll test</a></li>
diff --git a/Base/home/anon/www/welcome.js b/Base/home/anon/www/welcome.js
new file mode 100644
index 0000000000..07497d0115
--- /dev/null
+++ b/Base/home/anon/www/welcome.js
@@ -0,0 +1,3 @@
+document.addEventListener("DOMContentLoaded", function() {
+ document.getElementById("ua").innerHTML = navigator.userAgent;
+});