Mercurial > hg-website
view static/javascript/download.js @ 277:84f2a6a16bd2
Update typeface.js from version 0.11 to 0.13
Fixes issue #5 (Rendering problems in IE8 on Windows 7) reported by Maxim Khitrov.
author | David Soria Parra <dsp@php.net> |
---|---|
date | Sun, 01 Nov 2009 20:26:16 +0100 |
parents | dd7fababf8b6 |
children |
line wrap: on
line source
function Download() { this.downloads = new Array(); } Download.prototype = { parse_os: function() { var OSName="Source code"; 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"; return OSName; }, os_detection: function() { document.write(this.parse_os()); }, os_link: function() { document.location.href = this.downloads[this.parse_os()]; }, register_download:function(type, url) { this.downloads[type] = url; } }