-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmaster.html
76 lines (64 loc) · 2.57 KB
/
master.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Disasters</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
</head>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="/">Disaster Response Project</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="https://www.udacity.com/">Made with Udacity</a></li>
<li><a href="https://github.com/">Contact</a></li>
</ul>
</div>
</div>
</nav>
<div class="jumbotron">
<div class="container">
<h1 class="text-center">Disaster Response Project</h1>
<p class="text-center">Analyzing message data for disaster response</p>
<hr />
<div class="row">
<div class="col-lg-12 form-group-lg">
<form action="/go" method="get">
<input type="text" class="form-control form-control-lg" name="query" placeholder="Enter a message to classify">
<div class="col-lg-offset-5">
<button type="submit" class="btn btn-lg btn-success">Classify Message</button>
</div>
</form>
</div>
</div>
{% block message %}
{% endblock %}
</div>
</div>
<div class="container">
{% block content %}
<div class="page-header">
<h1 class="text-center">Overview of Training Dataset</h1>
</div>
{% endblock %}
{% for id in ids %}
<div id="{{id}}"></div>
{% endfor %}
</div>
<script type="text/javascript">
const graphs = {{graphJSON | safe}};
const ids = {{ids | safe}};
for(let i in graphs) {
Plotly.plot(ids[i], graphs[i].data, graphs[i].layout);
}
</script>
</body>
</html>