forked from oscaruhp/chatSocketAchex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
157 lines (129 loc) · 5.7 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>chatSocketAchex.js</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- bootstrap -->
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/prism.css">
<script src="js/jquery.min.js"></script>
<script src="js/prism.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<script src="chatSocketAchex.js"></script>
<link rel="stylesheet" type="text/css" href="chatSocketAchex.css">
</head>
<body>
<div class="container">
<div class="row">
<div class="col-md-4 text-center">
<div class="well" >
<a href="http://develoteca.com">
<img src="http://develoteca.com/wp-content/themes/site/img/develoteca.png"/>
<br/>by develoteca.com
</a>
</div>
<a href="https://github.com/oscaruhp/chatSocketAchex/archive/gh-pages.zip" class="btn3d btn btn-success btn-lg">Download v1.0</a>
<br/><br/>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- lateral -->
<ins class="adsbygoogle"
style="display:inline-block;width:300px;height:250px"
data-ad-client="ca-pub-4331617637495482"
data-ad-slot="7438564459"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
<div class="col-md-12 well">
<h3>Thank you for comments</h3>
<div id="fb-root"></div>
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/es_MX/sdk.js#xfbml=1&version=v2.5&appId=132799306837455";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-comments" data-href="http://oscaruhp.github.io/chatSocketAchex/" data-width="300" data-numposts="5"></div>
</div>
</div>
<div class="col-md-8">
<br/>
<h1 class="text-center"><span style="color:#449D44">chatSocketAchex</span> jQuery Plugin</h1>
<h1>chatSocketAchex (Demo)</h1>
<div class="row alert alert-info">
<div class="col-lg-4">
<div id="ListaOnline">
</div>
</div>
<div class="col-lg-8">
<div id="Elchat"></div>
</div>
</div>
<script type="text/javascript">
$('#Elchat').ChatSocket({'lblEntradaNombre':'Enter a user name in the field below for the chat room'});
</script>
<h2>chatSocketAchex jQuery</h2>
<h3>Quick start</h3>
1.- Include the files
<pre><code class="language-markup">
<br>
<!-- Bootstrap and JQuery --><br>
<script src="jquery.min.js"> </script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<!-- Plugin -->
<link rel="stylesheet" type="text/css" href="chatSocketAchex.css">
<script src="chatSocketAchex.js"></script>
</code></pre>
2.- Create HTML Element
<pre><code class="language-markup">
<div id="Elchat"></div>
</code></pre>
3.- Call the the plugin on a container as your wish
<pre><code class="language-javascript">
$('#Elchat').ChatSocket();
</code></pre>
4.- All done!
<h2>Options</h2>
you can custom by passing options when call the plugin, all available options are listed below.
call the the plugin on a container wish you wish
<pre><code class="language-javascript">
$('#Elchat').ChatSocket({
option: value,
option2: value2
});
</code></pre>
Demo (Options)
<pre><code class="language-javascript">
{
Room:"RoomDeveloteca", // important - room or user
pass:"1234", // important - pass of room or user
lblTitulChat:" Chat Develoteca.com ", //Chat Name
lblCampoEntrada:"Menssage",
lblEnviar:"Send",
textoAyuda:"Develoteca", // Help button
Nombre:"Anónimo", // default Name.
urlImg:"http://placehold.it/50/55C1E7/fff&text=U", // Avatar chat
btnEntrar:"btnEntrar",
btnEnviar:"btnEnviar",
lblBtnEnviar:"Enviar",
lblTxtEntrar:"txtEntrar",
lblTxtEnviar:"txtMensaje",
lblBtnEntrar:"Enter", // Joined button
idDialogo:"DialogoEntrada",
classChat:"", // add class chat
idOnline:"ListaOnline", // id control users joined
lblUsuariosOnline:"Users joined", // text users online
lblEntradaNombre:"Name:",
panelColor:"success"
}
</code></pre>
<div class="panel panel-default">
<div class="panel-heading"><h1> </h1></div>
</div>
</div>
</div>
</div>
</body>
</html>