$(document).ready(function() {
  $('a.menu').click(function() {
    $('.site-header nav').slideToggle(100);
    return false;
  });

  $(window).resize(function(){
    var w = $(window).width();
    var menu = $('.site-header nav');
    if(w > 680 && menu.is(':hidden')) {
      menu.removeAttr('style');
    }
  });


  $('article.post iframe').wrap('<div class="video-container" />');

});

$(document).ready(function() {
    var vpH = $(window).height();
    var vH = vpH - 350;
    $('.overlay').css("height", vH);
    $('.featured-image').css("height", vH);
});


$(function(){
  $('<img>').attr('src',function(){
      var imgUrl = $('div.featured-image').css('background-image');
      if (!imgUrl) {
        return;
      }
      imgUrl = imgUrl.substring(4, imgUrl.length-1);
      return imgUrl;
  }).load(function(){
    $('img.loading').fadeOut(500);
    $('div.overlay').fadeTo("slow", 0.6);
  });
});

$(function(){
    $('.post-list li').each(function(i){
        var t = $(this);
        setTimeout(function(){ t.addClass('slider'); }, (i+1) * 330);
    });
});

$(document).ready(function() {
  $('a.menu').click(function() {
    $('.site-header nav').slideToggle(100);
    return false;
  });

  $(window).resize(function() {
    var w = $(window).width();
    var menu = $('.site-header nav');
    if (w > 680 && menu.is(':hidden')) {
      menu.removeAttr('style');
    }
  });


  $('article.post iframe').wrap('<div class="video-container" />');

});

$(document).ready(function() {
  var vpH = $(window).height();
  var vH = vpH - 350;
  $('.overlay').css("height", vH);
  $('.featured-image').css("height", vH);
});


$(function() {
  $('<img>').attr('src', function() {
    var imgUrl = $('div.featured-image').css('background-image');
    if (!imgUrl) {
      return;
    }
    imgUrl = imgUrl.substring(4, imgUrl.length - 1).replace(/\"/g, '');
    return imgUrl;
  }).load(function() {
    $('img.loading').fadeOut(500);
    $('div.overlay').fadeTo("slow", 0.6);
  });
});

$(function() {
  $('.post-list li').each(function(i) {
    var t = $(this);
    setTimeout(function() { t.addClass('slider'); }, (i + 1) * 330);
  });
});

Fix this janky script and autoformat.
Fix this janky script and autoformat.
