Created
June 29, 2015 21:17
-
-
Save msrafi/569e0fdb640b7a0f8358 to your computer and use it in GitHub Desktop.
Check page zoom
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).on('scroll', function(){ | |
var zoom = document.documentElement.clientWidth / window.innerWidth; | |
console.log(zoom); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment