-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
74 lines (63 loc) · 2.01 KB
/
index.html
File metadata and controls
74 lines (63 loc) · 2.01 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="libs/mini-nord.min.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
html, body{
width: 100%;
height: 100%;
overflow: hidden;
}
.wrapper{
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}
.inner{
display: flex;
flex-direction: column;
text-align: center;
}
.inner input{
background-color: white;
}
h2{
margin-bottom: 0;
}
</style>
</head>
<body>
<div class="wrapper">
<div class="inner">
<h2>PRESENTA Lib</h2>
<h3>Starterkit launcher</h3>
<p>Set the relative path to your markdown file:</p>
<input id="doc" type="text" value="example/presentation.md" />
<button id="presenter">Open Presenter</button>
<button id="noter">Open Notes</button>
<button id="printr">Open Printer</button>
</div>
</div>
<script>
const doc = document.querySelector('#doc')
const presBtn = document.querySelector('#presenter')
const noteBtn = document.querySelector('#noter')
const printBtn = document.querySelector('#printr')
presBtn.addEventListener('click', e => {
window.open('presenter.html?name=' + doc.value, 'presenter', "resizable")
})
noteBtn.addEventListener('click', e => {
window.open('noter.html?name=' + doc.value, 'noter', "resizable")
})
printBtn.addEventListener('click', e => {
window.open('printer.html?name=' + doc.value, 'printer', "resizable")
})
</script>
</body>
</html>