LucciWorkshop-20220910
$(document).ready(function () { const liffId = "1657581863-0jBeBXZ4"; initializeLiff(liffId); })
function initializeLiff(liffId) { liff.init({ liffId: liffId }).then(() => { initializeApp(); }).catch((err) => { console.log('LIFF Initialization failed ', err); }); }
function sendText(text) { liff.sendMessages([{ 'type': 'text', 'text': text }]).then(function () { liff.closeWindow(); }).catch(function (error) { window.alert('Failed to send message ' + error); }); }
const params = (new URL(document.location)).searchParams; const key = params.get('key');
$(function () { $('form').submit(function () { const your-name = $('input[name="your-name"]').val(); const your-email = $('input[name="your-email"]').val(); const your-tel = $('input[name="your-tel"]').val(); const menu-559 = $('input[name="menu-559"]').val(); const checkbox-965 = $('input[name="checkbox-965"]').val(); const msg = `${your-name}\n${your-email}\n${your-tel}\n${menu-559}\n${checkbox-965}`; sendText(msg); return false; }); });