-
Notifications
You must be signed in to change notification settings - Fork 0
/
contatos.html
138 lines (108 loc) · 3.75 KB
/
contatos.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
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html lang="en"> <!--<![endif]-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="author" content="Equipe Expresso Livre" />
<meta name="keywords" content="rest, json, javascript" />
<meta name="description" content="" />
<link rel="stylesheet" type="text/css" href="./css/estilo.css">
<title>.: Expresso :.</title>
</head>
<body>
<!-- menu -->
<div id="menu" class="left"></div>
<!-- fim menu -->
<div id="page" class="left">
<header class="top">
<ul class="left topButtons">
<li><a href="#" class="menu">Menu</a></li>
</ul>
<ul class="right topButtons">
<li><a href="#" class="contextMenu">Menu de contexto</a></li>
</ul>
<div id="contextMenu" class="hidden">
<ul>
<li><a href="./templates/contatos-pessoais.ejs" title="Contatos Pessoais">Contatos Pessoais</a></li>
<li><a href="./templates/contatos-catalogo-geral.ejs" title="Catálogo Geral">Catálogo Geral</a></li>
</ul>
</div>
</header>
<div class="main">
<div id="content" class="left">
<h2 id="contentTitle" class="ellipsis50">Contatos Pessoais</h2>
<form action="#" class="searchArea">
<input type="text" value="" placeholder="Procurar Por:" />
</form>
<div id="wrapper" class="container">
<div id="scroller"></div>
</div>
</div>
<div id="contentDetail" class="left">
<h2 id="contentDetailTitle"></h2>
<div id="wrapperDetail" class="container">
<div id="scrollerDetail"></div>
</div>
</div>
</div>
</div>
<script type="application/javascript" src="./plugins/jquery/jquery-1.9.1.js"></script>
<script type="application/javascript" src="./plugins/ejs/ejs.js"></script>
<script type="application/javascript" src="./plugins/iscroll/src/iscroll.js"></script>
<script type="text/javascript" src="./plugins/dotdotdot/jquery.dotdotdot.js"></script>
<script type="application/javascript" src="./js/jquery.touchwipe.min.js"></script>
<script type="application/javascript" src="./js/general.js"></script>
<script type="text/javascript">
jQuery(function($)
{
$('#menu').html(new EJS({url: './templates/menu.ejs'}).render());
$('#scroller').html(new EJS({url: './templates/contatos-pessoais.ejs'}).render());
$('#menu #mainMenu li').removeClass('selected');
$('#menu #mainMenu li.contacts').addClass('selected');
$('#contextMenu').on('click', 'a', function ()
{
$('#scroller').html(new EJS({url: $(this).prop('href')}).render());
$('#contentTitle').text($(this).text());
$('#contactsList').on('click', 'a', function (event)
{
init($(this), event);
});
$('#contextMenu').addClass('hidden');
scrollerRefresh();
return false;
});
$('#contactsList').on('click', 'a', function (event)
{
return init($(this), event);
});
});
function init(obj, event)
{
event.preventDefault();
var template = obj.prop('href');
var title,
panel;
if ($('body').hasClass('smartphone'))
{
panel = $('#scroller');
title = $('#contentTitle');
}
else
{
panel = $('#scrollerDetail');
title = $('#contentDetailTitle');
}
panel.html(new EJS({url: template}).render());
title.text(obj.find('.name').text());
scrollerRefresh();
return false;
}
</script>
</body>
</html>