Commit e71cad85 authored by JC Brand's avatar JC Brand

Add default avatar for users.

parent 5142f563
...@@ -1512,7 +1512,7 @@ ...@@ -1512,7 +1512,7 @@
return; return;
} }
var img_src = 'data:'+this.model.get('image_type')+';base64,'+this.model.get('image'), var img_src = 'data:'+this.model.get('image_type')+';base64,'+this.model.get('image'),
canvas = $('<canvas height="31px" width="31px" class="avatar"></canvas>').get(0); canvas = $('<canvas height="32px" width="32px" class="avatar"></canvas>').get(0);
if (!(canvas.getContext && canvas.getContext('2d'))) { if (!(canvas.getContext && canvas.getContext('2d'))) {
return this; return this;
...@@ -3221,6 +3221,8 @@ ...@@ -3221,6 +3221,8 @@
'user_id': Strophe.getNodeFromJid(jid), 'user_id': Strophe.getNodeFromJid(jid),
'resources': [], 'resources': [],
'groups': [], 'groups': [],
'image_type': 'image/png',
'image': "iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAIAAABt+uBvAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3gwHCy455JBsggAABkJJREFUeNrtnM1PE1sUwHvvTD8otWLHST/Gimi1CEgr6M6FEWuIBo2pujDVsNDEP8GN/4MbN7oxrlipG2OCgZgYlxAbkRYw1KqkIDRCSkM7nXvvW8x7vjyNeQ9m7p1p3z1LQk/v/Dhz7vkEXL161cHl9wI5Ag6IA+KAOCAOiAPigDggLhwQB2S+iNZ+PcYY/SWEEP2HAAAIoSAIoihCCP+ngDDGtVotGAz29/cfOXJEUZSOjg6n06lp2sbGRqlUWlhYyGazS0tLbrdbEASrzgksyeYJId3d3el0uqenRxRFAAAA4KdfIIRgjD9+/Pj8+fOpqSndslofEIQwHA6Pjo4mEon//qmFhYXHjx8vLi4ihBgDEnp7e9l8E0Jo165dQ0NDd+/eDYVC2/qsJElDQ0OEkKWlpa2tLZamxAhQo9EIBoOjo6MXL17csZLe3l5FUT59+lQul5l5JRaAVFWNRqN37tw5ceKEQVWRSOTw4cOFQuHbt2+iKLYCIISQLMu3b99OJpOmKAwEAgcPHszn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LAR8iyPDw8XK/Xi8Wiqqqmm5KZgBBC7e3tN27cuHbtGuPVpf7+/lAoNDs7W61WzfVKpgHSSzw3b95MpVKW3MfRaDQSiczNzVUqFRMZmQOIEOL1eq9fv3727FlL1t50URRFluX5+flqtWpWEGAOIFEUU6nUlStXLKSjy759+xwOx9zcnKZpphzGHMzhcDiTydgk9r1w4YIp7RPTAAmCkMlk2FeLf/tIEKbTab/fbwtAhJBoNGrutpNx6e7uPnTokC1eMU3T0um0DZPMkZER6wERQnw+n/FFSxpy7Nix3bt3WwwIIcRgIWnHkkwmjecfRgGx7DtuV/r6+iwGhDHev3+/bQF1dnYaH6E2CkiWZdsC2rt3r8WAHA5HW1ubbQGZcjajgOwTH/4qNko1Wlg4IA6IA+KAOKBWBUQIsfNojyliKIoRRfH9+/dut9umf3wzpoUNNQ4BAJubmwz+ic+OxefzWWlBhJD29nbug7iT5sIBcUAcEAfEAXFAHBAHxOVn+QMrmWpuPZx12gAAAABJRU5ErkJggg==",
'status': '' 'status': ''
}, attributes); }, attributes);
this.set(attrs); this.set(attrs);
......
...@@ -773,11 +773,10 @@ ...@@ -773,11 +773,10 @@
} }
#conversejs .chat-head .avatar { #conversejs .chat-head .avatar {
float: left; float: left;
margin-right: 6px;
} }
#conversejs .restore-chat, #conversejs .restore-chat,
#conversejs .chat-title { #conversejs .chat-title {
padding: 1px 0; padding: 1px 0 1px 5px;
color: white; color: white;
font-weight: bold; font-weight: bold;
line-height: 15px; line-height: 15px;
......
...@@ -170,9 +170,6 @@ a:focus { ...@@ -170,9 +170,6 @@ a:focus {
color: #ffffff; color: #ffffff;
background: rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.1);
} }
.btn-text {
font-family: "Lora", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.page-scroll .btn-circle i.animated { .page-scroll .btn-circle i.animated {
-webkit-transition-property: -webkit-transform; -webkit-transition-property: -webkit-transform;
-webkit-transition-duration: 1s; -webkit-transition-duration: 1s;
......
...@@ -6,8 +6,9 @@ ...@@ -6,8 +6,9 @@
<meta name="description" content="An Icon Font Generated By IcoMoon.io"> <meta name="description" content="An Icon Font Generated By IcoMoon.io">
<meta name="viewport" content="width=device-width"> <meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="demo-files/demo.css"> <link rel="stylesheet" href="demo-files/demo.css">
<link rel="stylesheet" href="style.css"></head> <link rel="stylesheet" href="style.css">
<body> </head>
<body id="conversejs">
<div class="bgc1 clearfix"> <div class="bgc1 clearfix">
<h1 class="mhmm mvm"><span class="fgc1">Font Name:</span> icomoon <small class="fgc1">(Glyphs:&nbsp;91)</small></h1> <h1 class="mhmm mvm"><span class="fgc1">Font Name:</span> icomoon <small class="fgc1">(Glyphs:&nbsp;91)</small></h1>
</div> </div>
...@@ -1219,4 +1220,4 @@ ...@@ -1219,4 +1220,4 @@
<script src="demo-files/demo.js"></script> <script src="demo-files/demo.js"></script>
</body> </body>
</html> </html>
\ No newline at end of file
...@@ -855,12 +855,11 @@ ...@@ -855,12 +855,11 @@
#conversejs .chat-head .avatar { #conversejs .chat-head .avatar {
float: left; float: left;
margin-right: 6px;
} }
#conversejs .restore-chat, #conversejs .restore-chat,
#conversejs .chat-title { #conversejs .chat-title {
padding: 1px 0; padding: 1px 0 1px 5px;
color: white; color: white;
font-weight: bold; font-weight: bold;
line-height: 15px; line-height: 15px;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment