forked from ArcaeaMemory/ArcaeaModder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
modder.html
119 lines (106 loc) · 3.6 KB
/
modder.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
<!DOCTYPE html>
<html lang="zh-cmn-Hans">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, shrink-to-fit=no" />
<meta name="renderer" content="webkit" />
<meta name="force-rendering" content="webkit" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>Arcaea 3.5.3c Modder</title>
<!-- don't hate -->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
<link rel="stylesheet" href="./mdui/css/mdui.min.css" />
<style>
.dragover>* {
filter: blur(5px);
}
.dragover::before {
content: '';
display: block;
height: 100%;
position: absolute;
top: 0;
left: 0;
width: 100%;
text-align: center;
z-index: 10;
outline: dashed 10px;
}
.dragover::after {
content: "\e900";
font-family: 'file' !important;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
/* Better Font Rendering =========== */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
display: block;
height: auto;
position: absolute;
top: calc(50% - 3rem);
left: 0;
width: 100%;
text-align: center;
z-index: 11;
font-size: 8rem;
}
</style>
</head>
<body class="mdui-theme-primary-pink mdui-theme-accent-pink">
<script src="./mdui/js/mdui.min.js"></script>
<script type="text/javascript" src="./FileSaver.min.js"></script>
<script type="text/javascript" src="./dllpatcher.js"></script>
<script type="text/javascript">
// user function
function codeToArray(codeString) {
var code = codeString.replace(/\s\s+/g, ' ').trim().split(' ');
var result = [];
for(let n = 0; n < code.length; n++) {
const s = code[n];
var num = 0;
for(let i = 0; i < s.length; i++) {
var c = s.charCodeAt(s.length - i - 1);
if(48 <= c && c < 58) {
c -= 48;
} else {
c = (c & 0xdf) - 65 + 10;
}
num += c * (16 ** i)
}
result.push(num);
}
return result;
}
function asciiToArray(string) {
var result = [];
for (let i = 0; i < string.length; i++) {
result.push(string.charCodeAt(i));
}
result.push(0);
return result;
}
function nullList(size) {
var result = [];
for(var i = 0; i < size; i++) {
result.push(0);
}
return result;
}
function loadJS(url, callback) {
var script = document.createElement('script'),
fn = callback || function () { };
script.type = 'text/javascript';
script.onload = fn;
script.src = url;
document.getElementsByTagName('body')[0].appendChild(script);
}
const params = new URLSearchParams(window.location.search);
var platform = params.get('platform');
var version = params.get('version');
loadJS(`./${platform}/${version}.js`, mdui.mutation);
</script>
</body>
</html>