-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
55 lines (44 loc) · 1.43 KB
/
index.html
File metadata and controls
55 lines (44 loc) · 1.43 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<!DOCTYPE html>
<head>
<title>Optimization Plant</title>
<link rel="stylesheet" type="text/css" href="style.css">
<meta name="description" content="Access the Optimization plant">
<base href=".">
<script
defer
src="https://edrys-org.github.io/edrys/module/vendor/alpine.min.js"
></script>
<link
rel="stylesheet"
href="https://edrys-org.github.io/edrys/module/vendor/water.min.css"
/>
<link
rel="stylesheet"
href="https://edrys-org.github.io/edrys/module/vendor/open-iconic/css/open-iconic.min.css"
/>
<script src="https://edrys-org.github.io/edrys/module/edrys.js"></script>
<script type="module" src="https://cdn.jsdelivr.net/npm/chart.js@4.3.0/dist/chart.umd.min.js"></script>
<script>
Edrys.onReady(()=>console.log("Edrys ready", Edrys));
</script>
</head>
<body>
<h1>Welcome to the plant</h1>
<script>
Edrys.onReady(()=>{
if(Edrys.role==="station"){
console.log(Edrys);
const username=Edrys.username;
console.log("Station script");
Edrys.setItem("date", "today");
console.log(Edrys.getItem("date"));
}
else if(Edrys.role!=="station"){
console.log(Edrys);
console.log(Edrys.getItem("date"));
}
})
</script>
<div class="bdy">
<button >Click me</button>
</body>