JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
<link rel="stylesheet" href="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css">
<input type="email" value="[email protected]" />
<div id="output"></div>
JavaScript
$(document).ready(function() {
$(document).on("swipe", function(evt) {
log("swiped " + new Date().getTime());
});
log("ready");
});
function log(text) {
var newText = text + "<br />" + $("#output").html();
if (newText.length > 200)
newText = newText.substring(0, 200);
$("#output").html(newText);
}