File

mod_jsxc/templates/template.js @ 5933:070b0db6c4a0

mod_http_upload_external: Add link to Rust implementation (Thanks Luna)
author Kim Alvefur <zash@zash.se>
date Sat, 18 May 2024 14:16:49 +0200
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);
});