view 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 source

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);
}