diff --git a/src/pages/linkedin-practices.tsx b/src/pages/linkedin-practices.tsx index 84b138c..0b073fe 100644 --- a/src/pages/linkedin-practices.tsx +++ b/src/pages/linkedin-practices.tsx @@ -6,7 +6,35 @@ export const LinkedInPracticesPage: React.FC = () => { const { encodedUrl } = useParams<{ encodedUrl: string }>(); const url = atob(encodedUrl || ''); + const handleFilter = (event: React.ChangeEvent) => { + let questions = document.querySelectorAll( + '[aria-label="question-container"]' + ); + + questions.forEach((item: Element, index: number) => { + (questions[index].parentNode?.parentNode as HTMLElement).style.display = + item.textContent + ?.toLowerCase() + .includes(event.target.value.toLowerCase()) + ? "block" + : "none"; + }); + }; + return ( - + +
+ +
+ +
); };