-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
66 lines (46 loc) · 1.58 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
65
66
<!DOCTYPE html>
<html>
<head>
<title>ISBN-barcode creator</title>
<meta charset="UTF-8">
<link href="https://fonts.googleapis.com/css?family=Arimo" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="css/styles.css" />
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-TP3SHENB6T"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-TP3SHENB6T');
</script>
</head>
<body>
<div class="wrapper">
<h1>ISBN-barcode creator</h1>
<ol>
<li>Paste in your ISBN and click 'Get barcode'.</li>
<li>Click 'Save SVG' to save it to your computer.</li>
</ol>
<!-- A form for capturing a user's ISBN -->
<form>
<label for="isbn">Enter ISBN</label>
<input type="text" id="isbn" value="9780000000002" placeholder="9780000000002">
<input type="button" value="Get barcode" onclick="getISBN()" />
</form>
<div class="barcode">
<!-- Create a blank SVG for the barcode to be written into -->
<svg id="barcode" id="svg"></svg>
</div>
<!-- Create a div for the save button to appear in -->
<div id="save"></div>
<!-- Source -->
<div class="footer">
<a href="https://github.com/arthurattwell/isbn-barcode">Open source code</a>
</div>
<!-- Thanks for this script, https://github.com/lindell/JsBarcode -->
<script src="js/JsBarcode.ean-upc.min.js"></script>
<!-- Our ISBN-creation mechanism -->
<script src="js/isbn-barcode.js"></script>
</div>
</body>
</html>