-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
235 lines (221 loc) · 8.61 KB
/
index.html
File metadata and controls
235 lines (221 loc) · 8.61 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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
<html>
<head>
<title>♥</title>
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body>
<div class="image" id="image"></div>
<div class="container" id="right" onmouseover="rightHover();" onmouseout="unRightHover();">
<div class="iconTray" id="icon-right">
<div class="icon" id="icon1-r">
</div>
<div class="icon" id="icon2-r">
<img src="right.png" />
</div>
<div class="icon" id="icon3-r">
</div>
</div>
<div class="menu" id="menu-right">
<div class="col" id="col-1">
<p>Anime</p>
<a href="http://www.nyaa.si/">Nyaa</a>
<a href="http://anichart.net/">Anichart</a>
<a href="https://mangadex.org/">MangaDex</a>
<a href="https://animebytes.tv/">Animebytes</a>
<a href="https://buyfags.moe"> Buyfag.moe</a>
<a href="https://myfigurecollection.net/"> MFC </a>
</div>
<div class="col" id="col-2">
<p>4chan</p>
<a href="http://boards.4chan.org/a/">Anime</a>
<a href="http://boards.4chan.org/v/">Video Games</a>
<a href="http://boards.4chan.org/vg/">Games General</a>
<a href="http://boards.4chan.org/ck/">Cooking</a>
<a href="http://boards.4chan.org/wg/">Wallpapers</a>
</div>
<div class="col" id="col-3">
<p>Ratings</p>
<a href="https://anilist.co/user/Keramon/animelist">Anilist</a>
<a href="https://letterboxd.com">Letterboxd</a>
<a href="https://howlongtobeat.com/">Games</a>
<a href="https://trakt.tv/dashboard">TV</a>
<a href="https://pitchfork.com/">Pitchfork</a>
<a href="https://www.imdb.com/">IMDb</a>
<a href="https://www.influenster.com/">Influenster</a>
</div>
<div class="col" id="col-3">
<p>Other</p>
<a href="https://www.reddit.com">Reddit</a>
<a href="http://www.neopets.com/">Neopets</a>
<a href="https://www.amazon.com/">Amazon</a>
<a href="https://thepiratebay.org/">Pirate Bay</a>
</div>
</div>
</div>
<div class="container" id="left" onmouseover="leftHover();" onmouseout="unleftHover();">
<div class="iconTray" id="icon-left">
<div class="icon" id="icon1-l">
</div>
<div class="icon" id="icon2-l">
<img src="left.png" />
</div>
<div class="icon" id="icon3-l"></div>
</div>
<div class="menu" id="menu-left">
<div class="col" id="col-1">
<p>Video</p>
<a href="http://www.youtube.com/">YouTube</a>
<a href="http://www.twitch.tv/">Twitch</a>
<a href="http://www.netflix.com/">Netflix</a>
<a href="http://www.hulu.com/">Hulu</a>
<a href="http://127.0.0.1:3000">Manga</a>
<a href="http://127.0.0.1:9999">Video</a>
</div>
<div class="col" id="col-2">
<p>Learning</p>
<a href="https://itazuraneko.neocities.org/">/djt/</a>
<a href="https://jisho.org/">Jisho</a>
<a href="https://bunpro.jp/">Bunpro</a>
<a href="FF.html">Line Reader</a>
<a href="http://chloechantelle.com/guide">Ricing Guide</a>
</div>
<div class="col" id="col-3">
<p>Art</p>
<a href="https://www.artstation.com">Artstation</a>
<a href="https://www.pinterest.com/">Pinterest</a>
<a href="https://www.pixiv.net/en/">Pixiv</a>
<a href="https://gelbooru.com/">Gelbooru</a>
</div> <div class="col" id="col-3">
<p>Comics</p>
<a href="https://www.oglaf.com/">Oglaf</a>
<a href="http://pbfcomics.com/">Pbf</a>
<a href="http://shencomix.com/">OwlTurd</a>
<a href="https://www.mrlovenstein.com">Lovenstein</a>
<a href="https://hotpapercomics.com">Hotpaper</a>
</div>
</div>
</div>
<div class="outline" id="outline"></div>
<input id="search" value="" placeholder="" type="input" spellcheck="false" autocomplete="off" >
<script>
var $ = function(id){
return document.getElementById(id);
};
function leftHover(){
$("menu-left").setAttribute("style", "visibility: visible; opacity:1; transition:.2s;")
$("icon1-l").setAttribute("style", "visibility: hidden; opacity: 0; transition: .1s; pointer-event: none;");
$("icon2-l").setAttribute("style", "visibility: hidden; opacity: 0; transition: .1s; pointer-event: none;");
$("icon3-l").setAttribute("style", "visibility: hidden; opacity: 0; transition: .1s; pointer-event: none;");
}
function unleftHover(){
$("menu-left").setAttribute("style", "visibility: hidden; opacity:0; transition:.2s;")
$("icon1-l").setAttribute("style", "visibility: visible; opacity: 1; transition: .1s; pointer-event: none;");
$("icon2-l").setAttribute("style", "visibility: visible; opacity: 1; transition: .1s; pointer-event: none;");
$("icon3-l").setAttribute("style", "visibility: visible; opacity: 1; transition: .1s; pointer-event: none;");
}
function rightHover(){
$("menu-right").setAttribute("style", "visibility: visible; opacity:1; transition:.2s;");
$("icon1-r").setAttribute("style", "visibility: hidden; opacity: 0; transition: .1s; pointer-event: none;");
$("icon2-r").setAttribute("style", "visibility: hidden; opacity: 0; transition: .1s; pointer-event: none;");
$("icon3-r").setAttribute("style", "visibility: hidden; opacity: 0; transition: .1s; pointer-event: none;");
}
function unRightHover(){
$("menu-right").setAttribute("style", "visibility: hidden; opacity:0; transition:.2s;");
$("icon1-r").setAttribute("style", "visibility: visible; opacity: 1; transition: .1s; pointer-event: none;");
$("icon2-r").setAttribute("style", "visibility: visible; opacity: 1; transition: .1s; pointer-event: none;");
$("icon3-r").setAttribute("style", "visibility: visible; opacity: 1; transition: .1s; pointer-event: none;");
}
randBack();
var searchVal = 7;
function searchSelector(){
switch(searchVal){
case 1:
googleSearch();
break;
case 2:
youtubeSearch();
break;
case 3:
googleImgSearch();
break;
case 4:
amazonSearch();
break;
case 5:
wikiSearch();
break;
case 6:
chanSearch();
break;
case 7:
chanSearch();
break;
}
}
//search functions
function googleSearch(){
var query = $('search').value;
window.location = 'https://www.google.com/#q=' + query;
}
function youtubeSearch(){
var query = $('search').value;
window.location = 'https://www.youtube.com/results?search_query=' + query;
}
function googleImgSearch(){
var query = $('search').value;
window.location = 'https://www.google.com/search?tbm=isch&q=' + query;
}
function amazonSearch(){
var query = $('search').value;
window.location = 'https://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Daps&field-keywords=' + query;
}
function wikiSearch(){
var query = $('search').value;
window.location = 'https://en.wikipedia.org/wiki/' + query;
}
function chanSearch(){
var query = $('search').value;
window.location = 'http://4chan.org/' + query;
}
//random image
function randBack(){
var randB = Math.floor(Math.random() * 1);
switch (randB){
case 0:
$("image").style.backgroundImage = "url('solar2.png')";
break;
}
}
//key functions
document.onkeyup = function(e) {
if (e.which == 32) { //spacebar -- focus search
$("search").focus();
}else if (e.which == 27){ //esc -- blur search
$("search").blur();
}else if (e.which == 46){ //delete -- clear seach field
$("search").value = "";
}else if (e.which == 13){ //enter -- enter search field value
searchSelector();
}else if (e.which == 49){ //1 -- changes search to google
searchVal = 1;
$("search").placeholder = "Google Search";
}else if (e.which == 50){ //2 -- changes search to youtube
searchVal = 2;
$("search").placeholder = "YouTube Search";
}else if (e.which == 51){ //3 -- changes search to google images
searchVal = 3;
$("search").placeholder = "Google Image Search";
}else if (e.which == 52){ //4 -- changes search to amazon
searchVal = 4;
$("search").placeholder = "Amazon Search";
}else if (e.which == 53){ //4 -- changes search to amazon
searchVal = 5;
$("search").placeholder = "Wikipedia Search";
}else if (e.which == 54){ //4 -- changes search to amazon
searchVal = 6;
$("search").placeholder = "4chan Search (b / soc / wg...)";
}
};
</script>
</body>
</html>