pflaenz.li-Symfony/assets/app.js

28 lines
915 B
JavaScript
Raw Normal View History

2021-04-24 16:59:51 +02:00
/*
* Welcome to your app's main JavaScript file!
*
* We recommend including the built version of this JavaScript file
* (and its CSS file) in your base layout (base.html.twig).
*/
// any CSS you import will output into a single css file (app.css in this case)
import './styles/app.scss';
// start the Stimulus application
import './bootstrap';
2021-04-27 23:22:12 +02:00
// Fontawesome
import '@fortawesome/fontawesome-free/js/fontawesome'
import '@fortawesome/fontawesome-free/js/solid'
import '@fortawesome/fontawesome-free/js/regular'
import '@fortawesome/fontawesome-free/js/brands'
2021-05-04 11:59:08 +02:00
// Friendly captcha
2021-05-04 14:28:06 +02:00
import "friendly-challenge/widget";
// Dsiplay Filename when uploading
document.querySelector('.custom-file-input').addEventListener('change',function(e){
var fileName = document.getElementById("offering_form_photo").files[0].name;
var nextSibling = e.target.nextElementSibling
nextSibling.innerText = fileName
})