new Device()
This get html tag and run some check to detect device specifications then add relative class to the html tag
Example
require('./path/to/device.js');
Methods
(inner) checkTouch(el)
This check if device support ontouchstart event
Parameters:
Name | Type | Description |
---|---|---|
el |
DOM | html tag |