-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
58 lines (50 loc) · 2.18 KB
/
index.html
File metadata and controls
58 lines (50 loc) · 2.18 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<html>
<head>
<script src="lib/angular.min.js"></script>
<script src="https://cdn.firebase.com/v0/firebase.js"></script>
<script src="https://cdn.firebase.com/libs/angularfire/0.5.0/angularfire.min.js"></script>
<script src="client/app.js"></script>
<link rel="stylesheet" type="text/css" href="bower_components/normalize-css/normalize.css">
<link rel="stylesheet" type="text/css" href="style/dist/css/bootstrap-theme.css" />
<link rel="stylesheet" type="text/css" href="style/dist/css/bootstrap.css" />
<link rel="stylesheet" type="text/css" href="style/style.css" />
</head>
<body ng-app="problemFinderApp">
<div id="container">
<h1>Problem Finder</h1>
<h2>Help entrepreneurs solve real problems</h2>
<h3>Have you ever found something particularly annoying, but didn't know how to fix it? Share your ideas with others to brainstorm solutions.</h3>
<div ng-controller="submitProblem">
<form ng-submit="saveProblem()">
<textarea type="text" ng-model="newProblem" ng-maxlength="140" placeholder="Submit a problem in 140 characters or less" required></textarea>
<br />
<input type="submit" />
</form>
</div>
<div ng-controller="problemView">
<div class="filters">
<span>
Sort By:
<select ng-model="selectOrder">
<option value="voteCount">Votes</option>
<option value="dateAdded">Most Recent</option>
</select>
</span>
<span>
Filter by Keyword: <input type="text" ng-model="searchText" />
</span>
</div>
<ul>
<li ng-repeat="problem in problemList | orderByPriority | orderBy:selectOrder:true | filter:searchText">
<span class="voteContainer">
<img class="arrowImg" src="style/arrow.png" ng-Click="upvote()" />
<span class="voteCount">{{problem.voteCount}}</span>
</span>
<span class="problemBody">{{problem.body}}</span>
<span class="comment"><a href="" ng-click="addCommentField()">Comment</a></span>
</li>
</ul>
</div>
</div>
</body>
</html>