annotate mod_candy/www_files/index.html @ 1932:3729245498ae

mod_auth_http_async: Remove unused variable
author Kim Alvefur <zash@zash.se>
date Sat, 24 Oct 2015 13:53:52 +0200
parents 991a5f74f848
children 52dd2a51dac8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
933
5a975ba6a845 mod_candy: Example of how easy it is to serve files from a prosody module
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1 <!DOCTYPE html>
5a975ba6a845 mod_candy: Example of how easy it is to serve files from a prosody module
Kim Alvefur <zash@zash.se>
parents:
diff changeset
2 <html lang="en">
5a975ba6a845 mod_candy: Example of how easy it is to serve files from a prosody module
Kim Alvefur <zash@zash.se>
parents:
diff changeset
3 <head>
5a975ba6a845 mod_candy: Example of how easy it is to serve files from a prosody module
Kim Alvefur <zash@zash.se>
parents:
diff changeset
4 <meta charset="utf-8">
5a975ba6a845 mod_candy: Example of how easy it is to serve files from a prosody module
Kim Alvefur <zash@zash.se>
parents:
diff changeset
5 <title>Candy - Powered by Prosŏdy</title>
5a975ba6a845 mod_candy: Example of how easy it is to serve files from a prosody module
Kim Alvefur <zash@zash.se>
parents:
diff changeset
6 <link rel="shortcut icon" href="res/img/favicon.png" type="image/gif" />
5a975ba6a845 mod_candy: Example of how easy it is to serve files from a prosody module
Kim Alvefur <zash@zash.se>
parents:
diff changeset
7 <link rel="stylesheet" type="text/css" href="res/default.css" />
5a975ba6a845 mod_candy: Example of how easy it is to serve files from a prosody module
Kim Alvefur <zash@zash.se>
parents:
diff changeset
8
1864
991a5f74f848 mod_candy: Update to work with a stable release instead of git (which no longer works)
Kim Alvefur <zash@zash.se>
parents: 1030
diff changeset
9 <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
991a5f74f848 mod_candy: Update to work with a stable release instead of git (which no longer works)
Kim Alvefur <zash@zash.se>
parents: 1030
diff changeset
10 <script type="text/javascript" src="libs.min.js"></script>
933
5a975ba6a845 mod_candy: Example of how easy it is to serve files from a prosody module
Kim Alvefur <zash@zash.se>
parents:
diff changeset
11 <script type="text/javascript" src="candy.min.js"></script>
1030
674d045a9623 mod_candy: Add a comment about the virtual js file with connection parameters
Kim Alvefur <zash@zash.se>
parents: 933
diff changeset
12 <script type="text/javascript" src="prosody.js"></script><!-- Virtual file generated by mod_candy -->
933
5a975ba6a845 mod_candy: Example of how easy it is to serve files from a prosody module
Kim Alvefur <zash@zash.se>
parents:
diff changeset
13 <script type="text/javascript">
5a975ba6a845 mod_candy: Example of how easy it is to serve files from a prosody module
Kim Alvefur <zash@zash.se>
parents:
diff changeset
14 $(document).ready(function() {
5a975ba6a845 mod_candy: Example of how easy it is to serve files from a prosody module
Kim Alvefur <zash@zash.se>
parents:
diff changeset
15 Candy.init(Prosody.bosh_path, {
1864
991a5f74f848 mod_candy: Update to work with a stable release instead of git (which no longer works)
Kim Alvefur <zash@zash.se>
parents: 1030
diff changeset
16 core: {
991a5f74f848 mod_candy: Update to work with a stable release instead of git (which no longer works)
Kim Alvefur <zash@zash.se>
parents: 1030
diff changeset
17 // only set this to true if developing / debugging errors
991a5f74f848 mod_candy: Update to work with a stable release instead of git (which no longer works)
Kim Alvefur <zash@zash.se>
parents: 1030
diff changeset
18 debug: false,
991a5f74f848 mod_candy: Update to work with a stable release instead of git (which no longer works)
Kim Alvefur <zash@zash.se>
parents: 1030
diff changeset
19 // autojoin is a *required* parameter if you don't have a plugin (e.g. roomPanel) for it
991a5f74f848 mod_candy: Update to work with a stable release instead of git (which no longer works)
Kim Alvefur <zash@zash.se>
parents: 1030
diff changeset
20 // true
991a5f74f848 mod_candy: Update to work with a stable release instead of git (which no longer works)
Kim Alvefur <zash@zash.se>
parents: 1030
diff changeset
21 // -> fetch info from server (NOTE: does only work with openfire server)
991a5f74f848 mod_candy: Update to work with a stable release instead of git (which no longer works)
Kim Alvefur <zash@zash.se>
parents: 1030
diff changeset
22 // ['test@conference.example.com']
991a5f74f848 mod_candy: Update to work with a stable release instead of git (which no longer works)
Kim Alvefur <zash@zash.se>
parents: 1030
diff changeset
23 // -> array of rooms to join after connecting
991a5f74f848 mod_candy: Update to work with a stable release instead of git (which no longer works)
Kim Alvefur <zash@zash.se>
parents: 1030
diff changeset
24 autojoin: true
991a5f74f848 mod_candy: Update to work with a stable release instead of git (which no longer works)
Kim Alvefur <zash@zash.se>
parents: 1030
diff changeset
25 },
991a5f74f848 mod_candy: Update to work with a stable release instead of git (which no longer works)
Kim Alvefur <zash@zash.se>
parents: 1030
diff changeset
26 view: { assets: 'res/' }
933
5a975ba6a845 mod_candy: Example of how easy it is to serve files from a prosody module
Kim Alvefur <zash@zash.se>
parents:
diff changeset
27 });
5a975ba6a845 mod_candy: Example of how easy it is to serve files from a prosody module
Kim Alvefur <zash@zash.se>
parents:
diff changeset
28
5a975ba6a845 mod_candy: Example of how easy it is to serve files from a prosody module
Kim Alvefur <zash@zash.se>
parents:
diff changeset
29 if(Prosody.anonymous) {
5a975ba6a845 mod_candy: Example of how easy it is to serve files from a prosody module
Kim Alvefur <zash@zash.se>
parents:
diff changeset
30 Candy.Core.connect(Prosody.host);
5a975ba6a845 mod_candy: Example of how easy it is to serve files from a prosody module
Kim Alvefur <zash@zash.se>
parents:
diff changeset
31 } else {
5a975ba6a845 mod_candy: Example of how easy it is to serve files from a prosody module
Kim Alvefur <zash@zash.se>
parents:
diff changeset
32 Candy.Core.connect();
5a975ba6a845 mod_candy: Example of how easy it is to serve files from a prosody module
Kim Alvefur <zash@zash.se>
parents:
diff changeset
33 }
1864
991a5f74f848 mod_candy: Update to work with a stable release instead of git (which no longer works)
Kim Alvefur <zash@zash.se>
parents: 1030
diff changeset
34
991a5f74f848 mod_candy: Update to work with a stable release instead of git (which no longer works)
Kim Alvefur <zash@zash.se>
parents: 1030
diff changeset
35 /**
991a5f74f848 mod_candy: Update to work with a stable release instead of git (which no longer works)
Kim Alvefur <zash@zash.se>
parents: 1030
diff changeset
36 * Thanks for trying Candy!
991a5f74f848 mod_candy: Update to work with a stable release instead of git (which no longer works)
Kim Alvefur <zash@zash.se>
parents: 1030
diff changeset
37 *
991a5f74f848 mod_candy: Update to work with a stable release instead of git (which no longer works)
Kim Alvefur <zash@zash.se>
parents: 1030
diff changeset
38 * If you need more information, please see here:
991a5f74f848 mod_candy: Update to work with a stable release instead of git (which no longer works)
Kim Alvefur <zash@zash.se>
parents: 1030
diff changeset
39 * - Setup instructions & config params: http://candy-chat.github.io/candy/#setup
991a5f74f848 mod_candy: Update to work with a stable release instead of git (which no longer works)
Kim Alvefur <zash@zash.se>
parents: 1030
diff changeset
40 * - FAQ & more: https://github.com/candy-chat/candy/wiki
991a5f74f848 mod_candy: Update to work with a stable release instead of git (which no longer works)
Kim Alvefur <zash@zash.se>
parents: 1030
diff changeset
41 *
991a5f74f848 mod_candy: Update to work with a stable release instead of git (which no longer works)
Kim Alvefur <zash@zash.se>
parents: 1030
diff changeset
42 * Mailinglist for questions:
991a5f74f848 mod_candy: Update to work with a stable release instead of git (which no longer works)
Kim Alvefur <zash@zash.se>
parents: 1030
diff changeset
43 * - http://groups.google.com/group/candy-chat
991a5f74f848 mod_candy: Update to work with a stable release instead of git (which no longer works)
Kim Alvefur <zash@zash.se>
parents: 1030
diff changeset
44 *
991a5f74f848 mod_candy: Update to work with a stable release instead of git (which no longer works)
Kim Alvefur <zash@zash.se>
parents: 1030
diff changeset
45 * Github issues for bugs:
991a5f74f848 mod_candy: Update to work with a stable release instead of git (which no longer works)
Kim Alvefur <zash@zash.se>
parents: 1030
diff changeset
46 * - https://github.com/candy-chat/candy/issues
991a5f74f848 mod_candy: Update to work with a stable release instead of git (which no longer works)
Kim Alvefur <zash@zash.se>
parents: 1030
diff changeset
47 */
991a5f74f848 mod_candy: Update to work with a stable release instead of git (which no longer works)
Kim Alvefur <zash@zash.se>
parents: 1030
diff changeset
48
933
5a975ba6a845 mod_candy: Example of how easy it is to serve files from a prosody module
Kim Alvefur <zash@zash.se>
parents:
diff changeset
49 document.title += " " + Prosody.version;
5a975ba6a845 mod_candy: Example of how easy it is to serve files from a prosody module
Kim Alvefur <zash@zash.se>
parents:
diff changeset
50 });
5a975ba6a845 mod_candy: Example of how easy it is to serve files from a prosody module
Kim Alvefur <zash@zash.se>
parents:
diff changeset
51 </script>
5a975ba6a845 mod_candy: Example of how easy it is to serve files from a prosody module
Kim Alvefur <zash@zash.se>
parents:
diff changeset
52 </head>
5a975ba6a845 mod_candy: Example of how easy it is to serve files from a prosody module
Kim Alvefur <zash@zash.se>
parents:
diff changeset
53 <body>
5a975ba6a845 mod_candy: Example of how easy it is to serve files from a prosody module
Kim Alvefur <zash@zash.se>
parents:
diff changeset
54 <div id="candy"></div>
5a975ba6a845 mod_candy: Example of how easy it is to serve files from a prosody module
Kim Alvefur <zash@zash.se>
parents:
diff changeset
55 </body>
5a975ba6a845 mod_candy: Example of how easy it is to serve files from a prosody module
Kim Alvefur <zash@zash.se>
parents:
diff changeset
56 </html>