<commit_before>// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
//
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// compiled file.
//
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
// about supported directives.
//
//= require jquery
//= require jquery_ujs
//= require turbolinks
//= require_tree .

$( document ).ready(function() {
    console.log( "ready!" );
    $('#geolocate').on('click', function(){
      $('#welcome-title').remove();
      $('#map').css("visibility", "visible");
    })

    var modal = document.getElementById('myModal');

    // Get the button that opens the modal
    var btn = document.getElementById("myBtn");

    // Get the <span> element that closes the modal
    var span = document.getElementsByClassName("close")[0];

    // When the user clicks on the button, open the modal
    btn.onclick = function() {
        modal.style.display = "block";
    }

    // When the user clicks on <span> (x), close the modal
    span.onclick = function() {
        modal.style.display = "none";
    }
    window.onclick = function(event) {
        if (event.target == modal) {
            modal.style.display = "none";
        }
}

$("#welcome-back").on("swipeleft",function(){
    $(this).hide();
});<commit_msg>finsihed<commit_after>// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
//
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// compiled file.
//
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
// about supported directives.
//
//= require jquery
//= require jquery_ujs
//= require turbolinks
//= require_tree .

$( document ).ready(function() {
    console.log( "ready!" );
    $('#geolocate').on('click', function(){
      $('#welcome-title').remove();
      $('#map').css("visibility", "visible");
    })
    $(".0").on('click', function(){$('.0').hide();})
    $(".1").on('click', function(){$('.1').hide();})
    $(".2").on('click', function(){$('.2').hide();})
    $(".3").on('click', function(){$('.3').hide();})
    $(".4").on('click', function(){$('.4').hide();})
    $(".5").on('click', function(){$('.5').hide();})
    $(".6").on('click', function(){$('.6').hide();})
    $(".7").on('click', function(){$('.7').hide();})
    $(".8").on('click', function(){$('.8').hide();})
    $(".9").on('click', function(){$('.9').hide();})

})
{'fraction_non_alphanumeric': 0.20727272727272728, 'fraction_numerical': 0.006942148760330578, 'mean_word_length': 3.4046579330422126, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, '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': '2255064', 'n_tokens_mistral': 923, 'n_tokens_neox': 899, 'n_words': 253}