-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
66 lines (64 loc) · 2.54 KB
/
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
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Steemit Word Cloud</title>
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" />
<style>
.demo-title {
line-height: 60px;
font-size: 24px;
text-align: center;
font-weight: bold;
}
.demo-form {
margin: 24px 0px;
text-align: center;
}
.submit-button {
float: left;
}
</style>
<script src="https://cdn.steemjs.com/lib/latest/steem.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.1/Chart.js"></script>
<script
src="https://code.jquery.com/jquery-3.3.1.min.js"
integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
crossorigin="anonymous"></script>
</head>
<body>
<div class="row">
<div class="col-sm-6 offset-sm-3 demo-title">
Enter any Steemit account to generate a word cloud
</div>
</div>
<div class="row demo-form">
<div class="col-sm-3 offset-sm-3">
<div class="input-group col-sm-6 offset-sm-6">
<input type="text" class="form-control username-input" placeholder="Username" aria-describedby="sizing-addon2">
</div>
</div>
<div class="col-sm-3">
<button type="button" class="btn btn-primary submit-button">Generate!</button>
</div>
</div>
<div class="row">
<div id='word-cloud' class="col-sm-8 offset-sm-2">
<canvas id='word-cloud-canvas'></canvas>
</div>
</div>
<div class="row">
<div id='sentiment' class="col-sm-8 offset-sm-2">
<canvas id='sentiment-canvas'></canvas>
</div>
</div>
<div class="row">
<div id='sentiment' class="col-sm-6 offset-sm-3">
Sentiment analysis determines automatically how positive or negative some text is with 0 being neutral sentiment.
The analysis isn't perfect but it should help you see if a user's post is worded using positive or negative language.
5 is the most extreme positive and -5 is the most extreme negative.
</div>
</div>
<script src="build/js/index.js"></script>
</body>
</html>