chat/client/src/main/webapp/pages/index.html
branchNewChat
changeset 238 a0f15cb8c730
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/chat/client/src/main/webapp/pages/index.html	Fri Apr 22 05:56:47 2016 +0200
     1.3 @@ -0,0 +1,49 @@
     1.4 +<!--
     1.5 +
     1.6 +    The MIT License (MIT)
     1.7 +
     1.8 +    Copyright (C) 2013 Jaroslav Tulach <jaroslav.tulach@apidesign.org>
     1.9 +
    1.10 +    Permission is hereby granted, free of charge, to any person obtaining a copy
    1.11 +    of this software and associated documentation files (the "Software"), to deal
    1.12 +    in the Software without restriction, including without limitation the rights
    1.13 +    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    1.14 +    copies of the Software, and to permit persons to whom the Software is
    1.15 +    furnished to do so, subject to the following conditions:
    1.16 +
    1.17 +    The above copyright notice and this permission notice shall be included in
    1.18 +    all copies or substantial portions of the Software.
    1.19 +
    1.20 +    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    1.21 +    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    1.22 +    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    1.23 +    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    1.24 +    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    1.25 +    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    1.26 +    THE SOFTWARE.
    1.27 +
    1.28 +-->
    1.29 +<!DOCTYPE html>
    1.30 +<html>
    1.31 +    <head>
    1.32 +        <title>Chat via Jersey Server</title>
    1.33 +        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    1.34 +    </head>
    1.35 +    <body>
    1.36 +        <div>Username:</div>
    1.37 +        <input data-bind="value: user, valueUpdate: 'afterkeydown'"/>
    1.38 +        <div>Message:</div>
    1.39 +        <input data-bind="value: comment, valueUpdate: 'afterkeydown'"/>
    1.40 +        <button data-bind="enable: sendEnabled, click: submit">Send</button>
    1.41 +        
    1.42 +        <ul data-bind="foreach: msgs">
    1.43 +            <li>
    1.44 +                <b data-bind="text: user"></b>@<em data-bind="text: at"></em>
    1.45 +                :
    1.46 +                <span data-bind="text: comment"></span>
    1.47 +            </li>
    1.48 +        </ul>
    1.49 +                
    1.50 +<!-- ${browser.bootstrap} -->
    1.51 +    </body>
    1.52 +</html>