Browser/Device/OS/Screen Detection With Version – braowser.js

Category: Javascript | October 31, 2019
Author: ticlekiwi
Views Total: 204 views
Official Page: Go to website
Last Update: October 31, 2019
License: MIT

Preview:

Browser/Device/OS/Screen Detection With Version – braowser.js

Description:

braowser.js is a vanilla JavaScript library that detects the client’s device, browser, operator system, screen solution and adds the corresponding CSS styles to the HTML tag.

For example:

<html lang="en" class="ios mobile touch retina chrome v-76">
  ...
</html>

How to use it:

1. Include the minified version of the braowser.js library on the webpage.

<script src="lib/braowser.min.js"></script>

2. Do something depending on the current device, browser, operator system, screen solution.

if(braowser_hasClass('windows chrome v-76')){
  // Do something if browser is Chrome v76
}

You Might Be Interested In:


Leave a Reply