Feat: Contact Form MySQL database created and hooked up to web app on form submission. \n Fix: Removal of ERP and otherwise deprecated database and server code..
This commit is contained in:
44
static/dist/js/main.bundle.js
vendored
44
static/dist/js/main.bundle.js
vendored
@@ -4334,52 +4334,8 @@ var PageContact = /*#__PURE__*/function (_BasePage) {
|
||||
key: "initialize",
|
||||
value: function initialize() {
|
||||
this.sharedInitialize();
|
||||
// this.hookupALTCHAByLocalServer();
|
||||
this.hookupButtonSubmitFormContactUs();
|
||||
}
|
||||
|
||||
/*
|
||||
hookupALTCHAByAPI() {
|
||||
const form = document.querySelector(idContactForm);
|
||||
const altchaWidget = form.querySelector('altcha-widget');
|
||||
|
||||
// Listen for verification events from the ALTCHA widget
|
||||
if (altchaWidget) {
|
||||
altchaWidget.addEventListener('serververification', function(event) {
|
||||
// Create or update the hidden input for ALTCHA
|
||||
let altchaInput = form.querySelector('input[name="altcha"]');
|
||||
if (!altchaInput) {
|
||||
altchaInput = document.createElement('input');
|
||||
altchaInput.type = 'hidden';
|
||||
altchaInput.name = 'altcha';
|
||||
form.appendChild(altchaInput);
|
||||
}
|
||||
|
||||
// Set the verification payload
|
||||
altchaInput.value = event.detail.payload;
|
||||
});
|
||||
}
|
||||
}
|
||||
*/
|
||||
}, {
|
||||
key: "hookupALTCHAByLocalServer",
|
||||
value: function hookupALTCHAByLocalServer() {
|
||||
window.ALTCHA = {
|
||||
init: function init(config) {
|
||||
document.querySelectorAll(config.selector).forEach(function (el) {
|
||||
new la({
|
||||
target: el,
|
||||
props: {
|
||||
challengeurl: config.challenge.url,
|
||||
auto: 'onload'
|
||||
}
|
||||
}).$on('verified', function (e) {
|
||||
config.challenge.onSuccess(e.detail.payload, el);
|
||||
});
|
||||
});
|
||||
}
|
||||
};
|
||||
}
|
||||
}, {
|
||||
key: "hookupButtonSubmitFormContactUs",
|
||||
value: function hookupButtonSubmitFormContactUs() {
|
||||
|
||||
Reference in New Issue
Block a user