View Single Post
  #6   (View Single Post)  
Old 22nd May 2014
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Tcpdump Spy
 
Join Date: Apr 2008
Location: Netherlands
Posts: 2,243
Default

This means I can't access your website:

Code:
                function checkVersion(e, redirect){
                    var browser = getBrowserLine(),
                        name = browser[0],
                        version = parseInt(browser[1].substring(0, browser[1].indexOf('.')), 10);
                        if( (name == "Chrome" && version > 19 ) || (name == "Firefox" && version > 16 ) || (name == "Safari" && version > 5 ) || (name == "MSIE" && version > 9 ) ){
                            if(!redirect) location.href = "/dashboard/";
                        } else if(location.href.indexOf('browsers') < 0){
                            location.href = "/browsers/";
                        }

                };
Please, stop doing this kind of nonsense. We all decided it was a bad idea back in 1999.
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote