-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetToolIndex.html
65 lines (52 loc) · 2.34 KB
/
setToolIndex.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Comapsstic</title>
<link href="css/mainStyle.css" rel="stylesheet">
<script src="js/angular.min.js"></script>
<script src="js/app.js"></script>
<script src="js/factories.js"></script>
<script src="js/controllers/mainCtrl.js"></script>
</head>
<body ng-app="compasstic" ng-controller="mainCtrl">
<div id="loader" ng-if="loading">
<img src="img/hourglass.svg">
</div>
<h1>Compasstic</h1>
<div id="tools">
<!--select category-->
<select class="pagesList tool" ng-model="selectedCategory">
<option value="_">Select a category</option>
<option ng-repeat="category in categories" value="{{category.id}}">{{category.name}}</option>
</select>
<!--Select page-->
<select class="pagesList tool" ng-model="selectedPage">
<option value="_">Select a page to crawl</option>
<option ng-repeat="page in pages" value="{{page.id}}">{{page.name}}</option>
</select>
<!--Set topic-->
<input type="text" class="tool" placeholder="Topic" ng-model="selectedTopic">
<button class="tool" ng-click="getComments()">Get Comments</button>
<button class="tool" ng-click="sendCommentsToDB()">Send Comments To DB</button>
<hr>
<button class="tool" ng-click="startClassing()">Start Classing</button>
</div>
<div id="result">
<p ng-repeat="comment in comments">
{{$index+1}}- {{comment.message}}<br>
<select ng-int="commentFeeling = '6'" ng-model="commentFeeling" ng-change="setFeeling(commentFeeling, comment.id)" >
<option value="0">Sadness</option>
<option value="1">Anger</option>
<option value="2">Disgust</option>
<option value="3">Fear</option>
<option value="4">Surprise</option>
<option value="5">Happiness</option>
<option value="6" selected>Neutral</option>
</select>
<button ng-click="postOpinion(comment.id)">Post</button>
<button ng-click="discardComment(comment.id)">Discard</button>
</p>
</div>
</body>
</html>