jaroslav@238
|
1 |
<!--
|
jaroslav@238
|
2 |
|
jaroslav@238
|
3 |
The MIT License (MIT)
|
jaroslav@238
|
4 |
|
jaroslav@238
|
5 |
Copyright (C) 2013 Jaroslav Tulach <jaroslav.tulach@apidesign.org>
|
jaroslav@238
|
6 |
|
jaroslav@238
|
7 |
Permission is hereby granted, free of charge, to any person obtaining a copy
|
jaroslav@238
|
8 |
of this software and associated documentation files (the "Software"), to deal
|
jaroslav@238
|
9 |
in the Software without restriction, including without limitation the rights
|
jaroslav@238
|
10 |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
jaroslav@238
|
11 |
copies of the Software, and to permit persons to whom the Software is
|
jaroslav@238
|
12 |
furnished to do so, subject to the following conditions:
|
jaroslav@238
|
13 |
|
jaroslav@238
|
14 |
The above copyright notice and this permission notice shall be included in
|
jaroslav@238
|
15 |
all copies or substantial portions of the Software.
|
jaroslav@238
|
16 |
|
jaroslav@238
|
17 |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
jaroslav@238
|
18 |
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
jaroslav@238
|
19 |
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
jaroslav@238
|
20 |
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
jaroslav@238
|
21 |
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
jaroslav@238
|
22 |
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
jaroslav@238
|
23 |
THE SOFTWARE.
|
jaroslav@238
|
24 |
|
jaroslav@238
|
25 |
-->
|
jaroslav@238
|
26 |
<!DOCTYPE html>
|
jaroslav@238
|
27 |
<html>
|
jaroslav@238
|
28 |
<head>
|
jaroslav@238
|
29 |
<title>Chat via Jersey Server</title>
|
jaroslav@238
|
30 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
jaroslav@238
|
31 |
</head>
|
jaroslav@238
|
32 |
<body>
|
jaroslav@238
|
33 |
<div>Username:</div>
|
jaroslav@238
|
34 |
<input data-bind="value: user, valueUpdate: 'afterkeydown'"/>
|
jaroslav@238
|
35 |
<div>Message:</div>
|
jaroslav@238
|
36 |
<input data-bind="value: comment, valueUpdate: 'afterkeydown'"/>
|
jaroslav@238
|
37 |
<button data-bind="enable: sendEnabled, click: submit">Send</button>
|
jaroslav@238
|
38 |
|
jaroslav@238
|
39 |
<ul data-bind="foreach: msgs">
|
jaroslav@238
|
40 |
<li>
|
jaroslav@238
|
41 |
<b data-bind="text: user"></b>@<em data-bind="text: at"></em>
|
jaroslav@238
|
42 |
:
|
jaroslav@238
|
43 |
<span data-bind="text: comment"></span>
|
jaroslav@238
|
44 |
</li>
|
jaroslav@238
|
45 |
</ul>
|
jaroslav@238
|
46 |
|
jaroslav@238
|
47 |
<!-- ${browser.bootstrap} -->
|
jaroslav@238
|
48 |
</body>
|
jaroslav@238
|
49 |
</html>
|