Sfoglia il codice sorgente

Merge pull request #585 from joseluis/patch-1

Update scripts.js
Eddie Machado 12 anni fa
parent
commit
abbb367c99
1 ha cambiato i file con 5 aggiunte e 5 eliminazioni
  1. 5 5
      library/js/scripts.js

+ 5 - 5
library/js/scripts.js

@@ -111,12 +111,12 @@ var timeToWaitForLast = 100;
 */
 function loadGravatars() {
   // set the viewport using the function above
-	viewport = updateViewportDimensions();
+  viewport = updateViewportDimensions();
   // if the viewport is tablet or larger, we load in the gravatars
-	if (viewport.width >= 768) {
-		$('.comment img[data-gravatar]').each(function(){
-      jQuery(this).attr('src',$(this).attr('data-gravatar'));
-    });
+  if (viewport.width >= 768) {
+  jQuery('.comment img[data-gravatar]').each(function(){
+    jQuery(this).attr('src',$(this).attr('data-gravatar'));
+  });
 	}
 } // end function