{"id":123,"date":"2026-03-06T15:18:09","date_gmt":"2026-03-06T15:18:09","guid":{"rendered":"https:\/\/theroyalscode.com\/students\/a_ploss\/?p=123"},"modified":"2026-03-06T15:18:09","modified_gmt":"2026-03-06T15:18:09","slug":"free-friday-3-6-26","status":"publish","type":"post","link":"https:\/\/theroyalscode.com\/students\/a_ploss\/2026\/03\/06\/free-friday-3-6-26\/","title":{"rendered":"free Friday 3-6-26"},"content":{"rendered":"\n<p>today i worked on a website for my SMG4 AU so i can fix an error with the cards and images and a few spelling mistakes i noticed aswell which both are fixed so here&#8217;s some of the screenshots and some of the code(the code i had to fix)<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"693\" height=\"279\" src=\"https:\/\/theroyalscode.com\/students\/a_ploss\/wp-content\/uploads\/2026\/03\/image.png\" alt=\"\" class=\"wp-image-124\" srcset=\"https:\/\/theroyalscode.com\/students\/a_ploss\/wp-content\/uploads\/2026\/03\/image.png 693w, https:\/\/theroyalscode.com\/students\/a_ploss\/wp-content\/uploads\/2026\/03\/image-300x121.png 300w\" sizes=\"auto, (max-width: 693px) 100vw, 693px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>\nsearchInput.addEventListener(\"input\", () => {\n    const query = searchInput.value.toLowerCase();\n\n    cards.forEach(card => {\n        const title = card.querySelector(\".titles\").textContent.toLocaleLowerCase();\n        \n        if (title.includes(query)){\n            card.style.display = \"block\";\n            console.log(title)\n        } else{\n            card.style.display = \"none\";\n        }\n    })\n})\n<\/code><\/pre>\n\n\n\n<p>here&#8217;s the code that wasn&#8217;t working properly its used to have you search for as character and then it&#8217;ll filter some of the cards out to show you a character of the letter you typed in<\/p>\n\n\n\n<figure class=\"wp-block-video\"><video height=\"832\" style=\"aspect-ratio: 1228 \/ 832;\" width=\"1228\" controls src=\"https:\/\/theroyalscode.com\/students\/a_ploss\/wp-content\/uploads\/2026\/03\/20260306-1513-11.0033084-1.mp4\"><\/video><\/figure>\n\n\n\n<p>here&#8217;s a video of how that specific part of the code works using javascript<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>today i worked on a website for my SMG4 AU so i can fix an error with the cards and images and a few spelling mistakes i noticed aswell which both are fixed so here&#8217;s some of the screenshots and some of the code(the code i had to fix) here&#8217;s the code that wasn&#8217;t working [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-123","post","type-post","status-publish","format-standard","hentry","category-free-friday"],"_links":{"self":[{"href":"https:\/\/theroyalscode.com\/students\/a_ploss\/wp-json\/wp\/v2\/posts\/123","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theroyalscode.com\/students\/a_ploss\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/theroyalscode.com\/students\/a_ploss\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/a_ploss\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/a_ploss\/wp-json\/wp\/v2\/comments?post=123"}],"version-history":[{"count":1,"href":"https:\/\/theroyalscode.com\/students\/a_ploss\/wp-json\/wp\/v2\/posts\/123\/revisions"}],"predecessor-version":[{"id":127,"href":"https:\/\/theroyalscode.com\/students\/a_ploss\/wp-json\/wp\/v2\/posts\/123\/revisions\/127"}],"wp:attachment":[{"href":"https:\/\/theroyalscode.com\/students\/a_ploss\/wp-json\/wp\/v2\/media?parent=123"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/a_ploss\/wp-json\/wp\/v2\/categories?post=123"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/a_ploss\/wp-json\/wp\/v2\/tags?post=123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}