Skip to content

Commit

Permalink
fixing overflow issue
Browse files Browse the repository at this point in the history
Implementing the fix from @tayfuncetin, referenced here: joshgerdes#42 (comment)
  • Loading branch information
RMBLRX committed Jul 12, 2017
1 parent d1b9a46 commit b76b4e1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/main.js
Expand Up @@ -3,6 +3,7 @@ layout: null
---
$(document).ready(function () {
$('a.blog-button').click(function (e) {
$('.content-wrapper__inner').css('display', 'block')
if ($('.panel-cover').hasClass('panel-cover--collapsed')) return
currentWidth = $('.panel-cover').width()
if (currentWidth < 960) {
Expand All @@ -16,10 +17,12 @@ $(document).ready(function () {

if (window.location.hash && window.location.hash == '#blog') {
$('.panel-cover').addClass('panel-cover--collapsed')
$('.content-wrapper__inner').css('display', 'block')
}

if (window.location.pathname !== '{{ site.baseurl }}' && window.location.pathname !== '{{ site.baseurl }}index.html') {
$('.panel-cover').addClass('panel-cover--collapsed')
$('.content-wrapper__inner').css('display', 'block')
}

$('.btn-mobile-menu').click(function () {
Expand Down

0 comments on commit b76b4e1

Please sign in to comment.