programmeruser
@programmeruser
Posts made by programmeruser
-
RE: bootbox
Anyways, try looking for a js dialog library that doesn't have so many dependencies.
-
RE: bootbox
@topgamerpro16 what do you mean? Do you mean the person who asked about how to move the mouse?
-
RE: bootbox
@topgamerpro16 You'll have to install the library first before using it.
Put this into a JSFunction block:const libs = ['https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js', 'https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js', 'https://cdnjs.cloudflare.com/ajax/libs/bootbox.js/5.4.0/bootbox.min.js'];
let finished = false;
function loadCss() {
const link = document.createElement('link');
link.setAttribute('rel', 'stylesheet');
link.setAttribute('type','text/css');
link.href = 'https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css';
link.onload = () => (finished = true);
document.head.appendChild(link);
}
function loadLib(lib, last = false) {
const script = document.createElement('script);
script.src = lib;
script.onload = (function () {
if (last) {
return loadCss;
} else if (libs.indexOf(lib) === libs.length - 2) {
return () => loadLib(libs[libs.length - 1], true);
} else {
return () => loadLib(libs[libs.indexOf(lib) + 1]);
}
})();
document.head.appendChild(script);
}
loadLib(libs[0]);
return () => finished;then:
wait until [call [the JSFunction]]