-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgotosleep.html
74 lines (70 loc) · 2.11 KB
/
gotosleep.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<link rel="shortcut icon" href="../../assets/ico/favicon.ico">
<title>Going to sleep!</title>
<script src="js/jquery.js"></script>
<!--<script src="js/jquery.min.js"></script>-->
<script src="js/bootstrap/js/bootstrap.min.js"></script>
<link href="js/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="js/bootstrap/css/bootstrap-theme.min.css" rel="stylesheet">
<!--<link href="css/app.css" rel="stylesheet">-->
</head>
<style type = text/css>
body { padding-bottom: 70px; }
</style>
<script>
function go(){
setTimeout( function(){ $("h1").addClass("animation"); }, 2000);
setTimeout( function(){window.location = "wakeup.html"}, 2000+6000);
}
$(document).ready(function () {
go();
$("body,h1").click(function(){window.location = "wakeup.html"});
$(document).click(function(){window.location = "wakeup.html"});
});
</script>
<body>
<center>
<h1>Have a<br>fun time<br>sleepin'!</h1>
</center>
<style>
html, body{
height: 100%;
}
body {
background: url(img/sky.jpg);
background-size: 100% 100%;
}
h1 {
margin-top: 20%;
color: yellow;
text-shadow: 4px 4px 4px gray;
font-size: 600%;
opacity: 1;
white-space: nowrap;
}
.animation {
-webkit-transition: all 10s; /* For Safari 3.1 to 6.0 */
transition: all 10s;
-moz-transform: rotate(360deg);
-webkit-transform: rotate(360deg);
-o-transform: rotate(360deg);
margin-top: -20%;
color: white;
text-shadow: 4px 4px 4px black;
font-size: 3000%;
opacity: 0;
}
</style>
<script>if(window.innerWidth > 500) $('body').css('background','none')</script>
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300' rel='stylesheet' type='text/css'>
<style>* {font-family: 'Open Sans', 'sans-serif';}</style>
<script>localStorage.descNum = 0;</script>
</body>
</html>