display the hitcount in the example pages
This commit is contained in:
parent
a0574cf066
commit
66c51f8391
|
@ -15,7 +15,7 @@
|
||||||
fetch('http://localhost:5000/hits/index.html').then((resp) => {
|
fetch('http://localhost:5000/hits/index.html').then((resp) => {
|
||||||
return resp.text();
|
return resp.text();
|
||||||
}).then((data) => {
|
}).then((data) => {
|
||||||
console.log(data);
|
hits.innerHTML = data;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
fetch('http://localhost:5000/hits/user').then((resp) => {
|
fetch('http://localhost:5000/hits/user').then((resp) => {
|
||||||
return resp.text();
|
return resp.text();
|
||||||
}).then((data) => {
|
}).then((data) => {
|
||||||
console.log(data);
|
hits.innerHTML = data;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue