-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathweeb.js
45 lines (43 loc) · 1.71 KB
/
weeb.js
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
var vid = document.getElementById("vid");
var aud = document.getElementById("audio");
var audioLabel = document.getElementById("label");
var weebButton = document.getElementById("weebbutton");
var h1 = document.querySelectorAll("h1");
var demoQueryAll = document.querySelectorAll('section>h2, div>h2, ul, figcaption');
var images = document.querySelectorAll('figure img');
var isWeeb = false;
function weebify(){
if(isWeeb == false){
vid.setAttribute('src','weeb/alvideo.mp4');
aud.setAttribute('src','weeb/almusic.mp3');
audioLabel.innerHTML = "\"Azur Lane x Kancolle x High School Fleet x Arpeggio of Blue Steel (Mashup)\" by Sweg420";
audioLabel.setAttribute('href','https://www.youtube.com/watch?v=IxLb09-WHEQ');
audioLabel.style.maxWidth = "12em";
weebButton.innerHTML = "Unweebify";
demoQueryAll.forEach(query => {
query.style.fontFamily = "AnimeAce";
});
h1.forEach(query =>{
query.style.fontFamily = "Shinto";
});
for(i = 0;i<images.length;i++){
images[i].setAttribute('src','weeb/'+i+'.png')
}
isWeeb = true;
}
else{
// vid.setAttribute('src','assets/midwayvid.mp4');
// aud.setAttribute('src','assets/midway.mp3');
// audioLabel.innerHTML = "\"Midway\" by sabaton";
// audioLabel.setAttribute('href','https://youtu.be/NuOnQpyP1nc');
// weebButton.innerHTML = "Weebify";
// demoQueryAll.forEach(query => {
// query.style.fontFamily = "JA3017";
// });
// h1.forEach(query =>{
// query.style.fontFamily = "YFury";
// });
// isWeeb = false;
location.reload();
}
}