Hash :
b11014f0
Author :
Thomas de Grivel
Date :
2024-09-06T14:30:50
import $ from "jquery";
window.$ = $;
window.jQuery = $;
import "bootstrap";
import "./kmx_anim";
import "./pixel";
import "phoenix_html";
import { Socket } from "phoenix";
import { LiveSocket } from "phoenix_live_view";
import topbar from "../vendor/topbar";
let csrfToken = document.querySelector("meta[name='csrf-token']").getAttribute("content");
let liveSocket = new LiveSocket("/live", Socket, { params: { _csrf_token: csrfToken } });
topbar.config({ barColors: { 0: "#29d" }, shadowColor: "rgba(0, 0, 0, .3)" });
window.addEventListener("phx:page-loading-start", (info) => topbar.show());
window.addEventListener("phx:page-loading-stop", (info) => topbar.hide());
liveSocket.connect();
window.liveSocket = liveSocket;