-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathindex.html
More file actions
53 lines (52 loc) · 1.21 KB
/
Copy pathindex.html
File metadata and controls
53 lines (52 loc) · 1.21 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
<!DOCTYPE html>
<html>
<head>
<meta charset="ASCII">
</head>
<body>
<script>
var module = {}
module.__exports = {}
module.export = function(name, obj) {
if (module.__exports[name] != null) {
throw "export already exists::"+name
}
module.__exports[name] = obj
}
module.require = function(name) {
if (module.__exports[name] == null) {
throw "require cannot find::"+name
}
return module.__exports[name]
}
</script>
<script src="curves.js"></script>
<script src="slidercalc.js"></script>
<script src="osuparser.js"></script>
<script src="format.js"></script>
<script src="osu_to_lua.js"></script>
<script src="jquery.js"></script>
<script>
$(function(){
$("#submit").click(function(){
$("#out").val("converting...")
var osu_file_str = $("#in").val()
$("#out").val(module.require("osu_to_lua")(osu_file_str))
})
})
</script>
<a href="https://github.com/spotco/RobeatsWebConvert2">Source</a><br/>
<textarea id="in" style="width:1000px;height:200px">
paste contents of osu file here
</textarea>
<br/>
<button id="submit">CONVERT</button>
<br/>
<br/>
<br/>
<br/>
<textarea id="out" style="width:1000px;height:200px" readonly>
output (paste this into the "SongMap" script in the workspace)
</textarea>
</body>
</html>