---
layout: null
---
$(document).ready(function () {
  $('a.blog-button').click(function (e) {
    if ($('.panel-cover').hasClass('panel-cover--collapsed')) return
    currentWidth = $('.panel-cover').width()
    if (currentWidth < 960) {
      $('.panel-cover').addClass('panel-cover--collapsed')
      $('.content-wrapper').addClass('animated slideInRight')
    } else {
      $('.panel-cover').css('max-width', currentWidth)
      $('.panel-cover').animate({'max-width': '530px', 'width': '40%'}, 400, swing = 'swing', function () {})
    }
  })

  if (window.location.hash && window.location.hash == '#blog') {
    $('.panel-cover').addClass('panel-cover--collapsed')
  }

  if (window.location.pathname !== '{{ site.baseurl }}' && window.location.pathname !== '{{ site.baseurl }}index.html') {
    $('.panel-cover').addClass('panel-cover--collapsed')
  }

  $('.btn-mobile-menu').click(function () {
    $('.navigation-wrapper').toggleClass('visible animated bounceInDown')
    $('.btn-mobile-menu__icon').toggleClass('icon-list icon-x-circle animated fadeIn')
  })

  $('.navigation-wrapper .blog-button').click(function () {
    $('.navigation-wrapper').toggleClass('visible')
    $('.btn-mobile-menu__icon').toggleClass('icon-list icon-x-circle animated fadeIn')
  })

})

@@ -156,16 +156,17 @@
 ) return
+;
 %0A    cur
@@ -202,16 +202,17 @@
 .width()
+;
 %0A    if 
@@ -292,16 +292,17 @@
 lapsed')
+;
 %0A      $
@@ -355,16 +355,17 @@
 nRight')
+;
 %0A    %7D e
@@ -424,16 +424,17 @@
 ntWidth)
+;
 %0A      $
@@ -539,19 +539,15 @@
  %7B%7D)
+;
 %0A    %7D
-%0A  %7D)
 %0A%0A  
@@ -849,24 +849,30 @@
 lapsed')%0A  %7D
+%0A  %7D);
 %0A%0A  $('.btn-
@@ -978,16 +978,17 @@
 InDown')
+;
 %0A    $('
@@ -1066,21 +1066,23 @@
 fadeIn')
+;
 %0A  %7D)
+;
 %0A%0A  $('.
@@ -1186,16 +1186,17 @@
 isible')
+;
 %0A    $('
@@ -1274,18 +1274,20 @@
 fadeIn')
+;
 %0A  %7D)
+;
 %0A%0A%7D)%0A

Clean js