-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathscriptLoader.js
More file actions
85 lines (85 loc) · 1.82 KB
/
Copy pathscriptLoader.js
File metadata and controls
85 lines (85 loc) · 1.82 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
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
function jsLoad(b,c){
function f(h,d){
d=d||function(){};
var a=document.createElement("script");
a.type="text/javascript";
if(a.readyState)
a.onreadystatechange=function(){
if(a.readyState==="loaded"||a.readyState==="complete"){
a.onreadystatechange=null;
d()
}
};
else
a.onload=function(){
d()
};
a.src=h;
document.getElementsByTagName("head")[0].appendChild(a)
}
c=c||function(){};
if(typeof b==="string")
f(b,c);
else if(b instanceof Array){
var e=0,
i=b.length,
g=function(){
if(e>=i){
c();
return false
}
f(b[e],g);
e++
};
g()
}
};
function cssLoad(b,c){
function f(h,d){
d=d||function(){};
var a=document.createElement("link");
a.rel="stylesheet";
a.type="text/css";
if(a.readyState)
a.onreadystatechange=function(){
if(a.readyState==="loaded"||a.readyState==="complete"){
a.onreadystatechange=null;
d()
}
};
else
a.onload=function(){d()};
a.href=h;
document.getElementsByTagName("head")[0].appendChild(a)
}
c=c||function(){};
if(typeof b==="string")
f(b,c);
else if(b instanceof Array){
var e=0,
i=b.length,
g=function(){
if(e>=i){
c();
return false
}
f(b[e],g);
e++
};
g()
}
};
var JSfiles = [
["MIDI.Events.js"],
["fromcodepoint.js"],
["codepointat.js"],
["UTF-8.js"],
["MIDI.FileHeader.js"],
["MIDI.FileTrack.js"],
["MIDI.File.js"],
["MIDI.Player2.js"],
["MIDI.LyricsDisplayer.js"],
["MIDI.Application2.js"]
];
cssLoad("Style.css");
jsLoad(JSfiles);