-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
54 lines (44 loc) · 1.16 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<title>Anime4K Player</title>
<script src='Anime4K.js'></script>
<style>
body {
overscroll-behavior: none;
background-color: black;
}
.r-mfzc6t,
.r-1e6zz2d {
background-color: transparent !important;
color: transparent !important;
}
#input {
position: absolute;
z-index: 10;
}
#velocity-canvas {
max-height: 100%;
max-width: 100%;
}
</style>
</head>
<body onload="onLoad();">
<div id=input>
<input type="file" onchange="onSelectFile(this);"><br>
<button onclick="toggleCanvas()">Disable Anime4K</button>
</div>
<div id="vilos"></div>
<script type="text/javascript" src="https://static.crunchyroll.com/vilos-v2/web/vilos/js/bundle.js"
charset="utf-8"></script>
<script>
toggleCanvas();
function toggleCanvas() {
const canvas = document.querySelector('canvas');
canvas.style.display = canvas.style.display === 'none' ? '' : 'none';
const button = document.querySelector('button');
button.textContent = canvas.style.display === 'none' ? 'Enable Anime4K' : 'Disable Anime4K';
}
</script>
</body>
</html>