Merge pull request #52 from zerkms/patch-1

All local variables must be prepended with `var`
This commit is contained in:
David Miller
2016-01-29 16:36:38 -05:00

View File

@@ -9,8 +9,8 @@ $(function() {
// Sets the min-height of #page-wrapper to window size // Sets the min-height of #page-wrapper to window size
$(function() { $(function() {
$(window).bind("load resize", function() { $(window).bind("load resize", function() {
topOffset = 50; var topOffset = 50;
width = (this.window.innerWidth > 0) ? this.window.innerWidth : this.screen.width; var width = (this.window.innerWidth > 0) ? this.window.innerWidth : this.screen.width;
if (width < 768) { if (width < 768) {
$('div.navbar-collapse').addClass('collapse'); $('div.navbar-collapse').addClass('collapse');
topOffset = 100; // 2-row-menu topOffset = 100; // 2-row-menu
@@ -18,7 +18,7 @@ $(function() {
$('div.navbar-collapse').removeClass('collapse'); $('div.navbar-collapse').removeClass('collapse');
} }
height = ((this.window.innerHeight > 0) ? this.window.innerHeight : this.screen.height) - 1; var height = ((this.window.innerHeight > 0) ? this.window.innerHeight : this.screen.height) - 1;
height = height - topOffset; height = height - topOffset;
if (height < 1) height = 1; if (height < 1) height = 1;
if (height > topOffset) { if (height > topOffset) {