Mercurial > hg-website
diff static/javascript/download.js @ 255:4a52186008ee
Add a first version of the sidebar
author | David Soria Parra <dsp@php.net> |
---|---|
date | Sun, 04 Oct 2009 04:05:49 +0200 |
parents | |
children | dd7fababf8b6 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/static/javascript/download.js Sun Oct 04 04:05:49 2009 +0200 @@ -0,0 +1,10 @@ +function os_detection() { + var OSName="Source"; + if (navigator.appVersion.indexOf("Win")!=-1) OSName="Windows"; + if (navigator.appVersion.indexOf("Mac")!=-1) OSName="Mac OS X"; + if (navigator.appVersion.indexOf("X11")!=-1) OSName="UNIX"; + if (navigator.appVersion.indexOf("Linux")!=-1) OSName="Linux"; + + document.write(OSName); +} +