view mod_jsxc/templates/template.js @ 4902:ed9aa80c989d

mod_ping_muc: Fix typo in README
author Kim Alvefur <zash@zash.se>
date Tue, 22 Feb 2022 20:27:09 +0100
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);
});