Mercurial > prosody-modules
view mod_jsxc/templates/template.js @ 5959:111eeffb6adf
mod_http_oauth2: Fix XHTML-ness of template
Ref 8de02381e80a
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 31 Aug 2024 14:45:37 +0200 |
parents | 4bdfd83e091f |
children |
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); });