JSFiddle - React, Tailwind, and code Playground
by icntfan
HTML
<!DOCTYPE html>
<html>
<head>
<style>
div { height: 100px; width: 300px; margin: 10px;
background-color: #ffd; overflow: auto; }
</style>
<script src="http://code.jquery.com/jquery-latest.js"></script>
</head>
<body>
<div>Tıkla.</div>
<script>
var last, diff;
$('div').click(function(event) {
if ( last ) {
diff = event.timeStamp - last
$('div').append('son tıklamadan itibaren geçen milisaniye: ' + diff + '<br/>');
} else {
$('div').append('Bİr daha tıkla.<br/>');
}
last = event.timeStamp;
});
</script>
</body>
</html>