annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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