Bladeren bron

update script.js - Added a missing line

The function wouldn't work without this.

One more thing I think that should be mentioned, is that the ``$(window).resize(function () {`` should be inside the ``jQuery(document).ready(function($) {``. Otherwise it wont work. (I didn't edit it though)
elron 11 jaren geleden
bovenliggende
commit
576dc61b55
1 gewijzigde bestanden met toevoegingen van 3 en 0 verwijderingen
  1. 3 0
      library/js/scripts.js

+ 3 - 0
library/js/scripts.js

@@ -66,6 +66,9 @@ var timeToWaitForLast = 100;
  *    // if we're on the home page, we wait the set amount (in function above) then fire the function
  *    if( is_home ) { waitForFinalEvent( function() {
  *
+ *	// update the viewport, in case the window size has changed
+ *	viewport = updateViewportDimensions();
+ *
  *      // if we're above or equal to 768 fire this off
  *      if( viewport.width >= 768 ) {
  *        console.log('On home page and window sized to 768 width or more.');