Coder Social home page Coder Social logo

vitprog / detectizr Goto Github PK

View Code? Open in Web Editor NEW

This project forked from barisaydinoglu/detectizr

0.0 2.0 0.0 742 KB

A Modernizr extension to detect device, device model, screen size, operating system, and browser details

Home Page: http://barisaydinoglu.github.io/Detectizr

License: MIT License

JavaScript 98.35% HTML 1.65%

detectizr's Introduction

Detectizr

Build Status Stories in Ready devDependency Status jsDelivr Hits

Detectizr is a Modernizr extension to detect

  • device
  • device model
  • device orientation
  • screen size
  • operating system
  • operating system version
  • operating system version full
  • browser
  • browser version
  • browser engine
  • browser plugins

Detection of these sets are optional and can be disabled.

Detectable device types are: tv (includes smart tv and game console), mobile, tablet, and desktop. Device models of tv, mobile and tablet are being detected.

Code quality of Detectizr is validated via JSLint & JSHint.

Sample Usage

This is a library that uses your trusty little Modernizr to give you the possibility of specifying required features for a certain stylesheet. Using it is a simple matter, illustrated in the following excerpt:

<html>
  <head>
    <script src="modernizr.js"></script>
    <script src="detectizr.js"></script>
  </head>
  <body>
    <script>
      Detectizr.detect({detectScreen:false});
    </script>
  </body>
</html>

Just remember to include Modernizr before Detectizr, and you're good to go!

Licensed under MIT license.

Note for Modernizr 3.x

You will need to have a build of Modernizr with the addTest (Modernizr.addTest()) option. If done from the website, you can find it

Other interesting projects

  • Modernizr is required for Detectizer. Remember to put Modernizr before Detectizr.
  • Categorizr is a server side device and OS detection script wirtten in PHP. Detectizr inspired by its device detection.
  • [CSS Browser Selector] (http://rafael.adm.br/css_browser_selector/ "CSS Browser Selector") is a client side browser detection script. Detectizr inspired by its browser detection.

detectizr's People

Contributors

barisaydinoglu avatar bichotll avatar broud avatar bryant1410 avatar lukasdrgon avatar maurerbot avatar soviut avatar splact 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.