Skip to content

Commit 78850d8

Browse files
committed
update
1 parent 0df767a commit 78850d8

File tree

1 file changed

+83
-4
lines changed

1 file changed

+83
-4
lines changed

index.html

+83-4
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,97 @@
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8">
5-
<meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1">
5+
<meta name="viewport"
6+
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
67
<meta http-equiv="X-UA-Compatible" content="ie=edge">
78
<title>Maintenance</title>
89
<link href="https://fonts.googleapis.com/css?family=Raleway" rel="stylesheet">
9-
<style>body,html{font-family:Raleway,sans-serif;width:100%;height:100%;margin:0;padding:0;overflow:hidden;position:relative;color:#4d4d4d}.content{position:absolute;top:50%;transform:translateY(-50%);z-index:1000;text-align:center;width:100%;overflow:auto;margin:auto;left:0;right:0}h1{font-size:40px;font-weight:100}h2{font-size:20px;font-weight:100}canvas{position:absolute;min-width:100%}@media screen and (min-width:640px){h1{font-size:80px}h2{font-size:30px}}</style>
10+
<style>
11+
body, html {
12+
font-family: 'Raleway', sans-serif;
13+
width: 100%;
14+
height: 100%;
15+
margin: 0;
16+
padding: 0;
17+
overflow: hidden;
18+
position: relative;
19+
color: #4d4d4d;
20+
21+
}
22+
23+
.content {
24+
position: absolute;
25+
top: 50%;
26+
transform: translateY(-50%);
27+
z-index: 1000;
28+
text-align: center;
29+
width: 100%;
30+
overflow: auto;
31+
margin: auto;
32+
left: 0;
33+
right: 0;
34+
}
35+
36+
h1 {
37+
font-size: 40px;
38+
font-weight: 100;
39+
}
40+
41+
h2 {
42+
font-size: 20px;
43+
font-weight: 100;
44+
}
45+
46+
svg {
47+
position: absolute;
48+
min-width: 100%;
49+
top: 0;
50+
left: 0;
51+
}
52+
53+
@media screen and (min-width: 640px) {
54+
h1 {
55+
font-size: 80px;
56+
}
57+
58+
h2 {
59+
font-size: 30px;
60+
}
61+
}
62+
63+
</style>
1064
</head>
1165
<body>
1266
<div class="content">
1367
<h1>Site under maintenance</h1>
1468
<h2>We'll be back soon. Sorry for inconvenience.</h2>
1569
</div>
1670
<script src="https://cdnjs.cloudflare.com/ajax/libs/trianglify/0.4.0/trianglify.min.js"></script>
17-
<script>function generateTrianglify(e){var n=Trianglify({width:window.innerWidth,height:window.innerHeight,cell_size:40,seed:"u3c38"});return e&&document.body.appendChild(n.canvas()),n}generateTrianglify(!0),window.onresize=function(e){var n=document.getElementsByTagName("canvas")[0],i=generateTrianglify(!1);n.parentNode.replaceChild(i.canvas(),n)}</script>
71+
<script>
72+
73+
function generateTrianglify(withadd) {
74+
var trianglify = Trianglify({
75+
width: window.innerWidth,
76+
height: window.innerHeight,
77+
cell_size: 40,
78+
seed: 'u3c38'
79+
});
80+
81+
if (withadd) {
82+
document.body.appendChild(trianglify.svg())
83+
}
84+
return trianglify
85+
}
86+
87+
generateTrianglify(true);
88+
89+
window.onresize = function (event) {
90+
var element = document.getElementsByTagName("svg")[0]
91+
var trianglify = generateTrianglify(false)
92+
element.parentNode.replaceChild(trianglify.svg(), element)
93+
94+
}
95+
96+
</script>
1897
</body>
19-
</html>
98+
</html>

0 commit comments

Comments
 (0)