-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
150 lines (133 loc) · 6.18 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
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="css/blokkit.css">
<link rel="stylesheet" href="css/add-form-v2.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body ng-app="blokkit">
<div id="addForm" ng-show="showAddForm.shown" ng-controller="form" class="animate-show">
<div>
<form name="activityForm">
<h2>Activity</h2>
<div class="activity">
<input type="text" ng-model="activity.verbose_name" name="activity" maxlength="30" placeholder="Activity Name..." required/>
</div>
<div class="description">
<textarea ng-model="activity.description" name="description" rows="10" placeholder="Brief Description..." required></textarea>
</div>
<h2>Relevant Links</h2>
<div class="links">
<input ng-model="activity.links.link1.desc" type="text" name="link_description1" maxlength="100" placeholder="Description or Title of link..."/>
<br />
<input ng-model="activity.links.link1.link" type="text" name="link1" maxlength="100" placeholder="Link... (Please include http://)"/>
</div>
<div class="links">
<input ng-model="activity.links.link2.desc" type="text" name="link_description2" maxlength="100" placeholder="Description or Title of link..."/>
<br />
<input ng-model="activity.links.link2.link" type="text" name="link2" maxlength="100" placeholder="Link... (Please include http://)"/>
</div>
<div class="links">
<input ng-model="activity.links.link3.desc" type="text" name="link_description3" maxlength="100" placeholder="Description or Title of link..."/>
<br />
<input ng-model="activity.links.link3.link" type="text" name="link3" maxlength="100" placeholder="Link... (Please include http://)"/>
</div>
<div class="links">
<input ng-model="activity.links.link4.desc" type="text" name="link_description3" maxlength="100" placeholder="Description or Title of link..."/>
<br />
<input ng-model="activity.links.link4.link" type="text" name="link3" maxlength="100" placeholder="Link... (Please include http://)"/>
</div>
<div class="links">
<input ng-model="activity.links.link5.desc" type="text" name="link_description3" maxlength="100" placeholder="Description or Title of link..."/>
<br />
<input ng-model="activity.links.link5.link" type="text" name="link3" maxlength="100" placeholder="Link... (Please include http://)"/>
</div>
<h2>Category</h2>
<div class="category">
<input type="checkbox" name="category" value="sports" ng-model="activity.category1" />Sports
<br />
<input type="checkbox" name="category" value="art" ng-model="activity.category2" />Arts and Design
<br />
<input type="checkbox" name="category" value="programming" ng-model="activity.category3" />Developing and Programming
<br />
<input type="checkbox" name="category" value="gaming" ng-model="activity.category4" />Games
<br />
<input type="checkbox" name="category" value="televsion" ng-model="activity.category5" />Television Shows
<br />
<input type="checkbox" name="category" value="books" ng-model="activity.category6" />Books and Novels
<br />
<input type="checkbox" name="category" value="movies" ng-model="activity.category7" />Movies
</div>
<h2>Relevant Tags</h2>
<div class="tags">
<input ng-model="activity.tags" type="text" name="tags" maxlength="1000" placeholder="Please ensure each of your tags are separated by spaces..." />
</div>
<button type="button" ng-click="showAddForm.shown=false">Cancel</button>
<button type="submit" ng-click="submitForm()">Blokk</button>
</form>
</div>
</div><!--addForm-->
<!--main-->
<div class="container" ng-controller="main">
<div class="header">
<div class="row">
<div class="title">
<h1 class="Blokkit">Blokkit</h1>
</div>
</div>
<div class="row">
<button ng-click="showAddForm.shown = !showAddForm.shown">Add Activity</button>
</div>
<div class="row">
<ul>
<li tab class="tab active" ng-click="setCategory('')"><a href="">All</a></li>
<li tab class="tab" ng-click="setCategory('sports')"><a href="">Sports</a></li>
<li tab class="tab" ng-click="setCategory('design')"><a href="">Design</a></li>
<li tab class="tab" ng-click="setCategory('coding')"><a href="">Coding</a></li>
<li tab class="tab" ng-click="setCategory('games')"><a href="">Games</a></li>
<li tab class="tab" ng-click="setCategory('tv')"><a href="">TV</a></li>
<li tab class="tab" ng-click="setCategory('books')"><a href="">Books</a></li>
<li tab class="tab" ng-click="setCategory('movies')"><a href="">Movies</a></li>
</ul>
</div>
</div>
<div class="row">
<div class="row search">
<div class="search">
<input type="text" placeholder="search..." ng-model="searchString.$">
{{category.cat}}
</div>
</div>
<ul>
<li class="blok" ng-repeat="blok in bloks | filter: category |filter:searchString" ng-click="showDetails = !showDetails">
<p class="likes">likes: {{blok.activity.likes}}</p>
<h2>{{ blok.activity.verbose_name }}</h2>
<p>{{ blok.activity.description }}</p>
<div ng-show="showDetails" id="detailView" class="animate-show">
<div>
<h2>{{ blok.activity.verbose_name }}</h2>
<p>{{ blok.activity.description }}</p>
<div ng-show="{{blok.activity.links}}">
<h3>Get Started here:</h3>
<ul>
<li ng-repeat="link in blok.activity.links">
<a href="{{ link.link }}" class="link" target:"_blank">{{ link.desc }}</a>
</li>
</ul>
</div>
<button type="button" class="like" ng-click="like(blok)">Like</button>
</div>
</div>
</li>
</ul>
<button class="load-more" type="button" ng-click="load_more()">Load More</button>
</div>
</div>
<!--scripts-->
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.10/angular.min.js"></script>
<script src='https://cdn.firebase.com/v0/firebase.js'></script>
<script src="https://cdn.firebase.com/libs/angularfire/0.6.0/angularfire.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.6/angular-animate.js"></script>
<script src="js/blokkit.js"></script>
</body>
</html>