<commit_before>// Some Custom JS for the site

$(window).load(function() {
  // declaring various variables
  var wh = $(window).height();
  var ww = $(window).width();
  var th = $('.teaser').height();
  var lh = $('.layer').height();

  //using the variables to initially position things
  $('html,body,.layers').height(wh*2);
  $('#main,#secondary').height(wh);
  $('.layers .layer').height(wh/3);
  $('.layers .layer').width(ww/4);
  $('#secondary .teaser').css('margin-top',(wh/2)-(th/2));
});

// try to keep things correct even if there is a resizing...
$(window).resize(function() {
  // declaring various variables
  var wh = $(window).height();
  var ww = $(window).width();
  var th = $('.teaser').height();

  //using the variables to initially position things
  $('html,body').height(wh*2);
  $('#main,#secondary,.layers').height(wh);
  $('.layers .layer').height(wh/3);
  $('.layers .layer').width(ww/4);
  $('#secondary .teaser').css('margin-top',(wh/2)-(th/2));
});

// Scrolling grid magic
$(window).scroll(function(){
  // declaring various variables
  var s  = $(window).scrollTop();
  var wh = $(window).height();
  var ww = $(window).width();
  var dh = $(document).height();
  
  //changing heights and positions on scrolling
  $('footer').height(s);
  
  //reposition Cs on scrolling so that they end up centered
  //correctly position based on heights
  $('.layer').css('top',s);<commit_msg>Added javascript to vertically center "c" images under 767px body width<commit_after>// Some Custom JS for the site

$(window).load(function() {
  // declaring various variables
  var wh = $(window).height();
  var ww = $(window).width();
  var th = $('.teaser').height();
  var lh = $('.layer').height();

  //using the variables to initially position things
  $('html,body,.layers').height(wh*2);
  $('#main,#secondary').height(wh);
  $('.layers .layer').height(wh/3);
  $('.layers .layer').width(ww/4);
  $('#secondary .teaser').css('margin-top',(wh/2)-(th/2));
});
//vertically center images in their section
$(window).load(function(){
	//declaring variables
	var lh = $('.layer').height();
	var ih = $('.layer img').height();
	var ww = $(window).width();
	//only applying script under 767px body width
	if (ww <= 767){
	//using the variables to position images in their section
		if (lh>ih){
			$('.layer img').css('margin-top', (lh/2)-(ih/2));
		}
	}
});
// try to keep things correct even if there is a resizing...
$(window).resize(function() {
  // declaring various variables
  var wh = $(window).height();
  var ww = $(window).width();
  var th = $('.teaser').height();

  //using the variables to initially position things
  $('html,body').height(wh*2);
  $('#main,#secondary,.layers').height(wh);
  $('.layers .layer').height(wh/3);
  $('.layers .layer').width(ww/4);
  $('#secondary .teaser').css('margin-top',(wh/2)-(th/2));
});

// Scrolling grid magic
$(window).scroll(function(){
  // declaring various variables
  var s  = $(window).scrollTop();
  var wh = $(window).height();
  var ww = $(window).width();
  var dh = $(document).height();
  
  //changing heights and positions on scrolling
  $('footer').height(s);
  
  //reposition Cs on scrolling so that they end up centered
  //correctly position based on heights
  $('.layer').css('top',s);
{'fraction_non_alphanumeric': 0.2198841110094541, 'fraction_numerical': 0.009454101860323269, 'mean_word_length': 3.844903988183161, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, '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': '2305660', 'n_tokens_mistral': 1073, 'n_tokens_neox': 1028, 'n_words': 290}