-
Notifications
You must be signed in to change notification settings - Fork 1
/
chat.html
197 lines (190 loc) · 9.58 KB
/
chat.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
<!DOCTYPE html>
<html>
<head>
<title>Test chat</title>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0, minimal-ui">
<meta name="apple-mobile-web-app-capable" content="yes" />
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link rel="stylesheet" type="text/css" href="build/icons.css" />
<link rel="stylesheet" type="text/css" href="build/af.ui.css" />
<link rel="stylesheet" type="text/css" href="build/style.css" />
<link rel="stylesheet" type="text/css" href="build/flaticon.css" />
<script type="text/javascript" charset="utf-8" src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script type="text/javascript" charset="utf-8" src="https://rawgit.com/ftlabs/fastclick/master/lib/fastclick.js"></script>
<script type="text/javascript" charset="utf-8" src="src/af.shim.js"></script>
<script type="text/javascript" charset="utf-8" src="src/af.ui.js"></script>
<script src="src/af.desktopBrowsers.js"></script>
<script type="text/javascript" charset="utf-8" src="src/af.actionsheet.js"></script>
<script type="text/javascript" charset="utf-8" src="src/af.animation.js"></script>
<script type="text/javascript" charset="utf-8" src="src/af.touchEvents.js"></script>
<script type="text/javascript" charset="utf-8" src="src/af.popup.js"></script>
<script type="text/javascript" charset="utf-8" src="src/af.drawer.js"></script>
<script type="text/javascript" charset="utf-8" src="src/af.toast.js"></script>
<script type="text/javascript" charset="utf-8" src="src/af.animateheader.js"></script>
<script type="text/javascript" charset="utf-8" src="src/af.splashscreen.js"></script>
<script type="text/javascript" charset="utf-8" src="src/af.swipereveal.js"></script>
<script type="text/javascript" charset="utf-8" src="src/custom.js"></script>
<script>
$.afui.useOSThemes=false;
$.afui.loadDefaultHash=true;
$.afui.autoLaunch=false;
$(document).ready(function(){
$.afui.launch();
});
//if($.os.ios)
$.afui.animateHeader(true);
function showCustomJsonSheet(){
$.afui.actionsheet(
[{
text: 'Yes',
cssClasses: 'blue',
handler: function () {
alert("hi");
}
}, {
text: 'No',
cssClasses: '',
handler: function () {
alert("goodbye");
}
}]);
}
</script>
</head>
<body class="ios7">
<div class="view" id="mainView">
<header>
<h1>Chat</h1>
</header>
<div class="pages">
<div class="panel" data-title="Chat" id="chat" data-selected="true">
<ul class="list users">
<li id='dialog_1' class="swipe-reveal">
<!--<a href="#dialog_page" class="swipe-reveal">-->
<a href="#dialog_page" class="swipe-content">
<div class="dialog_img rounded">
<!--<img class="rounded" src="img/face_1.jpg"/>-->
</div>
<span class="dialog_date">20 апреля</span>
<div class="dialog_content">
<div class="user_name">Аманда Роджерс</div>
<div class="dialog_body">Спасибо</div>
</div>
</a>
<div class="swipe-hidden">
<a class="button archive">Удалить</a>
</div>
</li>
<li id='dialog_2' class="swipe-reveal">
<a href="#dialog_page" class="swipe-content">
<div class="dialog_img rounded">
<!--<img class="rounded" src="img/face_2.jpg"/>-->
</div>
<span class="dialog_date">20.04.2015</span>
<div class="dialog_content">
<div class="user_name">Джули Энн Смит</div>
<div class="dialog_body">Ладно удачи</div>
</div>
</a>
<div class="swipe-hidden">
<a class="button archive">Удалить</a>
</div>
</li>
<li id='dialog_3' class="swipe-reveal">
<a href="#dialog_page" class="swipe-content">
<div class="dialog_img rounded">
<!--<img class="rounded" src="img/face_2.jpg"/>-->
</div>
<span class="dialog_date">20.04.2015</span>
<div class="dialog_content">
<div class="user_name">Эмма Стоун</div>
<div class="dialog_body">Ладно удачи</div>
</div>
</a>
<div class="swipe-hidden">
<a class="button archive">Удалить</a>
</div>
</li>
</ul>
</div>
<div class="panel" data-title="Compose" id="users_panel">
<div class="search_users">
<input type="search" placeholder="Search"/>
</div>
<ul class="list users">
<li id='user_1' class="swipe-reveal">
<!--<a href="#dialog_page" class="swipe-reveal">-->
<a href="#dialog_page" class="swipe-content">
<div class="dialog_img rounded">
<!--<img class="rounded" src="img/face_1.jpg"/>-->
</div>
<div class="dialog_content">
<div class="user_name">Аманда Роджерс</div>
</div>
</a>
<div class="swipe-hidden">
<a class="button archive">Удалить</a>
</div>
</li>
<li id='user_2' class="swipe-reveal">
<a href="#dialog_page" class="swipe-content">
<div class="dialog_img rounded">
<!--<img class="rounded" src="img/face_2.jpg"/>-->
</div>
<div class="dialog_content">
<div class="user_name">Джули Энн Смит</div>
</div>
</a>
<div class="swipe-hidden">
<a class="button archive">Удалить</a>
</div>
</li>
<li id='user_3' class="swipe-reveal">
<a href="#dialog_page" class="swipe-content">
<div class="dialog_img rounded">
<!--<img class="rounded" src="img/face_2.jpg"/>-->
</div>
<div class="dialog_content">
<div class="user_name">Эмма Стоун</div>
</div>
</a>
<div class="swipe-hidden">
<a class="button archive">Удалить</a>
</div>
</li>
</ul>
</div>
<div class="panel" data-title="Login" id="login">Login page</div>
<div class="panel" data-title="Settings" id="settings">
<ul class="list chat_settings">
<li><a href="#" onclick="showCustomJsonSheet()">Предварительный просмотр уведомлений</a></li>
<li><a href="#" onclick="showCustomJsonSheet()">Вибрация</a></li>
<li><a href="#" onclick="showCustomJsonSheet()">Свет</a></li>
<li><a href="#" onclick="showCustomJsonSheet()">Звук</a></li>
</ul>
</div>
</div>
<footer>
<a href="#chat" class="icon chat" data-transition="fade">Chat</a>
<a href="#users_panel" class="icon pencil" data-transition="fade">New Chat</a>
<a href="#settings" class="icon settings" data-transition="fade">Settings</a>
</footer>
</div>
<div class="view" id="dialogView">
<header>
<a class="button glyph-icon flaticon-previous11" href="#mainView" data-transition="down-reveal:dismiss">Back</a>
<h1></h1>
</header>
<div class="pages">
<div class="panel" id="dialog_page" data-include="dialog_page.html"></div>
</div>
<footer>
<div class="dialog_input">
<input type="text" placeholder="Напишите сообщение">
</div>
</footer>
</div>
</body>
</html>