-
-
Notifications
You must be signed in to change notification settings - Fork 36
/
error.html
48 lines (44 loc) · 1.79 KB
/
error.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
<!DOCTYPE html>
<html>
<head>
<title>@{model.code}: @{model.status}</title>
<meta charset="utf-8" />
<meta name="format-detection" content="telephone=no" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<meta name="robots" content="all,follow" />
<style type="text/css">
/*auto*/
html,body { height: 100%; width: 100%; overflow: hidden; font-family: Arial; font-smoothing:antialiased; background-color: white; margin: 0; padding: 0; color: black; }
.table { display: table; width: 100%; height: 100%; table-layout: fixed; }
.body { padding: 20px; }
.cell { display: table-cell; vertical-align: middle; text-align: center; width: 100%; height: 100%; font-size: 40px; }
.cell b { font-size: 60px; background-color: black; color: white; position: relative; display: inline-block; padding: 5px 10px; border-radius: 2px; margin-bottom: 5px; animation: anim 0.5s forwards 2s; }
.error { font-size: 11px; color: gray; width: 90%; max-width: 800px; margin: 20px auto; background-color: #F0F0F0; padding: 10px; border-radius: 2px; text-align: left; font-family: monospace; overflow: auto; }
#url { font-size: 12px; color: gray; }
@keyframes anim {
0% { transform: rotate(0deg); }
50% { transform: rotate(3deg) scale(1.3); }
100% { transform: rotate(5deg) scale(1); }
}
@media(max-width: 768px) {
.cell b { margin-bottom: 10px; }
.cell { font-size: 25px; }
}
</style>
</head>
<body>
<div class="table">
<div class="cell">
<div class="body">
<b>@{model.code}</b>
<div class="status">@{model.status}</div>
<div id="url"></div>
@{if model.error}<div class="error">@{model.error.replace(/\n/g, '<br>')}</div>@{fi}
</div>
</div>
</div>
<script>
document.getElementById('url').innerHTML = location.href;
</script>
</body>
</html>