<commit_before>
$(document).ready(function () {
   $('#fullpage').fullpage({
    paddingTop: '0px',
    anchors:['home', 'about', 'skills','projects', 'contact'],
    scrollOverflow:true,
    scrollBar: false,
    menu: '#myMenu',
    navigation: true,
    slidesNavigation: true,
    navigationPosition: 'right',
    navigationTooltips: ['Home', 'About', 'Skills', 'Work', 'Contact'],
    afterLoad: function(anchorLink, index){
      var loadedSection = $(this);
      if(anchorLink === 'skills'){
        $("#homeNav").hide();
        skillsContent();
      } else if (anchorLink === 'about') {
        $("#homeNav").hide();
        $("#aboutDisplay").fadeIn("slow");
      } else if (anchorLink === 'home') {
        $("#aboutNav").show();
        $("#homeNav").hide();
      } else if (anchorLink === 'contact') {
        $("#homeNav").show();
        $("#contactDisplay").fadeIn("slow");        
      } else if (anchorLink === 'projects') {
        $("#homeNav").hide();
        $("#projectsDisplay").fadeIn("slow");
      }
    } 
  });
  
  $(".section").one('webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend',function(e) {});
  $("#frontend").hide();
  $("#backend").hide();
  $("#cloud").hide();
  $("#other").hide();
  $("#homeNav").hide();
  $("#aboutDisplay").hide();
  $("#contactDisplay").hide();
  $("#projectsDisplay").hide("slow");
  var typed = new Typed('#speciality', {
    strings: ["I'm a Front-End Developer ^1000", "I'm a Back-End Developer ^1000", "I'm a Full-Stack Developer ^1000"],
    smartBackspace: true, 
    typeSpeed: 30,
    backSpeed: 50,
    cursorChar: '|',
    loop: true, 
    loopCount: Infinity,
    startDelay: 500
  });
  $(".typed-cursor").css("font-size","xx-large");
});


function skillsContent() {
  $("#frontend").fadeIn("slow");
  $("#backend").fadeIn("slow");
  $("#cloud").fadeIn("slow");
  $("#other").fadeIn("slow");
}


<commit_msg>added events for responsive navbar<commit_after>
$(document).ready(function () {
  $('#fullpage').fullpage({
    paddingTop: '0px',
    anchors: ['home', 'about', 'skills', 'projects', 'contact'],
    scrollOverflow: true,
    scrollBar: false,
    menu: '#myMenu',
    navigation: true,
    slidesNavigation: true,
    navigationPosition: 'right',
    navigationTooltips: ['Home', 'About', 'Skills', 'Work', 'Contact'],
    afterLoad: function (anchorLink, index) {
      var loadedSection = $(this);
      if (anchorLink === 'skills') {
        $("#homeNav").hide();
        skillsContent();
      } else if (anchorLink === 'about') {
        $("#homeNav").hide();
        $("#aboutDisplay").fadeIn("slow");
      } else if (anchorLink === 'home') {
        $("#aboutNav").show();
        $("#homeNav").hide();
      } else if (anchorLink === 'contact') {
        $("#homeNav").show();
        $("#contactDisplay").fadeIn("slow");
      } else if (anchorLink === 'projects') {
        $("#homeNav").hide();
        $("#projectsDisplay").fadeIn("slow");
      }
    }
  });

  $(".section").one('webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend', function (e) { });
  $("#frontend").hide();
  $("#backend").hide();
  $("#cloud").hide();
  $("#other").hide();
  $("#homeNav").hide();
  $("#aboutDisplay").hide();
  $("#contactDisplay").hide();
  $("#projectsDisplay").hide("slow");
  var typed = new Typed('#speciality', {
    strings: ["I'm a Front-End Developer", "I'm a Back-End Developer", "I'm a Full-Stack Developer"],
    smartBackspace: true,
    typeSpeed: 30,
    backSpeed: 50,
    cursorChar: '|',
    loop: true,
    loopCount: Infinity,
    startDelay: 500
  });
  $(".typed-cursor").css("font-size", "xx-large");
  $(window).on('resize', resizeFunction)
  checkCurrentWindow();
});

function checkCurrentWindow() {
  if($(window).width() <= 375) {
    $("#navbar").hide()
  } 
}

function resizeFunction() {
  var eventFired = 0;
  if (!eventFired) {
    if ($(window).width() <= 375) {
    $("#navbar").hide()
    } else {
      $("#navbar").show()
    }
  }
}


function skillsContent() {
  $("#frontend").fadeIn("slow");
  $("#backend").fadeIn("slow");
  $("#cloud").fadeIn("slow");
  $("#other").fadeIn("slow");
}



{'fraction_non_alphanumeric': 0.23525197038452353, 'fraction_numerical': 0.008359207069500836, 'mean_word_length': 3.4743589743589745, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '558569', 'n_tokens_mistral': 1349, 'n_tokens_neox': 1309, 'n_words': 256}