22 lines
626 B
JavaScript
22 lines
626 B
JavaScript
import { loadEvents } from '/js/events.js'
|
|
import { loadStatus } from '/js/status.js'
|
|
import { initCuteTexture } from '/js/cuteTexture.js'
|
|
import { makeItFloat } from '/js/floating.js';
|
|
|
|
// ======================================== events & statut d'ouverture
|
|
loadEvents();
|
|
loadStatus()
|
|
.then((status) => {
|
|
console.log("Status actuel du LOL", status);
|
|
|
|
let cuteTexture = initCuteTexture({
|
|
shaderSource: status.shaderSource
|
|
});
|
|
|
|
cuteTexture.target.style.visibility = "visible"
|
|
});
|
|
|
|
// ======================================== floating message window
|
|
|
|
makeItFloat(document.querySelector('#msgWindow'));
|