-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlib.js
More file actions
38 lines (34 loc) · 1.04 KB
/
lib.js
File metadata and controls
38 lines (34 loc) · 1.04 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
function showUser(str) {
document.getElementById("recordButton").click();
if (str == "") {
document.getElementById("res").innerHTML = "";
return;
} else {
var xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
document.getElementById("res").innerHTML = this.responseText;
}
};
xmlhttp.open("GET","getsongs.php?q="+str,true);
xmlhttp.send();
}
}
function addEffect(str){
// document.getElementById("recordButton").click();
if (str == "") {
document.getElementById("res").innerHTML += "";
return;
} else {
var xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
document.getElementById("res").innerHTML += this.responseText;
license = str + "-license.txt";
console.log(license);
}
};
xmlhttp.open("GET","getclips.php?q="+str,true);
xmlhttp.send();
}
}