Software /
code /
prosody-modules
File
mod_jsxc/templates/template.js @ 6144:1b36cfca6282
luacheckrc: Add module.could() (new in trunk)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 10 Jan 2025 12:35:21 +0100 |
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); });