Skip to content
Newer
Older
100644 102 lines (89 sloc) 2.33 KB
1701c40 @hiratara Created templates.
authored Dec 31, 2010
1 <!doctype html>
14337f5 @hiratara Initial commit.
authored Dec 5, 2010
2 <html>
3 <head>
1701c40 @hiratara Created templates.
authored Dec 31, 2010
4 <title>お茶処 「鱈」</title>
8c45b02 @hiratara Added the room part into the URL.
authored Dec 28, 2010
5 <script src="/js/jquery-1.4.4.min.js"></script>
70807ec @hiratara Used JSDeffered.
authored Jan 1, 2011
6 <script src="/js/jsdeferred.jquery.20101220.js"></script>
14337f5 @hiratara Initial commit.
authored Dec 5, 2010
7 <script src='/_ah/channel/jsapi'></script>
8c45b02 @hiratara Added the room part into the URL.
authored Dec 28, 2010
8 <script src='/js/main.js'></script>
9 <script type="text/javascript">
10 jQuery(function ($) {
87fc214 @hiratara Stop saying until /set_name finishes.
authored Jan 2, 2011
11 inputsForSaying = $("#say :input");
12 inputsForSaying.attr('disabled', 'disabled');
13
88422f2 @hiratara Added escaping for JS.
authored Dec 31, 2010
14 var room = new taracafe.Room({{room_id|addslashes}});
8c45b02 @hiratara Added the room part into the URL.
authored Dec 28, 2010
15 room.run();
a26cba5 @hiratara Added the name entry form.
authored Dec 30, 2010
16 room.onopen = function () {
87fc214 @hiratara Stop saying until /set_name finishes.
authored Jan 1, 2011
17 room.setNickname("{{nickname|addslashes}}").next(function () {
18 inputsForSaying.removeAttr('disabled');
19 });
a26cba5 @hiratara Added the name entry form.
authored Dec 30, 2010
20 };
8c45b02 @hiratara Added the room part into the URL.
authored Dec 28, 2010
21 });
22 </script>
1701c40 @hiratara Created templates.
authored Dec 31, 2010
23
4bc35fa @hiratara Added codes to check duplications of the clients.
authored Dec 30, 2010
24 <style type="text/css">
1701c40 @hiratara Created templates.
authored Dec 31, 2010
25 body {
26 color: #FFF;
27 background-color: #000;
28 }
29 a:link {color: #ff0;}
30 a:visited {color: #880;}
31 a:active {color: #f80;}
32 a:hover {color: #8f0;}
33 .member-name {color: #0ff;}
4bc35fa @hiratara Added codes to check duplications of the clients.
authored Dec 30, 2010
34 .error {
35 color: #f00;
36 }
1701c40 @hiratara Created templates.
authored Dec 31, 2010
37 #main-row-container {
38 width: 100%;
39 margin-right : -160px;
40 float: left;
41 }
42 #main-row {
43 margin-right : 160px;
44 }
45 #member-row {
46 width: 160px;
47 float: right;
48 }
4bc35fa @hiratara Added codes to check duplications of the clients.
authored Dec 30, 2010
49 </style>
14337f5 @hiratara Initial commit.
authored Dec 5, 2010
50 </head>
1701c40 @hiratara Created templates.
authored Dec 31, 2010
51 <body>
52
53 <div id="main-row-container"><div id="main-row">
54 名前:
55 <input type="text" id="nickname" value="{{nickname|escape}}"></input><br>
56 <form id="say">
57 <input type="text" id="saying"size="30"></input><br>
58 <input type="submit" name="submit" value="発言"></input>
59 <input type="reset" value="リセット"></input>
60 <br>
61 </form>
62
63 <form action="{{room_id|escape}}/exit" method="get">
64 <input type="submit" name="submit" value="退室">
65 </form>
66
67 <div id="log-cell">
68 <h2 style="text-align: center; font-weight: bold;">
69 <span style="color: #0f0; font-size: x-large;">
70 お茶処「鱈」
71 </span>
72 <span style="color: #FCC; font-size: medium;">
73 room{{room_id|escape}}
74 </span>
75 </h2>
76 <hr>
77
78 <div id="logs"></div>
79
80 <a href="{{room_id|escape}}/exit">退室する</a>
81
82 <div style="float: right;">
83 Produced by <a href="http://d.hatena.ne.jp/hiratara/">hiratara</a>
84 </div>
85
86 </div>
87 </div></div>
88
89 <div id="member-row">
90 <h2 style="text-align: center; font-size: small; color: #0ff; font-weight: bold; white-space: nowrap;">
91 ログインリスト
92 </h2>
93 <hr>
94 <div id="members"></div>
95 <hr>
96 </div>
97
98 <div style="clear: both;"></div>
99
14337f5 @hiratara Initial commit.
authored Dec 5, 2010
100 </body>
101 </html>
Something went wrong with that request. Please try again.