|
@@ -18,10 +18,14 @@ function get_script() {
|
|
|
console.log(xhr.status);
|
|
|
console.log(xhr.responseText);
|
|
|
dataArr = xhr.responseText.split(',');
|
|
|
+ putscript();
|
|
|
}};
|
|
|
var data = `{"name_hash": `+name_hash+`}`;
|
|
|
xhr.send(data);
|
|
|
+}
|
|
|
+get_script();
|
|
|
|
|
|
+function putscript(){
|
|
|
var srcInput = document.querySelector(".msrcParent");
|
|
|
for (step = 0; step < dataArr.length; step++) {
|
|
|
console.log(dataArr[step])
|
|
@@ -38,17 +42,12 @@ function get_script() {
|
|
|
mSrc.setAttribute('type', 'text');
|
|
|
mSrc.setAttribute('id', `s${step }`);
|
|
|
mSrc.style.width = "47%";
|
|
|
- pdiv.appendChild(rawSrc)
|
|
|
- pdiv.appendChild(mSrc)
|
|
|
+ pdiv.appendChild(rawSrc);
|
|
|
+ pdiv.appendChild(mSrc);
|
|
|
|
|
|
- srcInput.appendChild(pdiv)
|
|
|
-
|
|
|
+ srcInput.appendChild(pdiv);
|
|
|
}
|
|
|
}
|
|
|
-get_script();
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
|
|
|
$(".confirmbtn" ).click(function() {
|
|
|
for (i = 0; i < dataArr.length; i++) {
|