Adds basic web-page stub.

This commit is contained in:
Simon Weidacher committed 2021-12-26 14:05:02 +01:00
1 parent ad2499506a
commit 663cabf165
3 files changed
+19

No files matched your search

+9
View File
@@ -1,8 +1,17 @@
<html>
<head>
<title>Kidsbox</title>
<link rel="stylesheet" src="styles.css">
</head>
<body>
<h1>Hi, I'm a File!</h1>
<section class="rfid">
<h3>RFID-ID</h3>
<div class="rfid-id"></div>
<button class="rfid-refresh">refresh</button>
</section>
<script src="main.js"></script>
</body>
</html>
+10
View File
@@ -0,0 +1,10 @@
console.log('hi');
const elements = {};
elements.rfidId = document.querySelector('.rfid-id');
elements.rfidRefresh = document.querySelector('.rfid-refresh');
elements.rfidRefresh.addEventListener('click', () => {
console.log(window.location.origin);
});
View File
Whitespace-only changes.