ABC files:

`; var html02 = document.getElementById("source").value; // console.log(html02); var w = window.innerWidth; var h = window.innerHeight; var spez = "width=" + w + ",height="+ h + ",x=0,y=0"; var scale2widthWindow = window.open("","scale2width",spez); scale2widthWindow.document.write(html01); scale2widthWindow.document.getElementById("abcsource").innerHTML = "\n" + html02; setTimeout(function(){ var script1 = document.createElement('script'); script1.src = 'scale2width.js'; scale2widthWindow.document.body.appendChild(script1); },1000); setTimeout(function(){ var script2 = document.createElement('script'); script2.src = 'abc2svg-1.js'; scale2widthWindow.document.body.appendChild(script2); var script3 = document.createElement('script'); script3.src = 'abcweb-1.js'; scale2widthWindow.document.body.appendChild(script3); var script4 = document.createElement('script'); script4.src = 'snd-1.js'; scale2widthWindow.document.body.appendChild(script4); scale2widthWindow.document.close(); var neuesHTML = "\n\n" + scale2widthWindow.document.documentElement.innerHTML + "\n"; if (document.getElementById("scaleFitFileSave").checked==true){ downloadTextFile(neuesHTML,"scale2width.html"); } },2000); //]]> } function fit2screen(abccode){ if (document.getElementById("source").value==""){ alert("Kein ABC-Code vorhanden!"); return; } // `; var html01snd = ` `; var html01b = ` `; var w = window.screenWidth; var h = window.screenHeight; var spez = "width=" + w + ",height="+ h + ",x=0,y=0"; var fit2screenWindow = window.open("","fit2screen",spez); //mit Sound? if (document.getElementById("withSound").checked==true){ var html01 = html01a + html01snd + html01b + html01c; } else { var html01 = html01a + html01b + html01c; } fit2screenWindow.document.write(html01); var html02 = document.getElementById("source").value; setTimeout(function(){ fit2screenWindow.document.getElementById("abcsource").innerHTML = "\n" + html02 + "\n\n"; /* var script1 = document.createElement('script'); script1.src = 'fit2screen.js'; fit2screenWindow.document.body.appendChild(script1); */ fit2screenWindow.document.close(); if (document.getElementById("scaleFitFileSave").checked==true){ if (document.getElementById("withSound").checked==true){ var neuesHTML = html01a + "\n" + html01snd + html01b + html02 + "\n\n" + html01c; } else { var neuesHTML = html01a + "\n" + html01b + html02 + "\n\n" + html01c; } console.log(neuesHTML); downloadTextFile(neuesHTML,"fit2screen.html"); } },1000); //]]> } function downloadTextFile(text,filename) { var blob = new Blob([text], { type: 'text/plain' }); var link = document.createElement('a'); link.href = URL.createObjectURL(blob); link.download = filename; link.click(); }
abc2svg  
(void)