Mercurial > hg-website
comparison 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 |
comparison
equal
deleted
inserted
replaced
254:d662cba2afb1 | 255:4a52186008ee |
---|---|
1 function os_detection() { | |
2 var OSName="Source"; | |
3 if (navigator.appVersion.indexOf("Win")!=-1) OSName="Windows"; | |
4 if (navigator.appVersion.indexOf("Mac")!=-1) OSName="Mac OS X"; | |
5 if (navigator.appVersion.indexOf("X11")!=-1) OSName="UNIX"; | |
6 if (navigator.appVersion.indexOf("Linux")!=-1) OSName="Linux"; | |
7 | |
8 document.write(OSName); | |
9 } | |
10 |