-
Notifications
You must be signed in to change notification settings - Fork 95
/
question.html
109 lines (84 loc) · 4.57 KB
/
question.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<!doctype html>
<html lang="en" ng-app="todomvc" scroll data-framework="firebase">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- http://stackoverflow.com/questions/1341089/using-meta-tags-to-turn-off-caching-in-all-browsers -->
<meta http-equiv="cache-control" content="max-age=0" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
<meta http-equiv="pragma" content="no-cache" />
<title>Question Room: {{roomId}}</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css">
<!-- need this for comlted ones. TODO: can I do this in bootstrap -->
<link rel="stylesheet" href="node_modules/todomvc-app-css/index.css">
</head>
<body ng-controller="TodoCtrl">
<font size="10">Questions for {{roomId}}?</font>
<!--
<a ng-class="{selected: location.path() == '/newechos'}" class="btn btn-primary" href="#/newechos">New Echos</a>
<a ng-class="{selected: location.path() == '/tags'}" class="btn btn-success" href="#/tags">Tags</a>
<a ng-class="{selected: location.path() == '/users'}" class="btn btn-info" href="#/users">Users</a>
<a ng-class="{selected: location.path() == '/about'}" class="btn btn-warning" href="#/about">About</a>
-->
<small>Share room url: {{absurl}}</small>
<a class="btn btn-default" href="/index.html">Main</a>
<button ng-hide="$authData" class="btn btn-primary left" type="button" ng-click="FBLogin()">Want Admin? Sign in with Facebook</button>
<!-- after login -->
<img ng-show="$authData" src="https://graph.facebook.com/{{$authData.facebook.id}}/picture/?type=square&return_ssl_resources=1" alt="{{name}}" />
{{$authData.facebook.displayName}}
<button ng-show="$authData" class="btn btn-primary left" type="button" ng-click="FBLogout()">Logout</button>
<div class="input-group">
<!--
<form id="todo-form" ng-submit="addTodo()">
-->
<textarea type="text" id="new-todo" class="form-control"
placeholder="Search or Post Question"
ng-model="input.wholeMsg" autofocus></textarea>
<span class="input-group-btn">
<button class="btn btn-default" type="button" ng-click="addTodo()">Ask</button>
</span>
</div><!-- /input-group -->
<div class="list-group" id="todo-list">
<span class="list-group-item" ng-repeat="todo in todos | filter:input | questionFilter:maxQuestion" ng-class="{completed: todo.completed, editing: todo == editedTodo}">
<h4 class="list-group-item-heading" ng-switch on="todo.headLastChar">
<span class="label label-danger" ng-show="todo.new">New</span>
<span class="badge">{{todo.echo}}</span>
<!-- switch -->
<span ng-switch-when="?" class="glyphicon glyphicon-question-sign"></span>
<span ng-switch-when="!" class="glyphicon glyphicon-ice-lolly"></span>
<span ng-class="{completed: todo.completed}">{{todo.head}}</span>
</h4>
<p class="list-group-item-text"><span ng-bind-html="todo.trustedDesc"></span> created: {{todo.dateString}}
<span ng-show="todo.tags">tags: {{todo.tags}}</span></p>
<button class="btn btn-default btn-xs glyphicon glyphicon-hand-up" ng-click="addEcho(todo)" ng-disabled="$storage[todo.$id]">Like</button>
<button ng-show="isAdmin" class="btn btn-default btn-xs glyphicon glyphicon-check" ng-click="toggleCompleted(todo)">Toggle Completed</button>
<button ng-show="isAdmin" class="btn btn-default btn-xs glyphicon glyphicon-trash" aria-hidden="true" ng-click="removeTodo(todo)">Del</button>
</span>
</div>
<!--
<div id="toTop" class="btn btn-info"><span class="fa fa-arrow-up">Back to Top</span></div>
<button ng-hide="totalCount<=maxQuestion"
class="pull-right btn btn-default glyphicon glyphicon-arrow-down"
type="button" ng-click="increaseMax()"> Show more</button>
-->
<!-- Autolink from https://github.com/gregjacobs/Autolinker.js> -->
<script src="js/lib/Autolinker.min.js"></script>
<!-- 2.2.2 -->
<script src="js/lib/firebase.js"></script>
<script src="js/lib/angular.min.js"></script>
<script src="js/lib/angularfire.js"></script>
<!-- Ng storage 0.3.6 -->
<script src="js/lib/ngStorage.min.js"></script>
<script src="js/app.js"></script>
<script src="js/filters/questionFilter.js"></script>
<script src="js/controllers/todoCtrl.js"></script>
<script src="js/directives/todoFocus.js"></script>
<script src="js/directives/todoBlur.js"></script>
<script src="js/directives/todoEscape.js"></script>
</body>
</html>