<commit_before>var home;

$(document).ready(function(){

    // Find root uri (useful if deployed in a subdirectory locally):
    home = $("meta[name=Identifier-URL]").attr("content");

    // Show on which page we are:
    $(".nav-menu li a").each(function() {
        if ( $(this).attr('href') == document.location.href ) {
            $(this).addClass("active");
        };
    }); 

    // Rename Language ISO CODE
    $("ul.qtrans_language_chooser .lang-fr a").text("FR");
    $("ul.qtrans_language_chooser .lang-nl a").text("NL");

    // removes black hover on images
    $("img").parent().css("background", "none"); 

    // Random position of background image
    top1 = Math.floor(Math.random() * 200);
    left1 = Math.floor(Math.random() * 600);
    $("img#texture").css({top: top1 + 'px' , left: left1 + 'px'});
    top2 = Math.floor(Math.random() * 100);
    left2 = Math.floor(Math.random() * 600);
    $("img#dessin").css({top: top2 + 'px' , left: left2 + 'px'});

    // Show/Hide sub-pages
    $("div.has-children h1").click(function(e){
        e.preventDefault();
        $(this).next().slideToggle('easeInOutQuint');
    });
    
    // Show/Hide Projects
    $("div#newsletter-bt span").click(function(e){
        e.preventDefault();
        $("form", $(this).parent()).slideToggle('easeInOutQuint');
    });<commit_msg>FIX: menus Actualités (home) et Galerie photo ne se mettent pas en jaune quand on est dans la rubrique<commit_after>var home;

$(document).ready(function(){

    // Find root uri (useful if deployed in a subdirectory locally):
    home = $("meta[name=Identifier-URL]").attr("content");

    // Show on which page we are:
    $(".nav-menu li a").each(function() {
        // link to '/', document.location is '/' => active
        if ($(this).attr('href') === '/') {
            if ( document.location.href === home + '/' ) {
                $(this).addClass("active");
            } 
        // link to 'http://www.acsr.be/a-propos/', document.location.href is 'http://www.acsr.be/a-propos/' => active
        // link to 'http://www.acsr.be/galerie/', document.location.href is 'http://www.acsr.be/galerie/los-santos-2/' => active
        } else if ( document.location.href.substring(home.length).indexOf( $(this).attr('href').substring(home.length)  ) !== -1 )  {
            $(this).addClass("active");
        }

    }); 

    // Rename Language ISO CODE
    $("ul.qtrans_language_chooser .lang-fr a").text("FR");
    $("ul.qtrans_language_chooser .lang-nl a").text("NL");

    // removes black hover on images
    $("img").parent().css("background", "none"); 

    // Random position of background image
    top1 = Math.floor(Math.random() * 200);
    left1 = Math.floor(Math.random() * 600);
    $("img#texture").css({top: top1 + 'px' , left: left1 + 'px'});
    top2 = Math.floor(Math.random() * 100);
    left2 = Math.floor(Math.random() * 600);
    $("img#dessin").css({top: top2 + 'px' , left: left2 + 'px'});

    // Show/Hide sub-pages
    $("div.has-children h1").click(function(e){
        e.preventDefault();
        $(this).next().slideToggle('easeInOutQuint');
    });
    
    // Show/Hide Projects
    $("div#newsletter-bt span").click(function(e){
        e.preventDefault();
        $("form", $(this).parent()).slideToggle('easeInOutQuint');
    });
{'fraction_non_alphanumeric': 0.20658411356085774, 'fraction_numerical': 0.013289036544850499, 'mean_word_length': 2.7722095671981775, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5056213', 'n_tokens_mistral': 1113, 'n_tokens_neox': 1065, 'n_words': 219}