-
Notifications
You must be signed in to change notification settings - Fork 0
/
banana.php
201 lines (150 loc) · 7.06 KB
/
banana.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" dir="ltr" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="./assests/stylesheets/banana.css" media="screen" title="Normal" />
<!-- the APE JavaScript Frame Work -->
<script type="text/javascript" language="javascript" src="./ape-jsf/Build/uncompressed/apeClientJS.js"></script>
<!-- the jquery core -->
<!-- accodian css -->
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<!-- accodian jquery -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<!-- the jquery script for the agApeClient -->
<script type="text/javaScript" src="./assests/javascripts/banana.js"></script>
</head>
<body>
<div id="container">
<div id="inner-container">
<!--
<div id="header">
<div id="logo">
<a href="#" title="BANANA: A Tool to train APE <img src="http://static.weelya.org/weelya_ape/imgs/empty.gif" alt="Banana Ape Training Tool" class="logo_img" /></a>
</div>
<div id="tool_bar">
</div>
<div id="tools">
</div>
</div> <!-- end-header -->
-->
<div id="main">
<div id="content">
<div id="tabs">
<ul>
<li><a href="#overview"><span>Overview</span></a></li>
<li><a href="#options"><span>Options</span></a></li>
<li><a href="#load"><span>Load / Start / Exit</span></a></li>
<li><a href="#channels"><span>Channel</span></a></li>
<li><a href="#pipe"><span>Pipes</span></a></li>
<li><a href="#talk"><span>Talk</span></a></li>
</ul>
<div id="overview">
<p>
Banana is a tool to train Ape. Banana can be used to test all functionality of Ape. I wrote banana in order to examine and test various idea which I want to implement.
</p>
</div>
<div id="options">
<p>
Set your Options Here. The jquery engine will read and act accordingly.
</p>
<p>
<label><strong>UserName:</strong></label>
<input type="text" id="username" name="username" value="" />
<br />
Ape will start with this user name.
</p>
<p>
<label><strong>Role:</strong></label>
<input type="text" id="role" name="role" value="" />
<br />
Ape will start with this role.
</p>
</div>
<div id="load">
<p>
Connect is event is fired on load and Disconnect is fired on exit. Test Ape Client connect / disconnect to APE Server
</p>
<span id="ape_load"><a class="button" href="#" onclick="this.blur();"><span>LOAD</span></a></span>
<span id="ape_start"><a class="button" href="#" onclick="this.blur();"><span>START</span></a></span>
<span id="ape_exit"><a class="button" href="#" onclick="this.blur();"><span>EXIT</span></a></span>
<br />
<br />
</div>
<div id="channels">
<p>
Join / Left one or more channel(s)
</p>
<p>
<span id="channel_status"><label><strong>Channel Status</strong></label></span>
</p>
<p>
<label><strong>Channel:</strong></label>
<input type="text" name="channel" id="channel_name" value="" />
<br />
Ape will join/left this channel.
<br />
<span id="channel_join"><a class="button" href="#" onclick="this.blur();"><span>Join</span></a></span>
<span id="channel_leave"><a class="button" href="#" onclick="this.blur();"><span>Leave</span></a></span>
</p>
</div>
<div id="pipe">
<p>
Examine all pipes object returned by Ape.
</p>
<p>
<label><strong>pubid:</strong></label>
<input type="text" name="pipe_pubid" id="pipe_pubid" value="" />
<br />
<span id="pipe_dump"><a class="button" href="#" onclick="this.blur();"><span>Dump</span></a></span>
</p>
<br />
<p>
<span id="pipe_dump_all"><a class="button" href="#" onclick="this.blur();"><span>Dump Pipe(s) in console</span></a></span>
</p>
<br />
<br />
</div>
<div id="talk">
<p>
Talk to a user with his pubid and examine all user object returned by Ape.
</p>
<p>
<label><strong>user:</strong></label>
<input type="text" name="talk_user" id="talk_user" value="" />
<br />
Send user a message at their pubid.
<br />
<label><strong>Message:</strong></label>
<input type="text" name="talk_user_message" id = "talk_user_message" value="" />
<br />
<span id="user_send"><a class="button" href="#" onclick="this.blur();"><span>Send</span></a></span>
</p>
<br />
<p>
Talk to a channel with his pubid and examine all channel object returned by Ape.
</p>
<p>
<label><strong>channel:</strong></label>
<input type="text" name="talk_chl" id="talk_chl" value="" />
<br />
Send channel a message at their pubid.
<br />
<label><strong>Message:</strong></label>
<input type="text" name="talk_chl_message" id = "talk_chl_message" value="" />
<br />
<span id="channel_send"><a class="button" href="#" onclick="this.blur();"><span>Send</span></a></span>
</p>
</div>
</div> <!--end-accordian -->
</div> <!--end-content -->
</div><!--end-main-->
<div id="footer">
</div><!--end-footer-->
</div><!--end-inner-container-->
<div id="debug">
</div><!--end-debug-->
</div><!--end-container -->
<div id="apeUsername" style="display:none"><?php echo 'WildApe' . rand(1,1000); ?></div>
</body>
</html>