Mercurial > hg-website
annotate static/javascript/download.js @ 256:f6ace8678dd1
Update subrepos
author | David Soria Parra <dsp@php.net> |
---|---|
date | Sun, 04 Oct 2009 04:14:04 +0200 |
parents | 4a52186008ee |
children | dd7fababf8b6 |
rev | line source |
---|---|
255
4a52186008ee
Add a first version of the sidebar
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
1 function os_detection() { |
4a52186008ee
Add a first version of the sidebar
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
2 var OSName="Source"; |
4a52186008ee
Add a first version of the sidebar
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
3 if (navigator.appVersion.indexOf("Win")!=-1) OSName="Windows"; |
4a52186008ee
Add a first version of the sidebar
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
4 if (navigator.appVersion.indexOf("Mac")!=-1) OSName="Mac OS X"; |
4a52186008ee
Add a first version of the sidebar
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
5 if (navigator.appVersion.indexOf("X11")!=-1) OSName="UNIX"; |
4a52186008ee
Add a first version of the sidebar
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
6 if (navigator.appVersion.indexOf("Linux")!=-1) OSName="Linux"; |
4a52186008ee
Add a first version of the sidebar
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
7 |
4a52186008ee
Add a first version of the sidebar
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
8 document.write(OSName); |
4a52186008ee
Add a first version of the sidebar
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
9 } |
4a52186008ee
Add a first version of the sidebar
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
10 |