-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
executable file
·111 lines (110 loc) · 4.49 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Jarod</title>
<link href="lib/bootstrap.min.css" rel="stylesheet">
<link href="main/main.css" rel="stylesheet">
<!-- PWA -->
<link rel="manifest" href="manifest.json">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="Jarod">
<link rel="apple-touch-icon" sizes="180x180" href="icons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="192x192" href="icons/android-chrome-192x192.png">
<link rel="icon" type="image/png" sizes="512x512" href="icons/android-chrome-512x512.png">
<link rel="icon" type="image/png" sizes="16x16" href="icons/favicon-16x16.png">
<link rel="icon" type="image/png" sizes="32x32" href="icons/favicon-32x32.png">
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-TileImage" content="icons/mstile-150x150.png">
</head>
<body class="text-center">
<div class="cover-container d-flex w-100 h-100 p-3 mx-auto flex-column">
<header class="masthead mb-auto">
<div class="inner">
<h3 class="masthead-brand">Jarod</h3>
<nav class="nav nav-masthead justify-content-center">
<a class="nav-link active" href="#">Classic</a>
<a class="nav-link" href="simple/index.html">Simple</a>
</nav>
</div>
</header>
<main role="main" class="inner cover">
<h1 class="cover-heading">Create random profiles.</h1>
<canvas id="qr"></canvas>
<p id="result" class="lead"></p>
<div class="input-group input-group-lg">
<input id="template" value="v1|{{random.number}}|{{name.firstName}}|{{name.lastName}}|{{company.companyName}}|{{name.jobTitle}}|{{internet.email}}|{{phone.phoneNumber}}|{{address.country}}" type="text" class="form-control">
<div>
<label for="locales"></label>
<select id="locales" class="form-control-lg">
<option>az</option>
<option>cz</option>
<option>de</option>
<option>de_AT</option>
<option>de_CH</option>
<option selected="selected">en</option>
<option>en_AU</option>
<option>en_CA</option>
<option>en_GB</option>
<option>en_IE</option>
<option>en_IND</option>
<option>en_US</option>
<option>en_ZA</option>
<option>es</option>
<option>es_MX</option>
<option>fa</option>
<option>fr</option>
<option>fr_CA</option>
<option>ge</option>
<option>id_ID</option>
<option>it</option>
<option>ja</option>
<option>ko</option>
<option>nb_NO</option>
<option>nep</option>
<option>nl</option>
<option>pl</option>
<option>pt_BR</option>
<option>pt_PT</option>
<option>ru</option>
<option>sk</option>
<option>sv</option>
<option>tr</option>
<option>uk</option>
<option>vi</option>
<option>zh_CN</option>
<option>zh_TW</option>
</select>
</div>
</div>
<p class="lead">
<a id="create-button" href="#" class="btn btn-lg btn-secondary">Create</a>
</p>
</main>
<footer class="mastfoot mt-auto">
<div class="inner">
<p>Available data documentation at: <a href="https://github.com/marak/Faker.js#user-content-api-methods" target="_blank">Faker.js</a>.</p>
</div>
</footer>
</div>
<script src="lib/jquery-slim.min.js"></script>
<script src="lib/bootstrap.min.js"></script>
<script src="lib/qrious.min.js"></script>
<script src="lib/faker.min.js"></script>
<script src="main/main.js"></script>
<script>
document.getElementById("create-button").onclick = make;
make();
if ('serviceWorker' in navigator) {
navigator.serviceWorker
.register('service-worker.js')
.then(function() {
console.log('Service Worker Registered');
});
}
</script>
</body>
</html>