GithubHelp home page GithubHelp logo

jsmike / client-info Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wwselleck/client-info

0.0 2.0 0.0 82 KB

Get browser details and determine if its supported by your site

Home Page: http://thorst.github.io/supportedBrowser.js/

License: MIT License

HTML 71.59% JavaScript 28.41%

client-info's Introduction

supportedBrowser.js

Check for supported browser and features

Demo

http://thorst.github.io/supportedBrowser.js/

What it is

A simple means to determine if a users browser is one that you've chosen to support. To obtain basic information about the browser.

What it isn't

This isn't the end all, be all solution that can determine any browser on any platform like https://github.com/NielsLeenheer/WhichBrowser

This isn't comprehensive feature detection library like https://github.com/Modernizr/Modernizr

Why use this

We support certain browsers (the main ones) and would like to inform users gently that they aren't supported and things may not work. This doesn't block access. This doesn't hinder the users experience. Simply states that unless they move to a supported browser, we can't guarantee a good user experience.

This helps manage expectations for users as well as aids in our support center in diagnosing issues.

Files

browserInfo - This is the library which obtains all the information. Its in its own file if you just want to gather the data.

supportedBrowser - This is just a simple function. Given what you want and what the user has will output basic booleans to act upon.

What are the main ones

Windows xp,vista,7,8,10

  • Chrome
  • Firefox
  • Internet Explorer (>=8)
  • Edge

OSX 10.8, 10.9

  • Safari
  • Chrome
  • Firefox

Android

  • Android Browser 2.3 (Gingerbread)
  • Chrome 4.0 (Ice Cream Sandwich), 4.1-4.3 (Jelly Bean), 4.4 (KitKat)
  • Firefox 2.3 (Gingerbread), 4.0 (Ice Cream Sandwich), 4.1-4.3 (Jelly Bean), 4.4 (KitKat)

iOS 6/7

  • Safari

Headless Testing

  • PhantomJS

To Use

  • include scripts
  • configure which browsers you would like to support
  • call console.log(browserInfo);
  • call console.log(supported);
  • call console.log(supportedBrowser(supported)); (See demo)

This will return a boolean if the browser/os combination is in your list of supported. Along with all the information it gathered.

Inspiration / Resources

client-info's People

Contributors

jsmike avatar thorst avatar wwselleck avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.