clouch.js
Introduction
Remember that time when you were reading an article on your mobile device and came across the following
click here
were you dumbfounded and confused ? How does one click on the mobile ? This is where clouch.js comes in. clouch.js will replace all instances of the word click with touch.
How It Works
clouch.js checks the user agent and if it detects that it is on a mobile, it will go through all nodes replacing all occurences of click with touch.
Usage
Download v0.1.1 (clouch.js.zip 12K), then just load clouch.js
Here is a short usage example but see example.html for a more defined example.
<html>
<head>
<script src="clouch.js"></script>
</head>
<script>var clouch = require('clouchjs');</script>
<body>
<div>click <a src="#">here</a></div>
</body>
</html>