-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
238 lines (204 loc) · 12.8 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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
<html>
<head>
<meta name="theme-color" content="#313F8C">
<link rel="icon" type="image/png" href="img/ic_adb_black_24dp_1x.png" sizes="24x24" />
<link rel="icon" type="image/png" href="img/ic_adb_black_24dp_2x.png" sizes="48x48" />
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Droid Talks</title>
<meta name="viewport" content="width=device-width">
<meta name="description" content="A collection of videos and podcast about Android Developement">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Roboto:300,400,500,700" type="text/css">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" href="https://code.getmdl.io/1.3.0/material.indigo-pink.min.css">
<link rel="stylesheet" type="text/css" href="css/dialog-polyfill.css" />
<link rel="stylesheet" href="css/sweetalert.css">
<link rel="stylesheet" href="css/site.css">
<script src="js/sweetalert.min.js"></script>
<script src="https://www.gstatic.com/firebasejs/3.9.0/firebase.js"></script>
<script src="js/site.js"></script>
<script defer src="https://code.getmdl.io/1.3.0/material.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
<script src="https://cdn.firebase.com/libs/angularfire/2.1.0/angularfire.min.js"></script>
<script src="js/dialog-polyfill.js"></script>
<script src="data.js"></script>
<script src="app.js"></script>
<script src="js/services/TopicsServices.js"></script>
<script src="js/services/CreatorsServices.js"></script>
<script src="js/services/TalksServices.js"></script>
</head>
<body ng-app="myApp" ng-controller="mainCtrl">
<div class="mdl-layout mdl-js-layout mdl-layout--fixed-header
mdl-layout--fixed-tabs">
<header class="mdl-layout__header">
<div class="mdl-layout__header-row">
<!-- Title -->
<span class="mdl-layout-title">Droid Talks</span>
<div class="mdl-layout-spacer"></div>
<div class="mdl-textfield mdl-js-textfield mdl-textfield--expandable
mdl-textfield--floating-label mdl-textfield--align-right">
<label class="mdl-button mdl-js-button mdl-button--icon"
for="fixed-header-drawer-exp">
<i class="material-icons">search</i>
</label>
<div class="mdl-textfield__expandable-holder">
<input ng-click="currentPage = 0" ng-model="searchPattern" class="mdl-textfield__input" type="text" name="sample"
id="fixed-header-drawer-exp">
</div>
</div>
</div>
<!-- Tabs -->
<div class="mdl-layout__tab-bar mdl-js-ripple-effect">
<a ng-click="currentPage = 0" href="#fixed-tab-1" class="mdl-layout__tab is-active">Topics</a>
<a ng-click="currentPage = 0" href="#fixed-tab-2" class="mdl-layout__tab">Events</a>
<a ng-click="currentPage = 0" href="#fixed-tab-3" class="mdl-layout__tab">Creators</a>
</div>
</header>
<div class="mdl-layout__drawer">
<span class="mdl-layout-title">Droid Talks</span>
<nav class="mdl-navigation">
<a target="_blank" href="https://github.com/Amejia481/DroidTalks/" class="mdl-navigation__link "><i class="material-icons">link</i><span> GitHub</span></a>
<a id="button-open-dialog-about" class="mdl-navigation__link" href=""><i class="material-icons">adb</i><span> About</span></a>
<a id="button-open-dialog-credits" class="mdl-navigation__link" href=""><i class="material-icons">favorite</i><span> Credits</span></a>
</nav>
</div>
<main class="mdl-layout__content" ng-cloak>
<section class="mdl-layout__tab-panel is-active" id="fixed-tab-1">
<div class="page-content">
<div class="mdl-grid" ng-init="numerberOfTalks = MAX_ITEMS_TO_SHOW_PER_CARDS">
<div ng-repeat="topic in topics | filter:searchPattern
| orderBy | startFrom:currentPage*pageSize | limitTo:pageSize"
class="mdl-cell mdl-cell--4-col mdl-cell--6-col-phone mdl-card mdl-shadow--3dp" >
<div class="mdl-card__title mdl-card--border" >
<span class="mdl-badge" mdl-badge--overlap data-badge="{{ (talks | filter: {topic:topic}).length }}"> <h3 class="mdl-card__title-text"> <strong >{{topic}} </strong></h3></span>
<span style="font-size:12px;" ng-show="getCountOfWatchedTalk((talks | filter: {topic:topic})) > 0"> {{getCountOfWatchedTalk((talks | filter: {topic:topic}))}}/{{ (talks | filter: {topic:topic}).length }}</span>
</div>
<ul>
<talk-section ng-repeat="talk in talks | orderBy:'name' | filter:{topic:topic} | limitTo:numerberOfTalks" talk="talk"></talk-section>
</ul>
<show-more actual-number-of-items="numerberOfTalks"
total-items-in-collection="( talks | filter:{topic:topic}).length"
max-items-to-show="MAX_ITEMS_TO_SHOW_PER_CARDS"></show-more>
</div>
</div>
<pagination-section unfiltered-data="topics" filtered-data="filteredTopicData" search-pattern="searchPattern"
current-page="currentPage" page-size="pageSize"></pagination-section>
</div>
</section>
<section class="mdl-layout__tab-panel" id="fixed-tab-2">
<div class="page-content">
<div class="mdl-grid" ng-init="maxNumberOfEvents = MAX_ITEMS_TO_SHOW_PER_CARDS" >
<div ng-repeat="event in events | orderBy:'name' | filter:{name:searchPattern}
| startFrom:currentPage*pageSize | limitTo:pageSize "
class="mdl-cell mdl-cell--4-col mdl-cell--6-col-phone mdl-card mdl-shadow--3dp">
<div class="mdl-card__title mdl-card--border">
<span class="mdl-badge" mdl-badge--overlap data-badge="{{ event.versions.length }}"> <h3 class="mdl-card__title-text"> <strong >{{event.name}}</strong></h3></span>
</div>
<ul>
<li ng-repeat="version in event.versions | orderBy:'-name' | limitTo:maxNumberOfEvents">
<h5><a target="_blank" href="{{version.videoURL}}">{{version.name}}</a></h5>
</li>
</ul>
<show-more actual-number-of-items="maxNumberOfEvents"
total-items-in-collection="( event.versions).length"
max-items-to-show="MAX_ITEMS_TO_SHOW_PER_CARDS"></show-more>
</div>
</div>
<pagination-section unfiltered-data="events" filtered-data="filteredEventData" search-pattern="searchPattern"
current-page="currentPage" page-size="pageSize"></pagination-section>
</div>
</section>
<section class="mdl-layout__tab-panel" id="fixed-tab-3">
<div class="page-content">
<div class="mdl-grid" >
<div ng-repeat="speaker in speakers | orderBy :'name' | filter:{name:searchPattern}
| startFrom:currentPage*pageSize | limitTo:pageSize " ng-init="maxNumberOfAuthors = MAX_ITEMS_TO_SHOW_PER_CARDS"
class="mdl-cell mdl-cell--4-col mdl-cell--6-col-phone mdl-card mdl-shadow--3dp">
<div class="mdl-card__title mdl-card--border">
<span class="mdl-badge" mdl-badge--overlap data-badge="{{ (talks | inArray:speaker:'id').length }}"> <h3 class="mdl-card__title-text"> <strong >{{speaker.name}}</strong></h3></span>
<span style="font-size:12px;" ng-show="getCountOfWatchedTalk((talks | inArray:speaker:'id')) > 0"> {{getCountOfWatchedTalk((talks | inArray:speaker:'id'))}}/{{ (talks | inArray:speaker:'id').length }}</span>
</div>
<ul>
<talk-section ng-repeat="talk in talks | orderBy:'name' | inArray:speaker:'id'
| limitTo:maxNumberOfAuthors" talk="talk" ></talk-section>
</ul>
<show-more actual-number-of-items="maxNumberOfAuthors"
total-items-in-collection="(talks | inArray:speaker:'id').length "
max-items-to-show="MAX_ITEMS_TO_SHOW_PER_CARDS"></show-more>
</div>
</div>
<pagination-section unfiltered-data="speakers" filtered-data="filteredCreatorsData" search-pattern="searchPattern"
current-page="currentPage" page-size="pageSize"></pagination-section>
</div>
</section>
</main>
</div>
<button title="Suggest a new Resource" onclick="showAlert()" class="fab-top-right mdl-button mdl-js-button mdl-button--fab mdl-js-ripple-effect mdl-button--primary">
<i class="material-icons">send</i>
</button>
<dialog id="dialog-about" class="mdl-dialog biggerDialog" >
<div class="mdl-dialog__content" >
<h5>
<strong> Droid Talks was created by <a target="_blank" href="http://www.arturomejiamarmol.com/">Arturo Mejia</a>
an Android Developer that just wanted to have a common place where collect and categorize resources about
Android Development for sharing with friends and future references.
<br>
<br>
Feedbacks and Suggestions <a href="mailto:[email protected]">[email protected]</a>
</strong>
</h5>
<h5>
</h5>
</div>
<div class="mdl-dialog__actions mdl-dialog__actions--full-width" >
<button type="button" class="mdl-button"><a href="mailto:[email protected]">Send me a Cool link</a> <i class="material-icons">send</i></button>
<button type="button" class="mdl-button close">Close</button>
</div>
</dialog>
<dialog id="dialog-credits" class="mdl-dialog biggerDialog" style="width: 300px !important;">
<span class="mdl-dialog__title" >Made with <i class="material-icons">favorite</i><span> by:</span></span>
<div class="mdl-dialog__content">
<a style="text-decoration: none" target="_blank" ng-repeat="contributor in contributors | orderBy :'+contributions'" href="https://github.com/{{contributor.login}}">
<div class="demo-card-image mdl-card mdl-shadow--2dp"
style="width: 200px; height: 200px; background: url('{{contributor.avatar_url}}') center / cover; margin: 10px;">
<div class="mdl-card__title mdl-card--expand"></div>
<div class="mdl-card__actions" style="height: 52px; padding: 16px; background: rgba(0, 0, 0, 0.2);">
<span style="color: #fff; font-size: 14px; font-weight: 500; "><strong>{{contributor.name}}</strong> <span class="mdl-badge" mdl-badge--overlap data-badge="{{contributor.contributions}}"></span></span>
</div>
</div>
</a>
</div>
</div>
<div class="mdl-dialog__actions" >
<button type="button" class="mdl-button"><a target="_blank" href="https://github.com/Amejia481/DroidTalks/">Contribute</a></h4></button>
<button type="button" class="mdl-button close">Close</button>
</div>
</dialog>
<script>
function setUpDialog(dialogID,openButton){
var dialog = document.querySelector('#'+dialogID);
var showModalButton = document.querySelector("#"+openButton);
if (! dialog.showModal) {
dialogPolyfill.registerDialog(dialog);
}
showModalButton.addEventListener('click', function() {
dialog.showModal();
});
dialog.querySelector('.close').addEventListener('click', function() {
dialog.close();
});
}
setUpDialog("dialog-about","button-open-dialog-about");
setUpDialog("dialog-credits","button-open-dialog-credits");
</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-98996445-1', 'auto');
ga('send', 'pageview');
</script>
</body>
<html>