forked from jrpool/xhrapp-panlex-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
26 lines (16 loc) · 947 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>XMLHTTPRequest Demonstration</title>
</head>
<body>
<script src="src/app.js"></script>
<h3>What are we demonstrating?</h3>
<p>When you open this page, it does not contain any data, but it does contain code that requests a datum from a server and, on receipt of the datum, inserts it into this page below. That is what this page demonstrates.</p>
<p>The request is sent to the <a href="https://dev.panlex.org/api/">PanLex API.</a></p>
<p>The request asks the API to look up the word “demonstration” in its database of about 25 million expressions in about 11,000 language varieties, and to return to us the count of language varieties containing that expression.</p>
<p>If the answer appears below shortly after you open this page, then the code is working correctly.</p>
<h2>Answer: <span id="count"></span></h2>
</body>
</html>