Skip to content
Snippets Groups Projects
Select Git revision
  • 264d71218bd7a404333b89b91f1803c9e584287d
  • main default protected
  • 42-mementos-non-pris-en-compte-dans-commentaires-survey
  • add-tat-sample
  • 15-choses-a-faire-css
  • macao3-export
  • gitlab-ci-debug
  • 2-gitlab-deploy
  • 3-qcu-features
  • 1-navigation
  • test
11 results

custom.js

Blame
  • Anthony Geourjon's avatar
    Anthony authored
    264d7121
    History
    custom.js 652 B
    console.log('Custom JS loaded');
    $(document).ready(function() {
        console.log('Custom JS executed');
        // Add specific classes to play buttons
        $('button:contains("Play")').html('<i class="fa-solid fa-play"></i> Écouter').addClass('btn-play').prop('title','Écouter');
    
        // Add Title on top of the page
        $('.book-header').show();
    
        $('.commentaireInfo').hide();
        $('.commentaireInfo').prop('popover', 'true');
        $('.commentaireInfoGroup').show();
    
        $('[spanid]').addClass('comment-trigger').on('click', function() {
            let spanid = $(this).attr('spanid');
            $("[commentaireid=" + spanid + "]").toggle();
        });
    });