mirror of
https://github.com/sweidac/kidsbox.git
synced 2026-10-27 22:52:57 +01:00
Adds basic web-page stub.
This commit is contained in:
1 parent
ad2499506a
commit
663cabf165
3 files changed
+20
-1
No files matched your search
+10
-1
@@ -1,8 +1,17 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>Kidsbox</title>
|
<title>Kidsbox</title>
|
||||||
|
<link rel="stylesheet" src="styles.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>Hi, I'm a File!</h1>
|
<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>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
+10
@@ -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);
|
||||||
|
});
|
||||||
Whitespace-only changes.
Reference in new issue
Block a user