Skip to content

Commit

Permalink
Add: more details for the jQuery example
Browse files Browse the repository at this point in the history
  • Loading branch information
superKalo committed Sep 21, 2017
1 parent c3ae959 commit 51442ca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
<!-- Link to the SuperRepo library -->
<script src="../src/index.js"></script>

<!-- Uncomment for the jQuery $.ajax() example -->
<!-- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> -->

<script>

/**
Expand All @@ -29,6 +32,7 @@
const requestWeatherData = () => fetch('weather.json').then(r => r.json());

// ... or you can use jQuery's $.ajax() (as of v1.5, jQuery implements the Promise interface):
// In order for this to work, uncomment also the jQuery script tag above!
// const requestWeatherData = () => $.ajax({url:'weather.json'});

const WeatherRepository = new SuperRepo({
Expand Down

0 comments on commit 51442ca

Please sign in to comment.