{"size": 2719, "ext": "js", "max_stars_repo_path": "_src/assets/js/main.js", "max_stars_repo_name": "claramiralles/claramiralles.github.io", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "_src/assets/js/main.js", "max_issues_repo_name": "claramiralles/claramiralles.github.io", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "_src/assets/js/main.js", "max_forks_repo_name": "claramiralles/claramiralles.github.io", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 30.5505617978, "max_line_length": 93, "alphanum_fraction": 0.6233909526}
document.addEventListener('DOMContentLoaded', (event) => {


    const scroll = window.requestAnimationFrame ||
        function (callback) {
            window.setTimeout(callback, 1000 / 60)
        };

    const elementsToShow = document.querySelectorAll('.show-on-scroll');

    function loop() {
        elementsToShow.forEach(function (element) {
            if (isElementInViewport(element)) {
                element.classList.add('is-visible');
            } else {
                element.classList.remove('is-visible');
            }
        });
        scroll(loop);
    }

    loop();

    function isElementInViewport(el) {
        // special bonus for those using jQuery
        if (typeof jQuery === "function" && el instanceof jQuery) {
            el = el[0];
        }
        var rect = el.getBoundingClientRect();
        return (
            (rect.top <= 0
                && rect.bottom >= 0)
            ||
            (rect.bottom >= (window.innerHeight || document.documentElement.clientHeight) &&
                rect.top <= (window.innerHeight || document.documentElement.clientHeight))
            ||
            (rect.top >= 0 &&
                rect.bottom <= (window.innerHeight || document.documentElement.clientHeight))
        );
    }


});

document.addEventListener('DOMContentLoaded', (event) => {
    

    const elementsMenuClose = document.getElementById('mobile-list')
    elementsMenuClose.style = 'display: none';

    const navLogoClose = document.getElementById('close-menu-icon')
    navLogoClose.style = 'display: none';
  

  
    // Function OPEN MENU
    
    function dropdownOpen () {
      const elementsMenuOpen = document.getElementById('mobile-list')
      elementsMenuOpen.style = 'display: block'
  
      const navLogoClose = document.getElementById('close-menu-icon')
      navLogoClose.style = 'display: block'
  
      const navLogoOpen = document.getElementById('open-menu-icon')
      navLogoOpen.style = 'display: none'
    }
  
    // Function CLOSE MENU
    function dropdownClose () {
      const dropdownElementOpen = document.getElementById('mobile-list')
      dropdownElementOpen.style = 'display: none'
  
      const dropdownCloseLogo = document.getElementById('close-menu-icon')
      dropdownCloseLogo.style = 'display: none'
  
      const dropdownOpen = document.getElementById('open-menu-icon')
      dropdownOpen.style = 'display: block'
    }
  
    
    const dropdownOpenClick = document.getElementById('open-menu-icon')
    dropdownOpenClick.addEventListener('click', dropdownOpen)
  
    const dropdownCloseClick = document.getElementById('close-menu-icon')
    dropdownCloseClick.addEventListener('click', dropdownClose)
    
  })
