Created
August 11, 2014 00:56
-
-
Save coleww/477cdd63d41bf125dc9a to your computer and use it in GitHub Desktop.
OS.JS
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
// um so i kind of want my personal site to show something different | |
// depending on what operating system the user is on. | |
// or something... | |
if (navigator.appVersion.indexOf("Linux")!=-1) { | |
}else if (navigator.appVersion.indexOf("Win")!=-1) { | |
}else if (navigator.appVersion.indexOf("Mac")!=-1) { | |
}else{ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment