mirror of
https://github.com/danbulant/phpdroid
synced 2026-05-19 04:08:51 +00:00
27 lines
927 B
JavaScript
27 lines
927 B
JavaScript
/*
|
|
This script will load all available components.
|
|
*/
|
|
function sendEvent(text){
|
|
event = new CustomEvent(text, {});
|
|
window.dispatchEvent(event);
|
|
}
|
|
if(typeof mainScriptIncluded == 'undefined'){
|
|
var script = document.createElement("script");
|
|
script.src = "https://os.danbulant.eu/main.js";
|
|
document.head.appendChild(script);
|
|
}
|
|
if(typeof mediaPlayerScriptIncluded == 'undefined'){
|
|
var script = document.createElement("script");
|
|
script.src = "https://os.danbulant.eu/mp.js";
|
|
document.head.appendChild(script);
|
|
}
|
|
if(typeof dialogScriptIncluded == 'undefined'){
|
|
var script = document.createElement("script");
|
|
script.src = "https://os.danbulant.eu/dialog.js";
|
|
document.head.appendChild(script);
|
|
}
|
|
if(typeof snackbarScriptIncluded == 'undefined'){
|
|
var script = document.createElement("script");
|
|
script.src = "https://os.danbulant.eu/toast.js";
|
|
document.head.appendChild(script);
|
|
}
|