-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathnotes.html
37 lines (33 loc) · 1.21 KB
/
notes.html
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>Notes: Window Management Demo</title>
</head>
<body>
<div class="grid">
<div class="box slide"><iframe src="./slide.html"></iframe></div>
<div class="box timer"><h3 id="timer">00:00</h3></div>
<div class="box notes"><textarea>Hand them a sandwich...</textarea></div>
</div>
<style>
body { background-color:whitesmoke; font-family: "Arial", sans-serif; }
iframe { width: 150%; height: 150%; transform: scale(0.66); transform-origin: 0 0; }
textarea { width:99%; height:99%; border-radius: 5px; }
.grid { display: grid; grid-gap: 1%; grid-template-columns: 60% 37%; grid-template-rows: 10% 88%; height: 98vh; width: 98vw; }
.box { background-color:lightgrey; border-radius: 5px; padding: 10px; text-align: center; }
.slide { grid-column: 1; grid-row: 1 / 3; }
.timer { grid-column: 2; grid-row: 1; }
.notes { grid-column: 2; grid-row: 2; }
</style>
<script src="main.js"></script>
<script>
'use strict';
window.addEventListener('load', () => {
let timer = 0;
setInterval(() => {
let pad = (i) => { return (i < 10 ? "0" : "") + i; }
document.getElementById('timer').innerHTML = pad(Math.floor(timer/60)) + ":" + pad(++timer % 60)
}, 1000);
});
</script>
</body>
</html>