-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
81 lines (69 loc) · 3.7 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
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<title>Marvel</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Busca Marvel - Teste front-end Objective.">
<meta name="author" content="Paulo Cézar Francisco Júnior">
<link rel="shortcut icon" href="img/favicon.ico">
<link rel="manifest" href="manifest.json">
<!-- Add to homescreen for Chrome on Android -->
<meta name="mobile-web-app-capable" content="yes">
<link rel="icon" sizes="512x512" href="img/touch/favicon512.png">
<!-- Add to homescreen for Safari on iOS -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="#D42026">
<meta name="apple-mobile-web-app-title" content="Busca Marvel">
<link rel="apple-touch-icon-precomposed" href="img/touch/favicon192.png">
<!-- Tile icon for Win8 (144x144 + tile color) -->
<meta name="msapplication-TileImage" content="img/touch/favicon144.png">
<meta name="msapplication-TileColor" content="#D42026">
<link rel="stylesheet" href="css/all/app.css" media="all">
<link rel="stylesheet" href="css/all/detail.css" media="all">
<link rel="stylesheet" href="css/mobile/app.css" media="screen and (max-width: 480px)">
<link rel="stylesheet" href="css/mobile/detail.css" media="screen and (max-width: 480px)">
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,900" rel="stylesheet">
<script type="text/javascript" src="serviceworker-cache-polyfill.js"></script>
<script type="text/javascript" src="js/window.functions.js"></script>
<script type="text/javascript" src="js/global.js"></script>
<script type="text/javascript" src="js/prototypes.js"></script>
<script type="text/javascript" src="js/Element.js"></script>
<script type="text/javascript" src="js/util.js"></script>
<link rel="manifest" href="/manifest.json">
<script>
// Service workers require HTTPS (http://goo.gl/lq4gCo). If we're running on a real web server
// (as opposed to localhost on a custom port, which is whitelisted), then change the protocol to HTTPS.
if ((!location.port || location.port === "80") && location.protocol !== 'https:') {
location.protocol = 'https:';
}
</script>
<script type="text/javascript" src="js/listeners.js"></script>
</head>
<body>
<div id="root">
<div id="loading">
<div>
<img src="img/loading.gif" width="90" height="90" />
<div id="loading-status">Inicializando...</div>
</div>
</div>
</div>
<script>
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('./serviceworker.js', {scope: './'}).then(function() {
console.log("Service worker registered");
}).catch(function(error) {
console.error(error);
});
} else {
// The current browser doesn't support service workers.
let aElement = document.createElement('a');
aElement.href = 'http://www.chromium.org/blink/serviceworker/service-worker-faq';
aElement.textContent = 'Service workers are not supported in the current browser.';
document.querySelector('#root').appendChild(aElement);
}
</script>
<script type="text/javascript" src="js/app.js"></script>
</body>
</html>