-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathnfc.html
More file actions
37 lines (35 loc) · 1.04 KB
/
nfc.html
File metadata and controls
37 lines (35 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<!DOCTYPE html>
<html lang = "en">
<head>
<title>WR++</title>
<meta charset = "utf-8">
<script src = "https://cdn.jsdelivr.net/npm/brython@3.11.0/brython.min.js"></script>
<script src = "https://cdn.jsdelivr.net/npm/brython@3.11.0/brython_stdlib.min.js"></script>
<style>
html, body {
margin: 0px;
}
p {
font-family: Arial, sans-serif;
font-size: 20px;
margin: 20px;
}
</style>
</head>
<body onload = "brython (0)">
<noscript>
<p>JavaScript is required to use this website.</p>
</noscript>
<script type = "text/python">
from browser import document, html
document.clear ()
tag_id = document.query.getvalue ("tid")
match tag_id:
case "beyondthebeat0":
document <= html.P ("The NFC tag is successfully read! This page is under construction.")
</script>
<script>
document.body.insertAdjacentHTML ("beforeend", '<p>Starting Brython...</p>')
</script>
</body>
</html>