Touch Fingerprint
Description: This function fingerprints the touch capability of the client's device.
Issues: None.
Returns: true if touch capability exists, false if touch capability does not exist
Output for your computer is:
function fingerprint_touch() { "use strict"; var bolTouchEnabled, bolOut; bolTouchEnabled = false; bolOut = null; try { if (document.createEvent("TouchEvent")) { bolTouchEnabled = true; } bolOut = bolTouchEnabled; return bolOut; } catch (ignore) { bolOut = bolTouchEnabled return bolOut; } }