-
Notifications
You must be signed in to change notification settings - Fork 0
/
error.hbs
executable file
·28 lines (27 loc) · 1.18 KB
/
error.hbs
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
<!DOCTYPE html>
<html lang="{{lang}}">
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
<title>Page not found - {{meta_title}}</title>
<link href="https://fonts.googleapis.com/css?family=Roboto+Mono" rel="stylesheet" />
<link rel="stylesheet" type="text/css" href="{{asset "styles/main.css"}}" />
</head>
<body>
<div class="errorPage">
<div class="errorPage-title">
<a class="errorPage-link" href="{{@blog.url}}">{{@blog.title}}</a>
</div>
<div class="errorPage-wrap">
<div id="emoji" class="errorPage-emoji">(>_<)</div>
<div class="errorPage-text">{{t "Unfortunately, this page doesn't exist"}}</div>
</div>
</div>
<script type="text/javascript">
var emoji = ['(·.·)', '(>_<)', '(^-^*)', '(≥o≤)', '(˚Δ˚)b', '(·_·)', '(;-;)']
var emojiRandom = emoji[Math.floor(Math.random()*emoji.length)];
document.getElementById('emoji').innerHTML = emojiRandom;
</script>
</body>
</html>