60:bbab4c40a2ba
Anton Shestakov <av6@dwimlabs.net>, 2016-03-28
webrtc: add Tram.WebRTCInterface, it will be glued to the rest of code later

next change 61:fbdf2a0985d1
previous change 59:f3c2d85d0a35

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>
51
51:12199bfb20eb onConnected: get roster after connect
Anton Shestakov <av6@dwimlabs.net>
previous changes: 50:c47569b938dd
line | diff
<script src="/vendor/strophejs-plugins/roster/strophe.roster.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>
59
59:f3c2d85d0a35 index: add webrtc-adapter.js, yet unused
Anton Shestakov <av6@dwimlabs.net>
previous changes: 58:7326ef07b362
line | diff
<script src="/vendor/webrtc-adapter-1.0.4.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">
47
47:9caed822ea2c index: redo form validation using rivets
Anton Shestakov <av6@dwimlabs.net>
previous changes: 45:3e09cda9a660
line | diff
<input id="username" type="text" class="uk-width-1-1" required autofocus
47:9caed822ea2c index: redo form validation using rivets
Anton Shestakov <av6@dwimlabs.net>
previous changes: 45:3e09cda9a660
line | diff
rv-value="data:username" rv-class-uk-form-danger="data:username-errors">
47:9caed822ea2c index: redo form validation using rivets
Anton Shestakov <av6@dwimlabs.net>
previous changes: 45:3e09cda9a660
line | diff
<div class="uk-text-danger" rv-each-error="data:username-errors">{ error }</div>
0
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">
47
47:9caed822ea2c index: redo form validation using rivets
Anton Shestakov <av6@dwimlabs.net>
previous changes: 45:3e09cda9a660
line | diff
<input id="password" type="password" class="uk-width-1-1" required
47:9caed822ea2c index: redo form validation using rivets
Anton Shestakov <av6@dwimlabs.net>
previous changes: 45:3e09cda9a660
line | diff
rv-value="data:password" rv-class-uk-form-danger="data:password-errors">
47:9caed822ea2c index: redo form validation using rivets
Anton Shestakov <av6@dwimlabs.net>
previous changes: 45:3e09cda9a660
line | diff
<div class="uk-text-danger" rv-each-error="data:password-errors">{ error }</div>
0
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">
47
47:9caed822ea2c index: redo form validation using rivets
Anton Shestakov <av6@dwimlabs.net>
previous changes: 45:3e09cda9a660
line | diff
<div class="uk-alert uk-alert-danger" rv-each-error="data:auth-errors">{ error }</div>
47:9caed822ea2c index: redo form validation using rivets
Anton Shestakov <av6@dwimlabs.net>
previous changes: 45:3e09cda9a660
line | diff
<button type="button" class="uk-button uk-button-primary" rv-on-click="connect">
47:9caed822ea2c index: redo form validation using rivets
Anton Shestakov <av6@dwimlabs.net>
previous changes: 45:3e09cda9a660
line | diff
<i class="uk-icon-sign-in"></i>&nbsp;Log in
47:9caed822ea2c index: redo form validation using rivets
Anton Shestakov <av6@dwimlabs.net>
previous changes: 45:3e09cda9a660
line | diff
</button>
0
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
</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">
50
50:c47569b938dd css: improve contact list borders (between contacts and on the right)
Anton Shestakov <av6@dwimlabs.net>
previous changes: 47:9caed822ea2c
line | diff
<div class="uk-width-large-1-4 uk-width-medium-1-3 uk-width-small-1-2 contact-list-block">
50:c47569b938dd css: improve contact list borders (between contacts and on the right)
Anton Shestakov <av6@dwimlabs.net>
previous changes: 47:9caed822ea2c
line | diff
<ul class="uk-list contact-list" data-app="contacts"></ul>
52
52:f77c8325d168 contacts: input+button for adding contacts to roster
Anton Shestakov <av6@dwimlabs.net>
previous changes: 51:12199bfb20eb
line | diff
<div class="uk-form input-group">
52:f77c8325d168 contacts: input+button for adding contacts to roster
Anton Shestakov <av6@dwimlabs.net>
previous changes: 51:12199bfb20eb
line | diff
<input id="new-contact" class="uk-width-3-4" type="text" value="" required>
52:f77c8325d168 contacts: input+button for adding contacts to roster
Anton Shestakov <av6@dwimlabs.net>
previous changes: 51:12199bfb20eb
line | diff
<span class="input-group-button">
52:f77c8325d168 contacts: input+button for adding contacts to roster
Anton Shestakov <av6@dwimlabs.net>
previous changes: 51:12199bfb20eb
line | diff
<button type="button" class="uk-button uk-button-success" data-add-button>
52:f77c8325d168 contacts: input+button for adding contacts to roster
Anton Shestakov <av6@dwimlabs.net>
previous changes: 51:12199bfb20eb
line | diff
<i class="uk-icon-plus"></i>
52:f77c8325d168 contacts: input+button for adding contacts to roster
Anton Shestakov <av6@dwimlabs.net>
previous changes: 51:12199bfb20eb
line | diff
</button>
52:f77c8325d168 contacts: input+button for adding contacts to roster
Anton Shestakov <av6@dwimlabs.net>
previous changes: 51:12199bfb20eb
line | diff
</span>
52:f77c8325d168 contacts: input+button for adding contacts to roster
Anton Shestakov <av6@dwimlabs.net>
previous changes: 51:12199bfb20eb
line | diff
</div>
27
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
58
58:7326ef07b362 calls: new ui element, yet unused
Anton Shestakov <av6@dwimlabs.net>
previous changes: 55:8959cd40c75d
line | diff
<script type="text/template" id="video-block-template">
58:7326ef07b362 calls: new ui element, yet unused
Anton Shestakov <av6@dwimlabs.net>
previous changes: 55:8959cd40c75d
line | diff
<video class="remote" rv-src="model:remote/stream/url" autoplay></video>
58:7326ef07b362 calls: new ui element, yet unused
Anton Shestakov <av6@dwimlabs.net>
previous changes: 55:8959cd40c75d
line | diff
<video class="local" rv-src="model:local/stream/url" autoplay muted></video>
58:7326ef07b362 calls: new ui element, yet unused
Anton Shestakov <av6@dwimlabs.net>
previous changes: 55:8959cd40c75d
line | diff
<div class="buttons uk-text-center">
58:7326ef07b362 calls: new ui element, yet unused
Anton Shestakov <av6@dwimlabs.net>
previous changes: 55:8959cd40c75d
line | diff
<button type="button" class="uk-button uk-button-success autofade" data-mute-cam
58:7326ef07b362 calls: new ui element, yet unused
Anton Shestakov <av6@dwimlabs.net>
previous changes: 55:8959cd40c75d
line | diff
rv-if="model:local/stream" rv-hide="model:local/video/muted">
58:7326ef07b362 calls: new ui element, yet unused
Anton Shestakov <av6@dwimlabs.net>
previous changes: 55:8959cd40c75d
line | diff
<i class="uk-icon-eye"></i>
58:7326ef07b362 calls: new ui element, yet unused
Anton Shestakov <av6@dwimlabs.net>
previous changes: 55:8959cd40c75d
line | diff
</button>
58:7326ef07b362 calls: new ui element, yet unused
Anton Shestakov <av6@dwimlabs.net>
previous changes: 55:8959cd40c75d
line | diff
<button type="button" class="uk-button uk-button-danger" data-unmute-cam
58:7326ef07b362 calls: new ui element, yet unused
Anton Shestakov <av6@dwimlabs.net>
previous changes: 55:8959cd40c75d
line | diff
rv-if="model:local/stream" rv-show="model:local/video/muted">
58:7326ef07b362 calls: new ui element, yet unused
Anton Shestakov <av6@dwimlabs.net>
previous changes: 55:8959cd40c75d
line | diff
<i class="uk-icon-eye-slash"></i>
58:7326ef07b362 calls: new ui element, yet unused
Anton Shestakov <av6@dwimlabs.net>
previous changes: 55:8959cd40c75d
line | diff
</button>
58:7326ef07b362 calls: new ui element, yet unused
Anton Shestakov <av6@dwimlabs.net>
previous changes: 55:8959cd40c75d
line | diff
<button type="button" class="uk-button uk-button-success autofade" data-mute-mic
58:7326ef07b362 calls: new ui element, yet unused
Anton Shestakov <av6@dwimlabs.net>
previous changes: 55:8959cd40c75d
line | diff
rv-if="model:local/stream" rv-hide="model:local/audio/muted">
58:7326ef07b362 calls: new ui element, yet unused
Anton Shestakov <av6@dwimlabs.net>
previous changes: 55:8959cd40c75d
line | diff
<i class="uk-icon-microphone"></i>
58:7326ef07b362 calls: new ui element, yet unused
Anton Shestakov <av6@dwimlabs.net>
previous changes: 55:8959cd40c75d
line | diff
</button>
58:7326ef07b362 calls: new ui element, yet unused
Anton Shestakov <av6@dwimlabs.net>
previous changes: 55:8959cd40c75d
line | diff
<button type="button" class="uk-button uk-button-danger" data-unmute-mic
58:7326ef07b362 calls: new ui element, yet unused
Anton Shestakov <av6@dwimlabs.net>
previous changes: 55:8959cd40c75d
line | diff
rv-if="model:local/stream" rv-show="model:local/audio/muted">
58:7326ef07b362 calls: new ui element, yet unused
Anton Shestakov <av6@dwimlabs.net>
previous changes: 55:8959cd40c75d
line | diff
<i class="uk-icon-microphone-slash"></i>
58:7326ef07b362 calls: new ui element, yet unused
Anton Shestakov <av6@dwimlabs.net>
previous changes: 55:8959cd40c75d
line | diff
</button>
58:7326ef07b362 calls: new ui element, yet unused
Anton Shestakov <av6@dwimlabs.net>
previous changes: 55:8959cd40c75d
line | diff
<button type="button" class="uk-button uk-button-success autofade" data-mute-audio
58:7326ef07b362 calls: new ui element, yet unused
Anton Shestakov <av6@dwimlabs.net>
previous changes: 55:8959cd40c75d
line | diff
rv-if="model:remote/stream" rv-hide="model:remote/audio/muted">
58:7326ef07b362 calls: new ui element, yet unused
Anton Shestakov <av6@dwimlabs.net>
previous changes: 55:8959cd40c75d
line | diff
<i class="uk-icon-volume-up"></i>
58:7326ef07b362 calls: new ui element, yet unused
Anton Shestakov <av6@dwimlabs.net>
previous changes: 55:8959cd40c75d
line | diff
</button>
58:7326ef07b362 calls: new ui element, yet unused
Anton Shestakov <av6@dwimlabs.net>
previous changes: 55:8959cd40c75d
line | diff
<button type="button" class="uk-button uk-button-danger" data-unmute-audio
58:7326ef07b362 calls: new ui element, yet unused
Anton Shestakov <av6@dwimlabs.net>
previous changes: 55:8959cd40c75d
line | diff
rv-if="model:remote/stream" rv-show="model:remote/audio/muted">
58:7326ef07b362 calls: new ui element, yet unused
Anton Shestakov <av6@dwimlabs.net>
previous changes: 55:8959cd40c75d
line | diff
<i class="uk-icon-volume-off"></i>
58:7326ef07b362 calls: new ui element, yet unused
Anton Shestakov <av6@dwimlabs.net>
previous changes: 55:8959cd40c75d
line | diff
</button>
58:7326ef07b362 calls: new ui element, yet unused
Anton Shestakov <av6@dwimlabs.net>
previous changes: 55:8959cd40c75d
line | diff
</div>
58:7326ef07b362 calls: new ui element, yet unused
Anton Shestakov <av6@dwimlabs.net>
previous changes: 55:8959cd40c75d
line | diff
</script>
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">
45
45:3e09cda9a660 contacts: use rivets more, don't spread model attributes
Anton Shestakov <av6@dwimlabs.net>
previous changes: 44:3f0465a92b8f
line | diff
<div class="avatar" rv-unless="model:d/avatar" rv-text="model:d/handle | first-letter" rv-style="model:bjid | dumb-hash | fn view.getColors"></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
</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">
45
45:3e09cda9a660 contacts: use rivets more, don't spread model attributes
Anton Shestakov <av6@dwimlabs.net>
previous changes: 44:3f0465a92b8f
line | diff
<div class="status-pip" rv-title="model:show" rv-style="model:show | fn view.getPipColor"></div>
27
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>
55
55:8959cd40c75d contacts: dropdown with a remove button
Anton Shestakov <av6@dwimlabs.net>
previous changes: 54:bb83c44ae4ac
line | diff
<div class="column uk-text-nowrap">
55:8959cd40c75d contacts: dropdown with a remove button
Anton Shestakov <av6@dwimlabs.net>
previous changes: 54:bb83c44ae4ac
line | diff
<div class="uk-button-dropdown" data-uk-dropdown="{mode:'click',pos:'bottom-right'}" rv-if="model:d/actions | has 'remove'">
55:8959cd40c75d contacts: dropdown with a remove button
Anton Shestakov <av6@dwimlabs.net>
previous changes: 54:bb83c44ae4ac
line | diff
<button class="uk-button"><i class="uk-icon-caret-down"></i></button>
55:8959cd40c75d contacts: dropdown with a remove button
Anton Shestakov <av6@dwimlabs.net>
previous changes: 54:bb83c44ae4ac
line | diff
<div class="uk-dropdown uk-dropdown-small">
55:8959cd40c75d contacts: dropdown with a remove button
Anton Shestakov <av6@dwimlabs.net>
previous changes: 54:bb83c44ae4ac
line | diff
<ul class="uk-nav uk-nav-dropdown">
55:8959cd40c75d contacts: dropdown with a remove button
Anton Shestakov <av6@dwimlabs.net>
previous changes: 54:bb83c44ae4ac
line | diff
<li><a data-remove rv-if="model:d/actions | has 'remove'">Remove</a></li>
55:8959cd40c75d contacts: dropdown with a remove button
Anton Shestakov <av6@dwimlabs.net>
previous changes: 54:bb83c44ae4ac
line | diff
</ul>
55:8959cd40c75d contacts: dropdown with a remove button
Anton Shestakov <av6@dwimlabs.net>
previous changes: 54:bb83c44ae4ac
line | diff
</div>
55:8959cd40c75d contacts: dropdown with a remove button
Anton Shestakov <av6@dwimlabs.net>
previous changes: 54:bb83c44ae4ac
line | diff
</div>
55:8959cd40c75d contacts: dropdown with a remove button
Anton Shestakov <av6@dwimlabs.net>
previous changes: 54:bb83c44ae4ac
line | diff
</div>
54
54:bb83c44ae4ac contacts: show authorize/unauthorize buttons for new contacts
Anton Shestakov <av6@dwimlabs.net>
previous changes: 53:efe3afb026a6
line | diff
<div class="uk-text-center">
54:bb83c44ae4ac contacts: show authorize/unauthorize buttons for new contacts
Anton Shestakov <av6@dwimlabs.net>
previous changes: 53:efe3afb026a6
line | diff
<button type="button" class="uk-button uk-button-success" data-authorize rv-if="model:d/actions | has 'authorize'">
54:bb83c44ae4ac contacts: show authorize/unauthorize buttons for new contacts
Anton Shestakov <av6@dwimlabs.net>
previous changes: 53:efe3afb026a6
line | diff
<i class="uk-icon-plus"></i> Authorize
54:bb83c44ae4ac contacts: show authorize/unauthorize buttons for new contacts
Anton Shestakov <av6@dwimlabs.net>
previous changes: 53:efe3afb026a6
line | diff
</button>
54:bb83c44ae4ac contacts: show authorize/unauthorize buttons for new contacts
Anton Shestakov <av6@dwimlabs.net>
previous changes: 53:efe3afb026a6
line | diff
<button type="button" class="uk-button uk-button-danger" data-unauthorize rv-if="model:d/actions | has 'unauthorize'">
54:bb83c44ae4ac contacts: show authorize/unauthorize buttons for new contacts
Anton Shestakov <av6@dwimlabs.net>
previous changes: 53:efe3afb026a6
line | diff
<i class="uk-icon-times"></i> Decline
54:bb83c44ae4ac contacts: show authorize/unauthorize buttons for new contacts
Anton Shestakov <av6@dwimlabs.net>
previous changes: 53:efe3afb026a6
line | diff
</button>
54:bb83c44ae4ac contacts: show authorize/unauthorize buttons for new contacts
Anton Shestakov <av6@dwimlabs.net>
previous changes: 53:efe3afb026a6
line | diff
</div>
27
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/xmpp.js'></script>
60
60:bbab4c40a2ba webrtc: add Tram.WebRTCInterface, it will be glued to the rest of code later
Anton Shestakov <av6@dwimlabs.net>
previous changes: 59:f3c2d85d0a35
line | diff
<script src='/js/webrtc.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>
58
58:7326ef07b362 calls: new ui element, yet unused
Anton Shestakov <av6@dwimlabs.net>
previous changes: 55:8959cd40c75d
line | diff
<script src='/js/calls.js'></script>
43
43:95e2cabea44b favicon: new ui element to display status (and incoming events in the future)
Anton Shestakov <av6@dwimlabs.net>
previous changes: 42:76ef29f4711c
line | diff
<script src='/js/favicon.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>
53
53:efe3afb026a6 index: only show login form after rivets init
Anton Shestakov <av6@dwimlabs.net>
previous changes: 52:f77c8325d168
line | diff
<script>
53:efe3afb026a6 index: only show login form after rivets init
Anton Shestakov <av6@dwimlabs.net>
previous changes: 52:f77c8325d168
line | diff
$('[data-step="login"]').removeClass('uk-hidden');
53:efe3afb026a6 index: only show login form after rivets init
Anton Shestakov <av6@dwimlabs.net>
previous changes: 52:f77c8325d168
line | diff
</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>