JSFiddle - React, Tailwind, and code Playground
by isherwood
HTML
<div class="content">
<div class="action-area ch30">
<button class="button dh" id="watchButton">Start Geolocation Watch</button>
<button class="button dh" id="refreshButton">Refresh Geolocation</button>
</div>
JavaScript
$(function () {
var that = this;
$("#watchButton").click(function () {
$(this).fadeOut().fadeIn().fadeOut().fadeIn();
that._handleWatch.apply(that, arguments);
});
$("#refreshButton").click(function () {
$(this).fadeOut().fadeIn().fadeOut().fadeIn();
that._handleRefresh.apply(that, arguments);
});
$('#watchButton').click();
});