πGetting started
The initial configuration to make use of the Survey Library
// Insert the Library URLs enclosed by quotes and separated by commas
let scripts = [
"Paste a single Library URL here"
];
let promises = scripts.map((script) => {
return new Promise((resolve, reject) => {
document.querySelector("body").style.opacity = "0";
let s = document.createElement("script");
s.src = script;
s.onload = resolve;
s.onerror = reject;
document.head.appendChild(s);
});
});
Promise.all(promises)
.then(() => {
/* All scripts are loaded, you can execute your functions here */
/* All script ends here */
document.querySelector("body").style.opacity = "1";
})
/* If a library could not be imported throw an error */
.catch((error) => {
console.error(`Failed to load script: ${error}`);
});Question type
Library URL
Last updated