-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
177 lines (144 loc) · 7.31 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Project Mike</title>
<!-- Fonts & Icons -->
<link href="https://fonts.googleapis.com/css?family=Rubik:300,400,700" rel="stylesheet">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<!-- css -->
<link rel="stylesheet" href="css/materialize.min.css">
<link rel="stylesheet" href="css/app.css">
<!-- js -->
</head>
<body>
<div class="titlebar">
<div class="draggable"></div>
<div class="right title">
<a class="btn-floating waves-effect waves-light transparent z-depth-0"><i class="material-icons">remove</i></a>
<a class="btn-floating waves-effect waves-light transparent z-depth-0"><i class="material-icons">fullscreen</i></a>
<a onclick="window.close();" class="btn-floating waves-effect waves-light transparent z-depth-0"><i class="material-icons">close</i></a>
</div>
<div class="title">
<a class="btn-floating waves-effect waves-light transparent z-depth-0"><i class="material-icons">menu</i></a>
<span class="user" id="titleBarUser">...</span> — Project Mike
</div>
</div>
<!-- modals -->
<div id="userState" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>Update User Status and Message</h4>
<div class="input-field">
<input type="text" id="userStateMessage"></input>
<label for="userStateMessage">Status Message</label>
</div>
<div class="input-field col s12">
<select id="userStatus">
<option value="0">Invisible</option>
<option value="1" selected>Online</option>
<option value="2">Away</option>
<option value="3">Busy</option>
</select>
<label>Status</label>
</div>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-light white-text btn-flat">Close</a>
<a href="#!" onclick="modalUpdateUser()" class="waves-effect waves-light white-text btn-flat">Save</a>
</div>
</div>
<!-- side menu -->
<div class="sidemenu">
</div>
<div class="row">
<div class="col s4 convoview">
<!-- conversations view -->
<div class="identity z-depth-2">
<a onclick="$('#userState').modal('open');" class="modal-trigger btn-floating waves-effect waves-light transparent z-depth-0 right"><i class="material-icons">edit</i></a>
<div class="identitypic">
<img class="state offline picture" src="https://placehold.it/48x48" id="appUserState"></img>
<p class="user" id="appUserMentioname">...</p>
<p class="status" id="appUserStatus">...</p>
</div>
</div>
<!-- tabs -->
<div class="row">
<div class="col s12">
<ul class="tabs">
<li class="tab"><a href="#convos">Conversations</a></li>
<li class="tab"><a href="#friends">Friends</a></li>
<li class="tab"><a href="#directory">Directory</a></li>
</ul>
</div>
<div id="convos" class="col s12">
<div class="convolist">
</div>
</div>
<div id="friends" class="col s12">
<div class="convolist">
</div>
</div>
<div id="directory" class="col s12">
<div class="convolist">
</div>
</div>
</div>
</div>
<div class="col s8 chatview">
<!-- chat view -->
<!-- Group identity bar framework: -->
<!-- <div class="identity z-depth-2">
<a class="btn-floating waves-effect waves-light transparent z-depth-0 right"><i class="material-icons">settings</i></a>
<p class="title">Group</p>
<div class="userarray">
<img class="state busy picture" src="https://placehold.it/32x32"></img>
<img class="state online picture" src="https://placehold.it/32x32"></img>
<img class="state away picture" src="https://placehold.it/32x32"></img>
<img class="state online picture" src="https://placehold.it/32x32"></img>
<img class="state busy picture" src="https://placehold.it/32x32"></img>
<img class="state busy picture" src="https://placehold.it/32x32"></img>
<img class="state offline picture" src="https://placehold.it/32x32"></img>
</div>
</div> -->
<!-- 1-1 identity bar framework: -->
<div class="identity z-depth-2">
<a class="btn-floating waves-effect waves-light transparent z-depth-0 right"><i class="material-icons">settings</i></a>
<div class="identitypic">
<img class="state busy picture" src="https://placehold.it/48x48"></img>
<p class="user">@onewiththecore</p>
<p class="status">enjoying DEF CON</p>
</div>
</div>
<div class="contents">
<div class="theme">
<div class="msgwrapper">
<div class="left msg">
<div class="msgbox">
<p class="msgtext">hiya!</p>
<span class="user">@onewiththecore — 12:07 7/22/17</span>
</div>
</div>
</div>
<div class="msgspacer"></div>
<div class="msgwrapper">
<div class="right msg">
<div class="msgbox">
<p class="msgtext">hi friendo!</p>
<span class="user">Delivered — 12:07 7/22/17</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
<script>
// You can also require other files to run in this process
window.jQuery = window.$ = require('jquery');
window.Hammer = require("hammerjs");
require('./renderer.js');
</script>
<script src="js/materialize.min.js"></script>
<script src="js/ui-chat.js"></script>
</html>