Wednesday, January 28, 2015

detect safari only by jquery and css

var ua=navigator.userAgent;
if(ua.search("Safari") greater= 0 && ua.search("Chrome") lessthan 0){
     do something here for your safari
}

No comments:

Post a Comment

Wordpress debug log function

Wordpress error log code: if ( ! function_exists ( 'write_log' ) ) { function write_log ( $data ) { if ( defined ( '...