-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
40 lines (35 loc) · 1.45 KB
/
index.html
File metadata and controls
40 lines (35 loc) · 1.45 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Test Index of FetchJS</title>
<!-- Compiled and minified CSS - Added for quick styling -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css">
<!-- http://127.0.0.1:5000 is the URL provided by the Flask API. Substitue whatever URL best fits your use case -->
</head>
<body>
<div class="container">
<div class="row">
<div class="col s6 welcome" data-url="http://127.0.0.1:5000/">
</div>
<div class="question col s6" style="text-align: center;">
<h3>Wanna see some cool stuff I like?</h3>
<a data-url="http://127.0.0.1:5000/cool-things-i-like" data-target="#result" class="btn-large js-load-page">All the Stuff</a>
<a data-url="http://127.0.0.1:5000/cool-things-i-like?id=5" data-target="#result" class="btn-large js-load-page">Not a Thing</a>
</div>
</div>
<div class="row">
<div id="result" class="col s6 offset-s3">
</div>
</div>
</div>
<script src="dist/main.js"></script>
<script>
document.addEventListener('DOMContentLoaded', () => {
Binder.bindActions();
AJAX.getLoadElement(".welcome");
})
</script>
</body>
</html>