saufen/assets/app.js
lubiana 7897621621
All checks were successful
/ ls (pull_request) Successful in 1m27s
/ ls (push) Successful in 1m24s
/ ls (release) Successful in 54s
jipie
2025-06-28 22:23:35 +02:00

28 lines
876 B
JavaScript

/*
* Welcome to your app's main JavaScript file!
*
* This file will be included onto the page via the importmap() Twig function,
* which should already be in your base.html.twig.
*/
import 'bootstrap/dist/css/bootstrap.min.css';
import './styles/app.css';
import './styles/modes.css';
import './styles/emoji-footprint.css';
// Import modules
import './javascript/theme.js';
import './javascript/emoji-footprint.js';
import './javascript/modes.js';
import htmx from 'htmx.org';
import { initNumberInputs } from './javascript/numberInputs.js';
import { initRadioState } from './javascript/radioState.js';
window.htmx = htmx;
// Initialize everything when DOM is ready
document.addEventListener('DOMContentLoaded', function() {
// Initialize radio button state management
initRadioState();
// Initialize number inputs on page load
initNumberInputs();
});