-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathWMside.html
More file actions
147 lines (135 loc) · 3.24 KB
/
WMside.html
File metadata and controls
147 lines (135 loc) · 3.24 KB
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<html>
<head>
<title>WholesomeMemes sidebar</title>
<link rel="icon" href="pelement.png">
<style>
body{
background-color:#111;
}
#container{
display:block;
position:absolute;
width:300px;
height:330px;
left:50%;
top:50%;
margin-top:-165px;
margin-left:-150px;
overflow:hidden;
}
#cabin {
display: block;
position: absolute;
width: 300px;
height: 300px;
background-image: url(//b.thumbs.redditmedia.com/qxUywdq3cucs1TF2Uar3shANXpuME-g5V8MPNTF73qw.png);
background-position: -9px -10px;
animation: shake 600ms forwards infinite;
box-shadow: inset 0 0 100px black;
}
#cabin span{
display:block;
color: black;
font-family: Comic Sans MS,cursive;
font-style: italic;
font-weight: bold;
font-size: 24px;
text-align: center;
text-shadow: 1px 1px 0 white, 1px -1px 0 white, -1px 1px 0 white, -1px -1px 0 white, 1px 0 0 white, -1px 0 0 white, 0 1px 0 white, 0 -1px 0 white;
margin-top:25px;
}
#background {
content: "";
display: block;
position:absolute;
width: 228px;
height: 114px;
margin-bottom: 106px;
margin-left: 30px;
margin-top: 90px;
background-image: url(//b.thumbs.redditmedia.com/clp_cBIEcb8xVUCHkHYpv2xnNeR2kwPevf64qb2a_aU.png);
-webkit-animation: move 20s linear infinite;
animation: move 20s linear infinite;
}
#bob{
content: "";
display: block;
position: absolute;
width: 300px;
height: 120px;
right: 20px;
background-image: url(//b.thumbs.redditmedia.com/He-dmiOjFprNwuXZtGEsmacDSkg8vvpNgyCUl4qm93M.png);
background-repeat: no-repeat;
background-position: 300px 0;
top: 100px;
-webkit-animation: moveBob 15s linear infinite;
animation: moveBob 15s linear infinite;
overflow: hidden;
}
#input{
display:block;
position:absolute;
width:68%;
height:25px;
bottom:0;
text-indent:5px;
box-sizing:border-box;
}
button{
display:block;
position:absolute;
width:30%;
height:25px;
bottom:0;
right:0;
cursor:pointer;
}
input,button{
border:none;
background-color:#444;
color:#ddd;
outline:none;
}
input:focus,button:active{
background-color:#555;
}
@keyframes move{
to{
background-position:-772px 0;
}
}
@keyframes shake{
50%{
background-position:-11px -9px
}
100%{
background-position:-9px -9px
}
}
@keyframes moveBob{
90%{
background-position:300px 0;
}
100%{
background-position:-50px 0;
}
}
</style>
</head>
<body>
<div id="container">
<div id="background"></div>
<div id="bob"></div>
<div id="cabin">
<span id="text"></span>
</div>
<input id="input" placeholder="text here"></input>
<button onclick="setHTML()">Set!</button>
</div>
<script>
function setHTML(){
document.getElementById("text").innerHTML=document.getElementById("input").value;
}
</script>
</body>
</html>