-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
26 lines (26 loc) · 625 Bytes
/
index.html
File metadata and controls
26 lines (26 loc) · 625 Bytes
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>
<title>Nightwatch.js Test</title>
</head>
<body>
<h1>Nightwatch.js Test</h1>
<p id="quote"></p>
<p id="source"></p>
<script>
fetch('http://api:3000/', {
cache: 'no-cache',
headers: {
'Content-Type': 'application/json',
'Accept': 'application/json',
},
method: 'get',
})
.then(resp => resp.json())
.then(function(data) {
document.getElementById("quote").innerHTML = data.quote;
document.getElementById("source").innerHTML = data.source;
})
</script>
</body>
</html>