Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save ilikerobots/1eb6303863bbaba449b0e33026454091 to your computer and use it in GitHub Desktop.

Select an option

Save ilikerobots/1eb6303863bbaba449b0e33026454091 to your computer and use it in GitHub Desktop.
<div>
<input id="button_loader" type="button" value="Load stopwatch">
</div>
<div id="stopwatch">
<stopwatch></stopwatch>
</div>
<script>
let stopwatchBtn = document.getElementById('button_loader');
stopwatchBtn.addEventListener('click', function (e) {
stopwatchBtn.style.visibility = "hidden";
{% lazy_render_bundle 'stopwatch' %}
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment