Adds basic web-page stub.

This commit is contained in:
Simon Weidacher
2021-12-26 14:00:30 +01:00
parent ad2499506a
commit 663cabf165
3 changed files with 20 additions and 1 deletions

View File

@@ -1,8 +1,17 @@
<html>
<head>
<title>Kidsbox</title>
<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
www/main.js Normal file
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);
});

0
www/styles.css Normal file
View File