36:96aec8cf1ae9
Anton Shestakov <av6@dwimlabs.net>, 2016-03-22
contacts: hash bare jid for fallback avatar background color

next change 42:76ef29f4711c
previous change 31:d0248d45562f

index.html

Permissions: -rw-r--r--

Other formats: Feeds:
0
0:52035246db0a html: add index and register with basic styles
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
<!DOCTYPE html>
0:52035246db0a html: add index and register with basic styles
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
<html lang="en">
0:52035246db0a html: add index and register with basic styles
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
<head>
0:52035246db0a html: add index and register with basic styles
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
<meta charset="utf-8">
0:52035246db0a html: add index and register with basic styles
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
<meta http-equiv="X-UA-Compatible" content="IE=edge">
0:52035246db0a html: add index and register with basic styles
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
<meta name="viewport" content="width=device-width, initial-scale=1">
0:52035246db0a html: add index and register with basic styles
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
<title>Tram IM</title>
0:52035246db0a html: add index and register with basic styles
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/uikit/2.25.0/css/uikit.min.css">
0:52035246db0a html: add index and register with basic styles
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
<link rel="stylesheet" href="/css/tram-im.css">
0:52035246db0a html: add index and register with basic styles
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
22
22:dba8124befc3 index: wire up login form
Anton Shestakov <av6@dwimlabs.net>
previous changes: 0:52035246db0a
line | diff
<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js"></script>
22:dba8124befc3 index: wire up login form
Anton Shestakov <av6@dwimlabs.net>
previous changes: 0:52035246db0a
line | diff
<script src="https://cdnjs.cloudflare.com/ajax/libs/backbone.js/1.2.3/backbone-min.js"></script>
24
24:04329aa80b7a messages: new ui element and related things
Anton Shestakov <av6@dwimlabs.net>
previous changes: 23:98a9a4b85104
line | diff
<script src="https://cdnjs.cloudflare.com/ajax/libs/rivets/0.8.1/rivets.bundled.min.js"></script>
24:04329aa80b7a messages: new ui element and related things
Anton Shestakov <av6@dwimlabs.net>
previous changes: 23:98a9a4b85104
line | diff
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.10.6/moment.min.js"></script>
0
0:52035246db0a html: add index and register with basic styles
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
<script src="https://cdnjs.cloudflare.com/ajax/libs/uikit/2.25.0/js/uikit.min.js"></script>
22
22:dba8124befc3 index: wire up login form
Anton Shestakov <av6@dwimlabs.net>
previous changes: 0:52035246db0a
line | diff
<script src="/vendor/strophejs/strophe.min.js"></script>
28
28:1efbfe153b8f index: send presence on connect, handle incoming presences, show contacts
Anton Shestakov <av6@dwimlabs.net>
previous changes: 27:f59d389adcc4
line | diff
<script src="/vendor/strophejs-plugins/vcard/strophe.vcard.js"></script>
0
0:52035246db0a html: add index and register with basic styles
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
</head>
0:52035246db0a html: add index and register with basic styles
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
<body>
0:52035246db0a html: add index and register with basic styles
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
<div class="smart-container" data-step="noscript">
0:52035246db0a html: add index and register with basic styles
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
<div class="uk-alert">
0:52035246db0a html: add index and register with basic styles
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
<p class="uk-text-center">This page needs JavaScript to work.</p>
0:52035246db0a html: add index and register with basic styles
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
<hr>
0:52035246db0a html: add index and register with basic styles
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
<small>It uses resources from code.jquery.com and cdnjs.cloudflare.com.</small>
0:52035246db0a html: add index and register with basic styles
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
</div>
0:52035246db0a html: add index and register with basic styles
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
</div>
0:52035246db0a html: add index and register with basic styles
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
0:52035246db0a html: add index and register with basic styles
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
<div class="smart-container uk-hidden" data-step="login">
22
22:dba8124befc3 index: wire up login form
Anton Shestakov <av6@dwimlabs.net>
previous changes: 0:52035246db0a
line | diff
<div class="uk-form uk-form-horizontal" data-form="connect">
0
0:52035246db0a html: add index and register with basic styles
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
<div class="uk-form-row">
0:52035246db0a html: add index and register with basic styles
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
<label for="username" class="uk-form-label">Username</label>
0:52035246db0a html: add index and register with basic styles
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
<div class="uk-form-controls">
0:52035246db0a html: add index and register with basic styles
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
<input id="username" type="text" class="uk-width-1-1" required autofocus>
0:52035246db0a html: add index and register with basic styles
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
</div>
0:52035246db0a html: add index and register with basic styles
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
</div>
0:52035246db0a html: add index and register with basic styles
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
<div class="uk-form-row">
0:52035246db0a html: add index and register with basic styles
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
<label for="password" class="uk-form-label">Password</label>
0:52035246db0a html: add index and register with basic styles
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
<div class="uk-form-controls">
0:52035246db0a html: add index and register with basic styles
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
<input id="password" type="password" class="uk-width-1-1" value="" required>
0:52035246db0a html: add index and register with basic styles
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
</div>
0:52035246db0a html: add index and register with basic styles
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
</div>
0:52035246db0a html: add index and register with basic styles
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
<div class="uk-form-row">
0:52035246db0a html: add index and register with basic styles
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
<div class="uk-form-controls">
22
22:dba8124befc3 index: wire up login form
Anton Shestakov <av6@dwimlabs.net>
previous changes: 0:52035246db0a
line | diff
<div class="uk-alert uk-alert-danger uk-hidden" data-msg="a/fail">Invalid username or password.</div>
0
0:52035246db0a html: add index and register with basic styles
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
<button type="button" class="uk-button uk-button-primary"><i class="uk-icon-sign-out"></i>&nbsp;Log in</button>
0:52035246db0a html: add index and register with basic styles
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
<a class="uk-float-right uk-button uk-button-link" href="/register.html">Register</a>
0:52035246db0a html: add index and register with basic styles
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
</div>
0:52035246db0a html: add index and register with basic styles
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
</div>
0:52035246db0a html: add index and register with basic styles
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
</div>
0:52035246db0a html: add index and register with basic styles
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
</div>
0:52035246db0a html: add index and register with basic styles
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
<script>
0:52035246db0a html: add index and register with basic styles
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
$('[data-step="noscript"]').addClass('uk-hidden');
0:52035246db0a html: add index and register with basic styles
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
$('[data-step="login"]').removeClass('uk-hidden');
0:52035246db0a html: add index and register with basic styles
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
</script>
23
23:98a9a4b85104 index: disconnect button
Anton Shestakov <av6@dwimlabs.net>
previous changes: 22:dba8124befc3
line | diff
23:98a9a4b85104 index: disconnect button
Anton Shestakov <av6@dwimlabs.net>
previous changes: 22:dba8124befc3
line | diff
<div class="uk-hidden" data-step="main">
23:98a9a4b85104 index: disconnect button
Anton Shestakov <av6@dwimlabs.net>
previous changes: 22:dba8124befc3
line | diff
<button type="button" class="uk-button" data-disconnect>
23:98a9a4b85104 index: disconnect button
Anton Shestakov <av6@dwimlabs.net>
previous changes: 22:dba8124befc3
line | diff
<i class="uk-icon-sign-out"></i>&nbsp;Log out
23:98a9a4b85104 index: disconnect button
Anton Shestakov <av6@dwimlabs.net>
previous changes: 22:dba8124befc3
line | diff
</button>
25
25:bab5df239765 index: get version info from server on connect, show it in a message log
Anton Shestakov <av6@dwimlabs.net>
previous changes: 24:04329aa80b7a
line | diff
27
27:f59d389adcc4 contacts: new ui element, contact list
Anton Shestakov <av6@dwimlabs.net>
previous changes: 25:bab5df239765
line | diff
<div data-app="calls"></div>
27:f59d389adcc4 contacts: new ui element, contact list
Anton Shestakov <av6@dwimlabs.net>
previous changes: 25:bab5df239765
line | diff
27:f59d389adcc4 contacts: new ui element, contact list
Anton Shestakov <av6@dwimlabs.net>
previous changes: 25:bab5df239765
line | diff
<div class="uk-grid">
27:f59d389adcc4 contacts: new ui element, contact list
Anton Shestakov <av6@dwimlabs.net>
previous changes: 25:bab5df239765
line | diff
<div class="uk-width-large-1-4 uk-width-medium-1-3 uk-width-small-1-2">
27:f59d389adcc4 contacts: new ui element, contact list
Anton Shestakov <av6@dwimlabs.net>
previous changes: 25:bab5df239765
line | diff
<ul class="uk-list uk-list-line contact-list" data-app="contacts"></ul>
27:f59d389adcc4 contacts: new ui element, contact list
Anton Shestakov <av6@dwimlabs.net>
previous changes: 25:bab5df239765
line | diff
</div>
27:f59d389adcc4 contacts: new ui element, contact list
Anton Shestakov <av6@dwimlabs.net>
previous changes: 25:bab5df239765
line | diff
<div class="uk-width-large-3-4 uk-width-medium-2-3 uk-width-small-1-2">
27:f59d389adcc4 contacts: new ui element, contact list
Anton Shestakov <av6@dwimlabs.net>
previous changes: 25:bab5df239765
line | diff
<div class="log" data-app="log"></div>
27:f59d389adcc4 contacts: new ui element, contact list
Anton Shestakov <av6@dwimlabs.net>
previous changes: 25:bab5df239765
line | diff
</div>
27:f59d389adcc4 contacts: new ui element, contact list
Anton Shestakov <av6@dwimlabs.net>
previous changes: 25:bab5df239765
line | diff
</div>
23
23:98a9a4b85104 index: disconnect button
Anton Shestakov <av6@dwimlabs.net>
previous changes: 22:dba8124befc3
line | diff
</div>
24
24:04329aa80b7a messages: new ui element and related things
Anton Shestakov <av6@dwimlabs.net>
previous changes: 23:98a9a4b85104
line | diff
31
31:d0248d45562f contacts: add avatars and fallback option (background color from hashed jid)
Anton Shestakov <av6@dwimlabs.net>
previous changes: 28:1efbfe153b8f
line | diff
<script type="text/template" id="avatar-template">
31:d0248d45562f contacts: add avatars and fallback option (background color from hashed jid)
Anton Shestakov <av6@dwimlabs.net>
previous changes: 28:1efbfe153b8f
line | diff
<img class="avatar" rv-if="model:d/avatar" rv-src="model:d/avatar">
31:d0248d45562f contacts: add avatars and fallback option (background color from hashed jid)
Anton Shestakov <av6@dwimlabs.net>
previous changes: 28:1efbfe153b8f
line | diff
<div class="avatar" rv-unless="model:d/avatar" rv-text="model:d/handle | first-letter" rv-style="view.getHashedColors < model:jid"></div>
31:d0248d45562f contacts: add avatars and fallback option (background color from hashed jid)
Anton Shestakov <av6@dwimlabs.net>
previous changes: 28:1efbfe153b8f
line | diff
</script>
24
24:04329aa80b7a messages: new ui element and related things
Anton Shestakov <av6@dwimlabs.net>
previous changes: 23:98a9a4b85104
line | diff
<script type="text/template" id="message-template">
24:04329aa80b7a messages: new ui element and related things
Anton Shestakov <av6@dwimlabs.net>
previous changes: 23:98a9a4b85104
line | diff
<div class="splitter" rv-if="model:d/split"></div>
31
31:d0248d45562f contacts: add avatars and fallback option (background color from hashed jid)
Anton Shestakov <av6@dwimlabs.net>
previous changes: 28:1efbfe153b8f
line | diff
<div class="column avatar-column" rv-class-uk-invisible="model:d/fold"></div>
24
24:04329aa80b7a messages: new ui element and related things
Anton Shestakov <av6@dwimlabs.net>
previous changes: 23:98a9a4b85104
line | diff
<div class="column uk-width-1-1">
24:04329aa80b7a messages: new ui element and related things
Anton Shestakov <av6@dwimlabs.net>
previous changes: 23:98a9a4b85104
line | diff
<div style="padding-top: 4px;" rv-hide="model:d/fold">
24:04329aa80b7a messages: new ui element and related things
Anton Shestakov <av6@dwimlabs.net>
previous changes: 23:98a9a4b85104
line | diff
<strong rv-text="view.getHandle < model:contact:d/handle model:from"></strong>
24:04329aa80b7a messages: new ui element and related things
Anton Shestakov <av6@dwimlabs.net>
previous changes: 23:98a9a4b85104
line | diff
<time class="stamp uk-text-muted" rv-datetime="model:d/mstamp | iso-date" rv-title="model:d/mstamp | format-date 'HH:mm:ss'" rv-text="model:d/mstamp | from-now"></time>
24:04329aa80b7a messages: new ui element and related things
Anton Shestakov <av6@dwimlabs.net>
previous changes: 23:98a9a4b85104
line | diff
</div>
24:04329aa80b7a messages: new ui element and related things
Anton Shestakov <av6@dwimlabs.net>
previous changes: 23:98a9a4b85104
line | diff
<div rv-data-id="model:id" rv-class="model:cls" rv-text="model:text"></div>
24:04329aa80b7a messages: new ui element and related things
Anton Shestakov <av6@dwimlabs.net>
previous changes: 23:98a9a4b85104
line | diff
</div>
24:04329aa80b7a messages: new ui element and related things
Anton Shestakov <av6@dwimlabs.net>
previous changes: 23:98a9a4b85104
line | diff
</script>
27
27:f59d389adcc4 contacts: new ui element, contact list
Anton Shestakov <av6@dwimlabs.net>
previous changes: 25:bab5df239765
line | diff
<script type="text/template" id="contact-template">
27:f59d389adcc4 contacts: new ui element, contact list
Anton Shestakov <av6@dwimlabs.net>
previous changes: 25:bab5df239765
line | diff
<div class="column avatar-column">
27:f59d389adcc4 contacts: new ui element, contact list
Anton Shestakov <av6@dwimlabs.net>
previous changes: 25:bab5df239765
line | diff
<div class="status-pip" rv-title="model:d/pip" rv-style="view.getPipStyle < model:d/pip"></div>
27:f59d389adcc4 contacts: new ui element, contact list
Anton Shestakov <av6@dwimlabs.net>
previous changes: 25:bab5df239765
line | diff
</div>
27:f59d389adcc4 contacts: new ui element, contact list
Anton Shestakov <av6@dwimlabs.net>
previous changes: 25:bab5df239765
line | diff
<div class="column uk-width-1-1">
27:f59d389adcc4 contacts: new ui element, contact list
Anton Shestakov <av6@dwimlabs.net>
previous changes: 25:bab5df239765
line | diff
<div class="uk-text-bold" rv-text="model:d/handle"></div>
27:f59d389adcc4 contacts: new ui element, contact list
Anton Shestakov <av6@dwimlabs.net>
previous changes: 25:bab5df239765
line | diff
<div class="uk-text-nowrap">
27:f59d389adcc4 contacts: new ui element, contact list
Anton Shestakov <av6@dwimlabs.net>
previous changes: 25:bab5df239765
line | diff
<span rv-text="model:status"></span>
27:f59d389adcc4 contacts: new ui element, contact list
Anton Shestakov <av6@dwimlabs.net>
previous changes: 25:bab5df239765
line | diff
<span rv-hide="model:type | eq 'self'" rv-text="model:chatstate | only 'composing'"></span>
27:f59d389adcc4 contacts: new ui element, contact list
Anton Shestakov <av6@dwimlabs.net>
previous changes: 25:bab5df239765
line | diff
</div>
27:f59d389adcc4 contacts: new ui element, contact list
Anton Shestakov <av6@dwimlabs.net>
previous changes: 25:bab5df239765
line | diff
</div>
27:f59d389adcc4 contacts: new ui element, contact list
Anton Shestakov <av6@dwimlabs.net>
previous changes: 25:bab5df239765
line | diff
</script>
22
22:dba8124befc3 index: wire up login form
Anton Shestakov <av6@dwimlabs.net>
previous changes: 0:52035246db0a
line | diff
<script src='/js/tram.js'></script>
24
24:04329aa80b7a messages: new ui element and related things
Anton Shestakov <av6@dwimlabs.net>
previous changes: 23:98a9a4b85104
line | diff
<script src='/js/rivets.js'></script>
22
22:dba8124befc3 index: wire up login form
Anton Shestakov <av6@dwimlabs.net>
previous changes: 0:52035246db0a
line | diff
<script src='/js/validation.js'></script>
22:dba8124befc3 index: wire up login form
Anton Shestakov <av6@dwimlabs.net>
previous changes: 0:52035246db0a
line | diff
<script src='/js/xmpp.js'></script>
27
27:f59d389adcc4 contacts: new ui element, contact list
Anton Shestakov <av6@dwimlabs.net>
previous changes: 25:bab5df239765
line | diff
<script src='/js/contacts.js'></script>
24
24:04329aa80b7a messages: new ui element and related things
Anton Shestakov <av6@dwimlabs.net>
previous changes: 23:98a9a4b85104
line | diff
<script src='/js/messages.js'></script>
22
22:dba8124befc3 index: wire up login form
Anton Shestakov <av6@dwimlabs.net>
previous changes: 0:52035246db0a
line | diff
<script src='/config.js'></script>
22:dba8124befc3 index: wire up login form
Anton Shestakov <av6@dwimlabs.net>
previous changes: 0:52035246db0a
line | diff
<script src='/js/index.js'></script>
0
0:52035246db0a html: add index and register with basic styles
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
</body>
0:52035246db0a html: add index and register with basic styles
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
</html>