Software /
code /
prosody-modules
Comparison
mod_jsxc/templates/template.js @ 4825:4bdfd83e091f
mod_jsxc: Demo module serving JSXC relatively easily from Prosody
Copy of mod_conversejs adjusted for JSXC.
README TODO
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 15 Dec 2021 18:28:40 +0100 |
parent | 4227:mod_conversejs/templates/template.js@13b065432bf2 |
comparison
equal
deleted
inserted
replaced
4824:205b9d06fe6b | 4825:4bdfd83e091f |
---|---|
1 $(function() { | |
2 let jsxc = new JSXC({ | |
3 loadConnectionOptions: function(username, password) { | |
4 return Promise.resolve(%s); | |
5 } | |
6 }); | |
7 | |
8 let formElement = $('#jsxc_login_form'); | |
9 let usernameElement = $('#jsxc_username'); | |
10 let passwordElement = $('#jsxc_password'); | |
11 | |
12 jsxc.watchForm(formElement, usernameElement, passwordElement); | |
13 }); |