Add bootstrap to the main application bundle
This commit is contained in:
parent
a2c3f52ab4
commit
cee76ddd53
2 changed files with 4 additions and 1 deletions
|
|
@ -92,7 +92,6 @@
|
|||
{{ template "content" . }}
|
||||
</div>
|
||||
<div id="flogo"></div>
|
||||
<script src="/static/vendor/bootstrap-5.3.8/bootstrap.bundle.min.js"></script>
|
||||
<script>
|
||||
document.getElementById("sidebarToggle").addEventListener("click", () => {
|
||||
const sidebar = document.getElementById("sidebar");
|
||||
|
|
|
|||
|
|
@ -1,8 +1,12 @@
|
|||
import Alpine from './vendor/alpinejs-3.15.8.js';
|
||||
import bootstrap from '../static/vendor/bootstrap-5.3.8/bootstrap.bundle.min.js'
|
||||
|
||||
// Make Alpine available on window for inline Alpine
|
||||
window.Alpine = Alpine;
|
||||
|
||||
// Make bootstrap available on window for various scripts
|
||||
window.bootstrap = bootstrap;
|
||||
|
||||
// Wait for DOM to be ready, then initialize Alpine
|
||||
document.addEventListener("DOMContentLoaded", () => {
|
||||
Alpine.start();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue