BaseMax / BrowserFeaturesJs
Tiny Library for browser features detection.
README
BrowserFeatures
Tiny Library for browser features detection.
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 :
window.addEventListener("load",function()
{
document.write("" + "FunctionGenerator" + " : " + browser.function_generator + "
");
document.write("" + "FunctionAsync" + " : " + browser.function_async + "
");
document.write("" + "FunctionGeneratorAsync" + " : " + browser.function_generator_async + "
");
document.write("" + "EventTarget" + " : " + browser.event_target + "
");
document.write("" + "DataTransferItem" + " : " + browser.data_transfer_item + "
");
document.write("" + "DataTransferItemList" + " : " + browser.data_transfer_item_list + "
");
document.write("" + "BroadCastChannel" + " : " + browser.broad_cast_channel + "
");
document.write("" + "ViewPort" + " : " + browser.viewport + "
");
document.write("" + "Font" + " : " + browser.font + "
");
document.write("" + "CustomElement" + " : " + browser.custom_element + "
");
document.write("" + "Animate" + " : " + browser.animate + "
");
document.write("" + "SVG" + " : " + browser.svg + "
");
document.write("" + "Touch" + " : " + browser.touch + "
");
document.write("" + "WebGL" + " : " + browser.webgl + "
");
});
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.
