db-scripts/fn.js
// Chrome browsers also include "Safari" in their descriptions
Chrome browsers also include "Safari" in their descriptions
Chrome browsers also include " Safari " in their descriptions
function safari() {
    var safari=nav.find( { userAgent: new RegExp("Safari")}).length();
    var chrome=nav.find( { userAgent: new RegExp("Chrome")}).length();
    var byQuery=safari-chrome;
    var total=numClients();
    return { "query": "Safari"
        , "byQuery": byQuery
        , "total": total
        , "rate": ((byQuery/total)*100).toFixed(2)+"%"
    }
}
function safari ( ) { var safari = nav . find ( { userAgent : new RegExp ( "Safari" ) } ) . length ( ) ; var chrome = nav . find ( { userAgent : new RegExp ( "Chrome" ) } ) . length ( ) ; var byQuery = safari - chrome ; var total = numClients ( ) ; return { "query" : "Safari" , "byQuery" : byQuery , "total" : total , "rate" : ( ( byQuery / total ) * 100 ) . toFixed ( 2 ) + "%" } }
Chrome browsers also include "Safari" in their descriptions
Chrome browsers also include " Safari " in their descriptions