-
Notifications
You must be signed in to change notification settings - Fork 286
/
index.html
53 lines (52 loc) · 2.19 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
<html ng-app="sampleApp">
<head>
<meta charset="UTF-8">
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="base.css">
<link rel="stylesheet" type="text/css" href="message.css">
<link rel="stylesheet" type="text/css" href="header.css">
<script src="angular.min.js"></script>
<script src="zepto.min.js"></script>
<script src="firebase.js"></script>
<script src="angularfire.min.js"></script>
<script src="script.js"></script>
</head>
<body ng-controller="MainCtrl">
<header>
<h1>Firedeaz - {{boardId}}</h1>
<span>
www.firedeaz.com/#
<input ng-model="newBoardId" placeholder="board name"></input>
<button ng-click="createNewBoard()">Create new board</button>
</span>
</header>
<div class="message-list" ng-repeat="type in messageTypes">
<ul class="column column_{{ type.id }}">
<h2>{{type.value}}<a ng-click="addNew(type)" href="javascript:void(0)">+</a></h2>
<li id="{{ message.$id }}" enter-click class="message" ng-class="{'flip': isEditing}" ng-repeat="message in messages | filter: {type: {id: type.id}}" ng-style="{'top': getHeight(message, $index) }">
<div class="hacker">
<div class="front">
<div class="message-body">
<div class="text">{{message.text}}</div>
<a href="javascript:void(0)" ng-click="isEditing = true; focusElement(message.$id);">✎</a>
</div>
<div class="votes">
<a ng-hide="alreadyVoted(message.$id)" href="javascript:void(0)" ng-click="addVote(message.$id, message.votes)"><img src="like.png" /></a>
<strong>+ {{ message.votes }}</strong>
</div>
</div>
<div class="back">
<div class="message-body">
<div class="editing">
<textarea maxlength="195" ng-model="message.text" ng-change="messages.$save(message)"></textarea>
<a href="javascript:void(0)" ng-click="deleteMessage(message)">✘</a>
<button ng-click="isEditing = false;">Done</button>
</div>
</div>
</div>
</div>
</li>
</ul>
</div>
</body>
</html>