Parcourir la source

Update README.md

Inuyaksa il y a 7 ans
Parent
commit
91a38506ef
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      README.md

+ 2 - 2
README.md

@@ -77,13 +77,13 @@ Initialize nicescroll ALWAYS in (document) ready statement.
 ```javascript
 // 1. Simple mode, it styles document scrollbar:
 $(function() {  
-    $("html").niceScroll();
+    $("body").niceScroll();
 });
 
 // 2. Instance with object returned:
 var nice = false;
 $(function() {  
-    nice = $("html").niceScroll();
+    nice = $("body").niceScroll();
 });
 
 // 3. Style a DIV and chage cursor color: