-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtools.html
120 lines (112 loc) · 3.06 KB
/
tools.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Tools</title>
</head>
<body>
<h1>Cyan's tools</h1>
<main>
<fieldset>
<b>Eval</b>
<textarea name="eval" id="evalText"></textarea>
<div>
<button onclick="evalFunc()">Eval!!!</button>
<button onclick="evalFunc(true)">Eval & Copy</button>
<button onclick="evalFunc(false, true)">Show Result</button>
</div>
</fieldset>
<fieldset>
<b>Local Video Player</b>
<video id="videoPlayer" controls>WTF upgrade your browser bruh</video>
<div>
<input onchange="playVideo(this.files)" type="file" accept="video/mp4,video/x-m4v,video/*" id="videoInput" />
</div>
</fieldset>
<fieldset>
<b>JSON.stringify</b>
<textarea id="jsonText"></textarea>
<div>
<input style="height: 5vmin; width: 40px" value="0" type="text" />
<button onclick="jsonStringify(this.previousElementSibling.value)">Submit</button>
<button onclick="copyValue('jsonText')">Copy Text</button>
</div>
</fieldset>
<fieldset>
<b>DataURI</b>
<textarea id="dataURLText"></textarea>
<div>
<input onchange="dataURLFunc(this.files[0])" type="file" id="dataUrlInput" />
<button onclick="copyValue('dataURLText')">Copy Text</button>
</div>
</fieldset>
<fieldset>
<b>Settings</b>
<div>
<button onclick="copy(JSON.stringify(sponsorBlockVanced))">SponsorBlock Vanced</button>
<button onclick="copy(sponsorBlockDesktop)">SponsorBlock Desktop</button>
</div>
</fieldset>
</main>
</body>
<script src="./js/tools.js" defer></script>
<style>
main {
width: 100%;
display: grid;
grid-row-gap: 0.5em;
grid-column-gap: 1em;
justify-content: center;
color: var(--secondary-color);
}
@media screen and (min-width: 720px) {
main {
grid-template-columns: repeat(auto-fill, 60vmin);
}
}
fieldset {
margin: 2px;
}
fieldset textarea {
width: 100%;
height: 20vmin;
background-color: inherit;
color: var(--secondary-color);
}
button {
height: 6vmin;
}
textarea:focus {
outline: none;
}
#videoPlayer {
width: 100%;
height: 20vmin;
border: 2px solid grey;
}
@font-face {
font-family: "milan";
src: url(/css/milan.ttf) format("truetype");
}
@font-face {
font-family: "milanbold";
src: url(/css/milanbold.ttf) format("truetype");
}
body {
background-color: var(--primary-color);
transition: all 0.4s ease-in-out;
user-select: none;
}
h1 {
color: var(--secondary-color);
font-family: "milan";
text-align: center;
}
html,
body {
height: 100%;
}
</style>
</html>