Skip to content
This repository has been archived by the owner on Nov 12, 2019. It is now read-only.

Commit

Permalink
un-break scrollspy on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
Cathy Deng authored and Cathy Deng committed Jul 19, 2015
1 parent 2b9f15a commit 1f85640
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions _layouts/default.html
Expand Up @@ -159,21 +159,10 @@
$(document).ready( function() {
/* Check width on page load*/
if ( $(window).width() < 768) {
$('#content').removeClass('scroll');
$( "#scroll-arrow" ).remove();
}
});

$(window).resize(function() {
/*If browser resized, check width again */
if ($(window).width() < 768) {
$('#content').removeClass('scroll');
$( "#scroll-arrow" ).remove();
}
else {
$('#content').addClass('scroll');
}
});
</script>
</body>
</html>

0 comments on commit 1f85640

Please sign in to comment.