Skip to content
Snippets Groups Projects
Select Git revision
  • ceda32be23c17c9bc526456fe6ae10ecfc6c867a
  • main default
  • 35-cgu
  • 34-peertube-support
  • 27-add-autoplay-to-iframe
  • 33-bug-on-youtube-embed-urls
  • RC-Rekall-v1.1-fix_lpo
  • tuleap-140-go-back-to-my-capsules-page-when-i-m-on-capsule-preview-page
  • RC-Rekall-v1.2-fix10
  • RC-Rekall-v1.2-fix9
  • RC-Rekall-v1.2-fix8
  • RC-Rekall-v1.2-fix7
  • RC-Rekall-v1.2-fix6
  • RC-Rekall-v1.2-fix5
  • RC-Rekall-v1.2-fix4
  • RC-Rekall-v1.2-fix3
  • RC-Rekall-v1.2-fix2
  • RC-Rekall-v1.2-fix1
  • RC-Rekall-v1.1-fix-3
  • RC-Rekall-v1.1-fix-2
  • RC-Rekall-v1.1-fix-1
  • RC-Rekall-v1.1-delivered
  • preprod20220209-1535
23 results

app.js

Blame
  • app.js 838 B
    /*
     * 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).
     */
    
    const $ = require('jquery');
    // this "modifies" the jquery module: adding behavior to it
    // the bootstrap module doesn't export/return anything
    require('bootstrap');
    
    import PubSub from 'pubsub-js'
    
    // any CSS you import will output into a single css file (app.css in this case)
    // import './styles/app.css';
    import './styles/app.scss';
    
    
    // start the Stimulus application
    import './bootstrap';
    
    $(function() {
        $('select.choice-auto-submit').on('change', function () {
            $(this).parents('form').submit();
        });
    })
    
    $("document").ready(function(){
        setTimeout(function(){
            $(".flash-message").remove();
        }, 5000 ); // 5 secs
    });