INNER CODE UNIT · JavaScript
doSomeMagic
mikepenz/AboutLibraries · DEV/definition-file-builder/js/custom.js:11
function doSomeMagic() {
var xmlFile = generateXmlFile();
if(xmlFile != "") {
document.getElementById("output").innerHTML = xmlFile;
Prism.highlightAll();
document.getElementById("output_container").removeAttribute("style");
}
}
function generateXmlFile() {
var libraryId = fixString(document.getElementsByName("libraryId")[0].value).toLowerCase().replace(/ /g, '').replace(/-/g, '_');
var e = document.getElementsByName("isInternal")[0];
var isInternal = e.options[e.selectedIndex].value;
var author = fixString(document.getElementsByName("authorName")[0].value);
var authorWebsite = fixString(document.getElementsByName("authorWebsite")[0].value);