Coder Social home page Coder Social logo

basemax / browserfeaturesjs Goto Github PK

View Code? Open in Web Editor NEW
17.0 3.0 2.0 33 KB

Tiny Library for browser features detection.

License: GNU General Public License v3.0

JavaScript 55.78% HTML 44.22%
javascript js html browser browser-detection browser-automation javascript-library javascript-lib js-library js-libs

browserfeaturesjs's Introduction

BrowserFeatures

Tiny Library for browser features detection.

ChangeNumbers.min.js File Size ChangeNumbers.min.js Validation Code

Features

  • Easy
  • Compact
  • No dependencies

How to Use?

you can access to result of detect and check from variable.

type of all variable is bool.

list of variables :

Variables Goal
browser.function_generator
browser.function_async
browser.function_generator_async
browser.event_target
browser.data_transfer_item
browser.data_transfer_item_list
browser.broad_cast_channel
browser.viewport
browser.font
browser.custom_element
browser.animate
browser.svg
browser.touch
browser.webgl

Samples

To view the full details, run the Example.html file.

Example :

<script type="text/javascript" src="BrowserFeatures.min.js"></script>
<script type="text/javascript">
window.addEventListener("load",function()
{
    document.write("<b>" + "FunctionGenerator" + "</b> : " + browser.function_generator + "<br>");
    document.write("<b>" + "FunctionAsync" + "</b> : " + browser.function_async + "<br>");
    document.write("<b>" + "FunctionGeneratorAsync" + "</b> : " + browser.function_generator_async + "<br>");
    document.write("<b>" + "EventTarget" + "</b> : " + browser.event_target + "<br>");
    document.write("<b>" + "DataTransferItem" + "</b> : " + browser.data_transfer_item + "<br>");
    document.write("<b>" + "DataTransferItemList" + "</b> : " + browser.data_transfer_item_list + "<br>");
    document.write("<b>" + "BroadCastChannel" + "</b> : " + browser.broad_cast_channel + "<br>");
    document.write("<b>" + "ViewPort" + "</b> : " + browser.viewport + "<br>");
    document.write("<b>" + "Font" + "</b> : " + browser.font + "<br>");
    document.write("<b>" + "CustomElement" + "</b> : " + browser.custom_element + "<br>");
    document.write("<b>" + "Animate" + "</b> : " + browser.animate + "<br>");
    document.write("<b>" + "SVG" + "</b> : " + browser.svg + "<br>");
    document.write("<b>" + "Touch" + "</b> : " + browser.touch + "<br>");
    document.write("<b>" + "WebGL" + "</b> : " + browser.webgl + "<br>");
});
</script>

Output of Example :

FunctionGenerator : true
FunctionAsync : true
FunctionGeneratorAsync : false
EventTarget : true
DataTransferItem : true
DataTransferItemList : true
BroadCastChannel : true
ViewPort : false
Font : true
CustomElement : true
Animate : false
SVG : true
Touch : false
WebGL : true

The output may be specific to different browsers and systems.

License

BrowserFeatures is licensed under the GNU General Public License.

browserfeaturesjs's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.