Software /
code /
prosody-modules
File
mod_jsxc/templates/template.js @ 5628:a74b07764d3f
mod_invites_api: use the nice `module:http_url()` to get the correct url.
author | Trần H. Trung <xmpp:trần.h.trung@trung.fun> |
---|---|
date | Thu, 27 Jul 2023 18:33:12 +0700 |
parent | 4825:4bdfd83e091f |
line wrap: on
line source
$(function() { let jsxc = new JSXC({ loadConnectionOptions: function(username, password) { return Promise.resolve(%s); } }); let formElement = $('#jsxc_login_form'); let usernameElement = $('#jsxc_username'); let passwordElement = $('#jsxc_password'); jsxc.watchForm(formElement, usernameElement, passwordElement); });