-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
100 lines (97 loc) · 5.1 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
<!DOCTYPE html>
<html lang="pt-BR" ng-app="whatsapp">
<head>
<!--Import materialize.css-->
<link type="text/css" rel="stylesheet" href="assert/css/materialize.css" media="screen,projection" />
<link type="text/css" rel="stylesheet" href="assert/css/app.css">
<!--Let browser know website is optimized for mobile-->
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>AngularJS</title>
</head>
<body ng-controller="whatsController">
<header>
<nav>
<div class="nav-wrapper teal darken-4">
<a href="#!" class="brand-logo logo">
WhatsApp
</a>
<ul class="right">
<li>
<a href="#"><i class="mdi-action-search"></i></a>
</li>
<li>
<a href="{{linkIcon}}"><i class="{{iconOpcao}}"></i></a>
</li>
<li>
<a href="#"><i class="mdi-navigation-more-vert"></i></a>
</li>
</ul>
</div>
</nav>
</header>
<main>
<div class="row">
<div class="col s12 teal darken-4 z-depth-1">
<ul class="tabs teal darken-4">
<li class="tab col s3">
<a class="white-text" href="#chamadas" ng-click="mudarPagina('chamadas')">CHAMADAS</a></li>
<li class="tab col s3">
<a class="white-text active" href="#conversas" ng-click="mudarPagina('conversas')">CONVERSAS</a></li>
<li class="tab col s3">
<a class="white-text" href="#contatos" ng-click="mudarPagina('contatos')">CONTATOS</a></li>
</ul>
</div>
<div id="chamadas" class="row">
<ul class="collection">
<li class="collection-item avatar" ng-repeat="chamadas in historicoLigacoes">
<img src="#" alt="" class="circle">
<div class="box-chat">
<span class="title">Subzo</span>
<p>1 minuto atrás, 00:44</p>
<a href="#!" class="secondary-content grey-text text-darken-3"><i class="small mdi-communication-call"></i></a>
</div>
</li>
</ul>
</div>
<div id="conversas" class="row">
<ul class="collection">
<li class="collection-item avatar" ng-repeat="conversa in historicoConversas | orderBy:'-dataHora' | unique: 'destinatarioId'">
<img src="{{buscarContato(conversa.destinatarioId)[0].fotoLink}}" alt="" class="circle">
<div class="box-chat">
<span class="title">
{{buscarContato(conversa.destinatarioId)[0].nome | limitTo : 15}}
</span>
<p>{{conversa.mensagem | limitTo : 55}}
<span class="new badge message message2" ng-show="conversa.contador > 0 && conversa.lida">{{conversa.contador | limitTo : 3}}</span></p>
<a href="#!" class="secondary-content grey-text text-darken-3">{{conversa.dataHora | date : 'dd/MM/yyyy' | uppercase }}</a>
</div>
</li>
</ul>
</div>
<div id="contatos" class="row">
<ul class="collection">
<li class="collection-item avatar" ng-repeat="contato in listaContatos | orderBy:'nome' ">
<img src="{{contato.fotoLink}}" alt="" class="circle">
<div class="box-chat">
<span class="title">{{ contato.nome | limitTo : 15 }}</span>
<p>{{contato.status | limitTo : 55}}</p>
<a href="#!" class="secondary-content grey-text text-darken-3">{{contato.tipo | uppercase }}</a>
</div>
</li>
</ul>
</div>
</div>
</main>
<footer>
</footer>
<!--Import jQuery before materialize.js-->
</body>
<script type="text/javascript" src="assert/js/jquery-2.1.1.min.js"></script>
<script type="text/javascript" src="assert/js/materialize.min.js"></script>
<script type="text/javascript" src="assert/js/angular.min.js"></script>
<script type="text/javascript" src="assert/js/angular-route.js"></script>
<script type="text/javascript" src="assert/js/angular-locale_pt-br.js"></script>
<script type="text/javascript" src="assert/js/app.js"></script>
<script type="text/javascript">
</script>
</html>