Skip to content

Instantly share code, notes, and snippets.

Created October 13, 2018 08:10
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save trongthanh/1741f5e50287807df552fafcc1c1e593 to your computer and use it in GitHub Desktop.
<!doctype html>
<meta charset="utf-8">
<title>MY PAGE TITLE HERE</title>
<link rel="stylesheet" href="" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<script src=""></script>
<script src=""></script>
$(function() {
var helloWorldTemplate = Handlebars.compile($('#hello-world-template').html());
$('#fetch-data-btn').on('click', function() {
function fetchData() {
$.get('', function(json) {
<script id="hello-world-template" type="text/x-handlebars-template">
<div>City: {{city}}</div>
<div>AQI: {{aqi}}</div>
<button id="fetch-data-btn" class="btn btn-default">Fetch me data</button>
<div id="status"></div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment