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