starting on the extension

This commit is contained in:
Oliver Atkinson
2024-12-12 15:32:04 -07:00
parent 298ad39a79
commit 611a1e923b
10 changed files with 86 additions and 0 deletions

16
browser/main/main.html Normal file
View File

@@ -0,0 +1,16 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="style.css">
</head>
<body>
<p>Here is some text</p>
<p id="changeme">old</p>
<script src="script.js" async defer></script>
</body>
</html>

5
browser/main/script.js Normal file
View File

@@ -0,0 +1,5 @@
document.getElementById("changeme").innerText = "newer"
window.fetch("http://127.0.0.1:9001").then((e) => {
console.log(e)
})

4
browser/main/style.css Normal file
View File

@@ -0,0 +1,4 @@
html {
background: black;
color: white;
}