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