This repository has been archived by the owner on Mar 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
118 lines (115 loc) · 2.7 KB
/
index.php
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<?php
$MAXID = 4; //change me
$ID = $_GET['id'] != "" ? $_GET['id'] : 1;
$NEXTID = $ID+1 <= $MAXID ? $ID+1 : 1;
?><!DOCTYPE html>
<html>
<head>
<title>HOBBIT</title>
<style>
* {
font-family: 'Marcellus', 'Times New Roman', serif;
padding: 0px;
margin: 0px;
text-align: center;
cursor: none !important;
}
html, body{
width: 1024px; height: 600px;
overflow: hidden; /* does not work on chrome? */
}
@-webkit-keyframes super-rainbow {
0% {
background: #ffff00;
}
20% {
background: #ffcd00;
}
40% {
background: #c3d74b;
}
60% {
background: #c3d7d7;
}
80% {
background: #ffc39b;
}
100% {
background: #ffff00;
}
}
@-moz-keyframes super-rainbow {
0% {
background: #ffff00;
}
20% {
background: #ffcd00;
}
40% {
background: #c3d74b;
}
60% {
background: #c3d7d7;
}
80% {
background: #ffc39b;
}
100% {
background: #ffff00;
}
}
body {
padding: 0px;
background-color:#eee;
}
#permanent {
width: 1024px;
height: 600px;
font-size:24px;
-webkit-animation: super-rainbow 5s infinite linear;
-moz-animation: super-rainbow 5s infinite linear;
}
#container {
-webkit-animation: super-rainbow 5s infinite linear;
-moz-animation: super-rainbow 5s infinite linear;
}
#foo{
font-family: Courier New,monospace !important;
font-weight: bold;
margin-top: -10px;
}
#napis {
background: rgba(0,0,0,0.1);
height: 50px;
max-width: 1024px;
font-size: 40px;
}
</style>
<SCRIPT SRC="http://code.jquery.com/jquery-1.11.3.min.js"></SCRIPT>
<script>
$( document ).ready(function() {
var i=-1000;
setInterval(function(){
$("#foo").css('margin-left',-i)
i+=5
if (i>Math.max($("#foo").width(), 1024)) i=-1000
}, 50);
});
</script>
<script>
setTimeout(function(){location.href="index.php?id=<?php echo $NEXTID; ?>"} , 30 * 1000);
</script>
</head>
<body>
<div id="container">
<div id="permanent">
<img src="imgs/hobbit<?php echo $ID; ?>.png" height="550px" />
<div id="napis">
<span id="foo">
<?php echo file_get_contents("./napis.txt", FILE_USE_INCLUDE_PATH); ?>
</span>
</div>
</div>
</div>
</body>
</html>