-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
118 lines (105 loc) · 5.08 KB
/
Copy pathindex.html
File metadata and controls
118 lines (105 loc) · 5.08 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
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
112
113
114
115
116
117
118
<!doctype html>
<html>
<head>
<title>Web Fonts Comparator</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="A simple web fonts comparator">
<meta name="theme-color" content="#aaaaff" />
<link rel="icon" href="favicon.ico">
<link rel="manifest" href="/manifest.json">
<!-- Add iOS meta tags and icons -->
<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="Web Fonts Comparator">
<link rel="apple-touch-icon" href="/assets/icon-144.png">
<!-- jQuery -->
<script src="libs/jquery-1.11.1.min.js" type="text/javascript"></script>
<!-- Bootstrap -->
<link href="libs/bootstrap/bootstrap.min.css" type="text/css" rel="stylesheet" />
<link href="libs/bootstrap/bootstrap-theme.min.css" type="text/css" rel="stylesheet" />
<script src="libs/bootstrap/bootstrap.min.js" type="text/javascript"></script>
<!-- AngularJS -->
<script src="libs/angular-1.3.6.min.js" type="text/javascript"></script>
<!-- SweetAlert -->
<link href="libs/sweetalert/SweetAlert.css" type="text/css" rel="stylesheet" />
<script src="libs/sweetalert/SweetAlert.min.js" type="text/javascript"></script>
<script src="libs/sweetalert/ngSweetAlert.min.js" type="text/javascript"></script>
<!-- Service worker -->
<script>
// Check if service workers are supported.
if ('serviceWorker' in navigator) {
// Wait for the page to load, then register a service worker.
window.addEventListener('load', function() {
navigator.serviceWorker.register('service-worker.js').then(function(registration) {
console.log('[Initialization] Service worker registered');
}).catch(function(err) {
console.log('[Initialization] Service worker registration failed: ', err);
});
});
} else {
console.log('[Initialization] Service workers are not supported');
}
</script>
<!-- App -->
<link href="app/main.css" type="text/css" rel="stylesheet" />
<script src="app/main.js" type="text/javascript"></script>
</head>
<body ng-app="myApp">
<div ng-controller="myController" class="container text-center">
<div class="row settings">
<div class="col-sm-3">
<input type="text" ng-model="text" style="width: 100%" />
</div>
<div class="col-sm-3">
<input type="number" ng-model="size" style="width: 50%" />
<select ng-model="unit">
<option value="em">em</option>
<option value="px">px</option>
<option value="pt">pt</option>
</select>
</div>
<div class="col-sm-2 col-xs-4">
<div class="checkbox">
<label>
<input type="checkbox" ng-model="bold" />
Bold
</label>
</div>
</div>
<div class="col-sm-2 col-xs-4">
<div class="checkbox">
<label>
<input type="checkbox" ng-model="italic" />
Italic
</label>
</div>
</div>
<div class="col-sm-2 col-xs-4">
<div class="checkbox">
<label>
<input type="checkbox" ng-model="upper" />
Upper
</label>
</div>
</div>
</div>
<br>
<div class="row fonts" ng-repeat="group in fonts">
<div class="col-sm-3" ng-repeat="font in group">
<div class="box" ng-click="clicked(font)">
<span class="description">{{ getFirst(font) }}</span><br>
<span ng-style="{'font-family': font, 'font-size': (size + unit), 'font-weight': (bold? 'bold' : 'normal'), 'font-style': (italic? 'italic' : 'normal'), 'text-transform': (upper? 'uppercase' : 'none') }">{{ text }}<span>
</div>
</div>
</div>
<br>
<div class="alert alert-info" role="alert" id="div_install">
<strong>Good news!</strong> This application is a PWA, which
means you can install it and use it offline by just clicking
<button class="btn btn-primary" id="btn_install">here</button>.
</div>
</div>
<script src="app/install.js" type="text/javascript"></script>
</body>
</html>