Skip to content

Commit 44d0ceb

Browse files
Update README.md
1 parent a33ceb5 commit 44d0ceb

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ This repository downloads data from Khan Academy hotlist every 5-10 minutes. You
44
## Working versions
55
| **Version** | **Works** |
66
|:-----------:|:---------:|
7-
|<1.1.0 ||
8-
|1.1.0 |✔️ |
7+
|<1.2.0 ||
8+
|1.2.0 |✔️ |
99

1010
## Importing
11-
**1**. Add `<script src = "https://cdn.jsdelivr.net/gh/Infinite-Coder-001/Hotlist-API@1.1.0/main.js"></script>` to `<head>` of your HTML page.
11+
**1**. Add `<script src = "https://cdn.jsdelivr.net/gh/Infinite-Coder-001/Hotlist-API@1.2.0/main.js"></script>` to `<head>` of your HTML page.
1212

1313
**2**. Call `HotlistAPI(callback);` in `<script>`. The `callback` is a function, that is called after all data is loaded. The function will be called with an argument, that contains raw JSON - the API output. **Example**:
1414

@@ -18,7 +18,7 @@ This repository downloads data from Khan Academy hotlist every 5-10 minutes. You
1818
<html>
1919
<head>
2020
<title>HotlistAPI example</title>
21-
<script src = "https://cdn.jsdelivr.net/gh/Infinite-Coder-001/Hotlist-API@main/main.js"></script> <!-- Including the script -->
21+
<script src = "https://cdn.jsdelivr.net/gh/Infinite-Coder-001/Hotlist-API@1.2.0/main.js"></script> <!-- Including the script -->
2222
</head>
2323
<body>
2424
<p id = "demo"></p>
@@ -66,7 +66,7 @@ The callback function is called after all data is loaded. The function is called
6666
<html>
6767
<head>
6868
<title>HotlistAPI example 2</title>
69-
<script src = "https://cdn.jsdelivr.net/gh/Infinite-Coder-001/Hotlist-API@main/main.js"></script> <!-- Including the script -->
69+
<script src = "https://cdn.jsdelivr.net/gh/Infinite-Coder-001/Hotlist-API@1.2.0/main.js"></script> <!-- Including the script -->
7070
<style>
7171
table {
7272
font-family: arial, sans-serif;

0 commit comments

Comments
 (0)