Mercurial > prosody-modules
comparison mod_candy/www_files/index.html @ 933:5a975ba6a845
mod_candy: Example of how easy it is to serve files from a prosody module
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 24 Mar 2013 23:58:40 +0100 |
parents | |
children | 674d045a9623 |
comparison
equal
deleted
inserted
replaced
932:4e235e565693 | 933:5a975ba6a845 |
---|---|
1 <!DOCTYPE html> | |
2 <html lang="en"> | |
3 <head> | |
4 <meta charset="utf-8"> | |
5 <title>Candy - Powered by Prosŏdy</title> | |
6 <link rel="shortcut icon" href="res/img/favicon.png" type="image/gif" /> | |
7 <link rel="stylesheet" type="text/css" href="res/default.css" /> | |
8 | |
9 <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script> | |
10 <script type="text/javascript" src="libs/libs.min.js"></script> | |
11 <script type="text/javascript" src="candy.min.js"></script> | |
12 <script type="text/javascript" src="prosody.js"></script> | |
13 <script type="text/javascript"> | |
14 $(document).ready(function() { | |
15 Candy.init(Prosody.bosh_path, { | |
16 core: { debug: false }, | |
17 view: { resources: 'res/' } | |
18 }); | |
19 | |
20 if(Prosody.anonymous) { | |
21 Candy.Core.connect(Prosody.host); | |
22 } else { | |
23 Candy.Core.connect(); | |
24 } | |
25 document.title += " " + Prosody.version; | |
26 }); | |
27 </script> | |
28 </head> | |
29 <body> | |
30 <div id="candy"></div> | |
31 </body> | |
32 </html> |