app.js 1.19 KB
Newer Older
Julien Jorry committed
1 2 3 4 5 6 7 8 9
/*
 * 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 require will output into a single css file (app.css in this case)
require('../css/app.css');
10
require('../css/global.scss');
Julien Jorry committed
11 12

// Need jQuery? Install it with "yarn add jquery", then uncomment to require it.
13 14 15 16 17 18 19 20 21 22
// require jQuery normally
const $ = require('jquery');

// create global $ and jQuery variables
global.$ = global.jQuery = $;

// JS is equivalent to  the normal "bootstrap" package
// no need to set this to a variable, just require it
// require('popper.js/dist/popper.js');
require('bootstrap');
23 24 25
// require('../css/lumen/_variables.scss');
// require('../css/lumen/_bootswatch.scss');
require('../css/lumen/bootstrap.min.css');
26

27 28 29

// require('../leaflet/leaflet.css');
require('../leaflet/leaflet.js');
30 31 32 33 34 35
require('../js/flash-messages.js');
const mlc = require('../js/mlc.js');

// can be use to sort with drag'n drop in sonata admin
// require('../../public/bundles/pixsortablebehavior/js/init.js');

36 37 38
$('#flash-messages').flashNotification('init');
$(function () {
  $('[data-toggle="tooltip"]').tooltip()
39
})