forked from fssonca/electron-printer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
64 lines (44 loc) · 1.32 KB
/
index.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
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP -->
<!-- <m eta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'"> -->
<title>TEST PRINTER</title>
<style>
body{font-family:sans-serif}
</style>
</head>
<body>
<h1>Test printer</h1>
Node.js <span id="node-version"></span> -
Chromium <span id="chrome-version"></span> -
Electron <span id="electron-version"></span>.
<div>
<form name>
<p>List of printers:</p>
<div id='list_printers'>
</div>
<br>
<p>Width</p>
<input type="radio" id="w1" name="width" value="140px">
<label for="w1">140px</label><br>
<input type="radio" id="w2" name="width" value="170px">
<label for="w2">170px</label><br>
<input type="radio" id="w3" name="width" value="200px">
<label for="w3">200px</label><br>
<input type="radio" id="w4" name="width" value="250px">
<label for="w4">250px</label><br>
<input type="radio" id="w5" name="width" value="300px">
<label for="w5">300px</label><br>
</form>
</div>
<br>
<input onclick="print()" type="button" value="printer test"/>
<br>
<br>
<br>
<!-- You can also require other files to run in this process -->
<script src="./renderer.js"></script>
</body>
</html>