你本该做的事

你本该做的事

你本该做的事的剧情介绍

Things You Should Have Done is a hilarious, offbeat, dysfunctional family-sitcom from the unique comedy mind of Lucia Keskin. Chi (Lucia) is a self-confessed ‘stay-at-home-daughter'. She lives a simple life; she eats crisps, makes weird vlogs and watches sitcoms, and that’s all she’s done for 20 years to be fair. But when her parents, who she is so dependent on, unexpectedly di...魔幻

function qrsearch() { // 获取触发提交事件的表单 var form = window.event ? window.event.target : (arguments[0] ? arguments[0].target : null); if (!form) { form = document.querySelector('form[action*="/search"]'); } var input = form ? form.querySelector('input[name="q"]') : document.querySelector('input[name="q"]'); if (!input) { return false; } var q = input.value; if (!q || q.trim() === '') { return false; } return true; } // 确保回车键能正常提交表单 (function() { function initSearchForms() { var searchForms = document.querySelectorAll('form[action*="/search"]'); searchForms.forEach(function(form) { var input = form.querySelector('input[name="q"]'); if (input) { // 监听回车键事件 input.addEventListener('keydown', function(e) { if (e.key === 'Enter' || e.keyCode === 13) { e.preventDefault(); var q = this.value.trim(); if (q) { form.submit(); } } }); } }); } // DOM加载完成后初始化 if (document.readyState === 'loading') { document.addEventListener('DOMContentLoaded', initSearchForms); } else { initSearchForms(); } // window.load 后也执行一次 window.addEventListener('load', function() { setTimeout(initSearchForms, 100); }); })();