-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathexamples.html
executable file
·175 lines (171 loc) · 7.31 KB
/
examples.html
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
<!DOCTYPE HTML>
<html>
<head>
<!--[if lt IE 7]>
<script type="text/javascript">location.replace('/ie6/ie6.html');</script><noscript><meta http-equiv="refresh" content="0; url=/ie6/ie6.html"></noscript>
<![endif]-->
<meta charset="utf-8">
<meta name="keywords" content="phpDaemon, daemon.io, async, I/O, daemon, php, examples" />
<meta name="description" content="Asynchronous server-side framework for Web and network applications implemented in PHP using libevent, phpDaemon can handle thousands of simultaneous connections" />
<title>Examples « phpDaemon</title>
<link rel="stylesheet" type="text/css" href="/css/style.css">
<link rel="stylesheet" type="text/css" href="/css/add.css">
<link rel="stylesheet" type="text/css" href="/examples/simplechat/files/style.css">
<link rel="shortcut icon" href="/favicon.png" type="image/png" />
<link rel="icon" href="/favicon.png" type="image/png" />
<!--[if lte IE 9]>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<link type="text/css" rel="stylesheet" href="/css/ie.css">
<![endif]-->
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<link type="text/css" rel="stylesheet" href="/css/ie8.css">
<![endif]-->
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-40317559-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body>
<div id="template">
<header>
<div class="center">
<a href="/" id="logo" title="phpDaemon">phpDaemon</a>
<a href="/download.html" id="download" title="Download">DOWNLOAD</a>
<menu>
<li class="active"><span><a href="/examples.html" title="Examples">Examples</a></span></li>
<li><span><a href="/faq.html" title="FAQ">FAQ</a></span></li>
<li><span><a href="/docs/" title="Documentation">Documentation</a></span></li>
<li><span><a href="https://github.com/kakserpom/phpdaemon/issues" title="Tracker" target="_blank">Tracker</a></span></li>
<li><span><a href="/team.html" title="Team">Team</a></span></li>
<li><span><a href="/contribute.html" title="Contribute">Contribute</a></span></li>
<li><span><a href="/publications.html" title="Publications">Publications</a></span></li>
</menu>
</div>
</header>
<aside>
<div class="saw"></div>
<div class="center">
<div class="caption">
<h1 class="example_caption">Examples</h1>
<p>
Here are example applications using phpDaemon<br />to demonstrate its power
</p>
</div>
</div>
</aside>
<div id="main" class="clearfix">
<section>
<div class="section">
<div class="center example">
<h2>Simple conference using WebSocket, MongoDB and jQuery</h2>
<div class="clearfix example_info">
<a href="http://github.com/kakserpom/phpdaemon-muchat" target="_blank" title="Sources" class="blue_btn">Sources</a>
</div>
<div class="clearfix">
<div class="left_column">
<div>
<div class="textarea round_box" id="messages"></div>
<div class="message_form">
<form action="#" id="inputForm">
<div class="message_field round_box">
<input type="text" name="text" autocomplete="off" id="inputMessage"><button type="submit">Send</button>
</div>
<select name="color">
<option value="black">Black</option>
<option value="red">Red</option>
<option value="green">Green</option>
<option value="blue">Blue</option>
</select>
<span class="logged_user">(<span class="yourusername"></span>)</span><br>
Listed on tags: <span class="yourtags"></span><br>
<div class="tags">
<span>/nick Nickname</span>
<span>/me slaps you...</span>
<span>/thetime</span>
<span>/tags</span>
</div>
</form>
<div class="traffic">
<b>Sent/Received data:</b>
<span class="sentDataCounter">~</span>/<span class="recvDataCounter">~</span>
</div>
</div>
</div>
</div>
<div class="right_column">
<div id="userlist" class="users_tagget round_box"></div>
<div class="login_box">
<form action="#" method="post" id="loginForm">
<label for="inputUsername">Enter your nick</label>
<div class="login round_box">
<input name="username" id="inputUsername" type="text"><button type="submit">Login</button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</section>
</div>
</div>
<!-- <script type="text/javascript" src="http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js"></script> -->
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.2/jquery-ui.min.js"></script>
<script src="/js/common.js"></script>
<script type="text/javascript" src="/examples/simplechat/files/websocket.js"></script>
<script type="text/javascript" src="/examples/simplechat/files/jquery-migrate-1.1.1.js"></script>
<script type="text/javascript" src="/examples/simplechat/files/jquery.form.js"></script>
<script type="text/javascript" src="/examples/simplechat/files/jquery.cookie.js"></script>
<script type="text/javascript" src="/examples/simplechat/files/jquery.json.js"></script>
<script type="text/javascript" src="/examples/simplechat/files/jquery.scrollTo-min.js"></script>
<script type="text/javascript" src="/examples/simplechat/files/jquery.tooltip.pack.js"></script>
<script type="text/javascript" src="/examples/simplechat/files/jquery.keyboard.js"></script>
<script type="text/javascript" src="/examples/simplechat/files/chat.js"></script>
<script type="text/javascript">
if ($.chat.username != null) $('#inputMessage').show();
else $('#loginForm').show();
if ($.chat.loaded == true)
{
$.chat.initInputForm();
$.chat.initLoginForm();
$.chat.lastTS = 0;
$.chat.getHistory();
$.chat.getUserlist();
$.chat.setForms();
}
else
{
$(document).ready(function()
{
if (!$.chat.loaded)
{
$.chat.loaded = true;
$.chat.initInputForm();
$.chat.initLoginForm();
$.chat.initConnect();
}
});
}
</script>
<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_floating_style addthis_16x16_style" style="top:50px;background:none;opacity:0.70">
<a class="addthis_button_twitter" addthis:title="#Asynchronous server-side framework for Web and network applications implemented in #PHP using libevent, check out" addthis:url="http://daemon.io/"></a>
<a class="addthis_button_reddit"></a>
<a class="addthis_button_facebook"></a>
<a class="addthis_button_google_plusone_share"></a>
<a class="addthis_button_digg"></a>
<a class="addthis_button_compact"></a>
</div>
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#domready=1"></script>
<!-- AddThis Button END -->
<a href="https://github.com/kakserpom/phpdaemon" class="forkButton" target="_blank"><img src="/img/forkme.png" height="149" width="149" alt="Fork me on GitHub"></a>
</body>
</html>