mirror of
https://github.com/sweidac/kidsbox.git
synced 2025-07-27 19:31:54 +02:00
Adds basic web-page stub.
This commit is contained in:
@@ -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
www/main.js
Normal file
10
www/main.js
Normal 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
0
www/styles.css
Normal file
Reference in New Issue
Block a user