{"id":32,"date":"2026-03-13T15:12:54","date_gmt":"2026-03-13T15:12:54","guid":{"rendered":"https:\/\/theroyalscode.com\/students\/m_vicander\/?p=32"},"modified":"2026-03-13T15:43:25","modified_gmt":"2026-03-13T15:43:25","slug":"what-i-did-today-4","status":"publish","type":"post","link":"https:\/\/theroyalscode.com\/students\/m_vicander\/2026\/03\/13\/what-i-did-today-4\/","title":{"rendered":"what i did today"},"content":{"rendered":"\n<p>what i did today was make a pokemon website where you can look up all the pokemon and if you type all it will show all the pokemon in order in the pokedex and if you scroll it changes color if you want you make <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"337\" src=\"https:\/\/theroyalscode.com\/students\/m_vicander\/wp-content\/uploads\/2026\/03\/image-1024x337.png\" alt=\"\" class=\"wp-image-35\" srcset=\"https:\/\/theroyalscode.com\/students\/m_vicander\/wp-content\/uploads\/2026\/03\/image-1024x337.png 1024w, https:\/\/theroyalscode.com\/students\/m_vicander\/wp-content\/uploads\/2026\/03\/image-300x99.png 300w, https:\/\/theroyalscode.com\/students\/m_vicander\/wp-content\/uploads\/2026\/03\/image-768x253.png 768w, https:\/\/theroyalscode.com\/students\/m_vicander\/wp-content\/uploads\/2026\/03\/image.png 1188w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>.pokeBox:hover {\n\u00a0 \u00a0 \u00a0 transform: translateY(-5px);\n\u00a0 \u00a0 \u00a0 box-shadow: 0 0 18px rgba(0,0,0,0.5);\n\u00a0 \u00a0 }<\/code><\/pre>\n\n\n\n<p>&lt;!DOCTYPE html&gt;<\/p>\n\n\n\n<p>&lt;html lang=&#8221;en&#8221;&gt;<\/p>\n\n\n\n<p>&lt;head&gt;<\/p>\n\n\n\n<p>&nbsp; &lt;meta charset=&#8221;UTF-8&#8243;&gt;<\/p>\n\n\n\n<p>&nbsp; &lt;title&gt;Pok\u00e9mon Viewer&lt;\/title&gt;<\/p>\n\n\n\n<p>&nbsp; &lt;link rel=&#8221;stylesheet&#8221; href=&#8221;styles.css&#8221;&gt;<\/p>\n\n\n\n<p>&nbsp; &lt;style&gt;<\/p>\n\n\n\n<p>&nbsp; &nbsp; body {<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; font-family: &#8220;Segoe UI&#8221;, Arial, sans-serif;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; text-align: center;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; margin: 0;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; padding: 20px;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; background: linear-gradient(135deg, #6104ad, #6473f6);<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; min-height: 100vh;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; color: white;<\/p>\n\n\n\n<p>&nbsp; &nbsp; }<\/p>\n\n\n\n<p>&nbsp; &nbsp; h1 {<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; font-size: 42px;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; text-shadow: 3px 3px 8px rgba(0,0,0,0.4);<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; margin-bottom: 20px;<\/p>\n\n\n\n<p>&nbsp; &nbsp; }<\/p>\n\n\n\n<p>&nbsp; &nbsp; \/* Search bar + button *\/<\/p>\n\n\n\n<p>&nbsp; &nbsp; #pokemonName {<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; padding: 12px 18px;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; width: 260px;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; border-radius: 25px;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; border: none;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; outline: none;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; font-size: 16px;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; box-shadow: 0 0 10px rgba(0,0,0,0.3);<\/p>\n\n\n\n<p>&nbsp; &nbsp; }<\/p>\n\n\n\n<p>&nbsp; &nbsp; button {<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; padding: 12px 20px;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; margin-left: 10px;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; border: none;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; border-radius: 25px;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; background: #ffffff;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; color: #3a147b;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; font-size: 16px;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; font-weight: bold;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; cursor: pointer;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; transition: 0.2s;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; box-shadow: 0 0 10px rgba(0,0,0,0.3);<\/p>\n\n\n\n<p>&nbsp; &nbsp; }<\/p>\n\n\n\n<p>&nbsp; &nbsp; button:hover {<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; background: #ae7ed0;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; transform: scale(1.05);<\/p>\n\n\n\n<p>&nbsp; &nbsp; }<\/p>\n\n\n\n<p>&nbsp; &nbsp; \/* Single Pok\u00e9mon *\/<\/p>\n\n\n\n<p>&nbsp; &nbsp; #pokemonSprite {<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; display: none;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; margin-top: 25px;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; width: 180px;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; image-rendering: pixelated;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));<\/p>\n\n\n\n<p>&nbsp; &nbsp; }<\/p>\n\n\n\n<p>&nbsp; &nbsp; \/* All Pok\u00e9mon grid *\/<\/p>\n\n\n\n<p>&nbsp; &nbsp; #allContainer {<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; display: none;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; margin-top: 40px;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; display: grid;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; gap: 25px;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; padding: 10px;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; max-width: 1100px;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; margin-left: auto;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; margin-right: auto;<\/p>\n\n\n\n<p>&nbsp; &nbsp; }<\/p>\n\n\n\n<p>&nbsp; &nbsp; \/* Pok\u00e9mon card *\/<\/p>\n\n\n\n<p>&nbsp; &nbsp; .pokeBox {<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; background: rgba(255,255,255,0.2);<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; padding: 15px;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; border-radius: 15px;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; backdrop-filter: blur(6px);<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; box-shadow: 0 0 12px rgba(0,0,0,0.3);<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; transition: 0.2s;<\/p>\n\n\n\n<p>&nbsp; &nbsp; }<\/p>\n\n\n\n<p>&nbsp; &nbsp; .pokeBox:hover {<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; transform: translateY(-5px);<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; box-shadow: 0 0 18px rgba(0,0,0,0.5);<\/p>\n\n\n\n<p>&nbsp; &nbsp; }<\/p>\n\n\n\n<p>&nbsp; &nbsp; .pokeBox img {<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; width: 96px;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; image-rendering: pixelated;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; filter: drop-shadow(0 0 6px rgba(0,0,0,0.4));<\/p>\n\n\n\n<p>&nbsp; &nbsp; }<\/p>\n\n\n\n<p>&nbsp; &nbsp; .pokeBox div {<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; margin-top: 8px;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; font-size: 16px;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; font-weight: bold;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; text-transform: capitalize;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; color: #9dbd10;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; text-shadow: 2px 2px 5px rgba(0,0,0,0.5);<\/p>\n\n\n\n<p>&nbsp; &nbsp; }<\/p>\n\n\n\n<p>&nbsp; &lt;\/style&gt;<\/p>\n\n\n\n<p>&lt;\/head&gt;<\/p>\n\n\n\n<p>&lt;body&gt;<\/p>\n\n\n\n<p>&nbsp; &lt;h1&gt;Pok\u00e9mon Viewer&lt;\/h1&gt;<\/p>\n\n\n\n<p>&nbsp; &lt;input type=&#8221;text&#8221; id=&#8221;pokemonName&#8221; placeholder=&#8221;Enter Pok\u00e9mon name (e.g. pikachu or all)&#8221; \/&gt;<\/p>\n\n\n\n<p>&nbsp; &lt;button onclick=&#8221;fetchData()&#8221;&gt;Search&lt;\/button&gt;<\/p>\n\n\n\n<p>&nbsp; &lt;div&gt;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &lt;img id=&#8221;pokemonSprite&#8221; alt=&#8221;Pok\u00e9mon sprite&#8221; \/&gt;<\/p>\n\n\n\n<p>&nbsp; &lt;\/div&gt;<\/p>\n\n\n\n<p>&nbsp; &lt;div id=&#8221;allContainer&#8221;&gt;&lt;\/div&gt;<\/p>\n\n\n\n<p>&nbsp; &lt;script&gt;<\/p>\n\n\n\n<p>&nbsp; &nbsp; async function fetchData() {<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; const input = document.getElementById(&#8220;pokemonName&#8221;).value.toLowerCase();<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; const singleImg = document.getElementById(&#8220;pokemonSprite&#8221;);<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; const allContainer = document.getElementById(&#8220;allContainer&#8221;);<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; singleImg.style.display = &#8220;none&#8221;;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; allContainer.style.display = &#8220;none&#8221;;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; allContainer.innerHTML = &#8220;&#8221;;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; if (input === &#8220;all&#8221;) {<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; loadAllPokemon();<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; return;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; }<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; try {<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; const response = await fetch(`https:\/\/pokeapi.co\/api\/v2\/pokemon\/${input}`);<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; if (!response.ok) throw new Error(&#8220;Not found&#8221;);<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; const data = await response.json();<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; singleImg.src = data.sprites.front_default;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; singleImg.style.display = &#8220;block&#8221;;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; } catch (error) {<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; alert(&#8220;Could not fetch that Pok\u00e9mon. Check the name and try again.&#8221;);<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; }<\/p>\n\n\n\n<p>&nbsp; &nbsp; }<\/p>\n\n\n\n<p>&nbsp; &nbsp; async function loadAllPokemon() {<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; const allContainer = document.getElementById(&#8220;allContainer&#8221;);<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; allContainer.style.display = &#8220;grid&#8221;;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; try {<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; const listRes = await fetch(&#8220;https:\/\/pokeapi.co\/api\/v2\/pokemon?limit=1025&#8221;);<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; const listData = await listRes.json();<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; for (const pokemon of listData.results) {<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; const res = await fetch(pokemon.url);<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; const data = await res.json();<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; const box = document.createElement(&#8220;div&#8221;);<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; box.className = &#8220;pokeBox&#8221;;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; const img = document.createElement(&#8220;img&#8221;);<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; img.src = data.sprites.front_default;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; const label = document.createElement(&#8220;div&#8221;);<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; label.textContent = data.name;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; box.appendChild(img);<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; box.appendChild(label);<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; allContainer.appendChild(box);<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; }<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; } catch (err) {<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; alert(&#8220;Error loading all Pok\u00e9mon.&#8221;);<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; }<\/p>\n\n\n\n<p>&nbsp; &nbsp; }<\/p>\n\n\n\n<p>&nbsp; &lt;\/script&gt;<\/p>\n\n\n\n<p>&nbsp; &lt;div id=&#8221;statsOverlay&#8221; style=&#8221;<\/p>\n\n\n\n<p>&nbsp; position: fixed; top:0; left:0; width:100%; height:100%;<\/p>\n\n\n\n<p>&nbsp; background: rgba(0,0,0,0.6); display:none;<\/p>\n\n\n\n<p>&nbsp; justify-content:center; align-items:center;&#8221;&gt;<\/p>\n\n\n\n<p>&nbsp; &lt;div style=&#8221;<\/p>\n\n\n\n<p>&nbsp; &nbsp; background:white; color:black; padding:25px; width:320px;<\/p>\n\n\n\n<p>&nbsp; &nbsp; border-radius:15px; text-align:center;&#8221;&gt;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &lt;h2 id=&#8221;statsName&#8221;&gt;&lt;\/h2&gt;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &lt;div id=&#8221;statsList&#8221;&gt;&lt;\/div&gt;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &lt;button onclick=&#8221;closeStats()&#8221; style=&#8221;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; margin-top:15px; padding:8px 15px; border:none;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; background:#ff4444; color:white; border-radius:8px; cursor:pointer;&#8221;&gt;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; Close<\/p>\n\n\n\n<p>&nbsp; &nbsp; &lt;\/button&gt;<\/p>\n\n\n\n<p>&nbsp; &lt;\/div&gt;<\/p>\n\n\n\n<p>&lt;\/div&gt;<\/p>\n\n\n\n<p>&lt;div id=&#8221;searchStack&#8221;&gt;&lt;\/div&gt;<\/p>\n\n\n\n<p>&lt;\/body&gt;<\/p>\n\n\n\n<p>&lt;\/html&gt;<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>what i did today was make a pokemon website where you can look up all the pokemon and if you type all it will show all the pokemon in order in the pokedex and if you scroll it changes color if you want you make &lt;!DOCTYPE html&gt; &lt;html lang=&#8221;en&#8221;&gt; &lt;head&gt; &nbsp; &lt;meta charset=&#8221;UTF-8&#8243;&gt; &nbsp; &lt;title&gt;Pok\u00e9mon [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-32","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/theroyalscode.com\/students\/m_vicander\/wp-json\/wp\/v2\/posts\/32","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theroyalscode.com\/students\/m_vicander\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/theroyalscode.com\/students\/m_vicander\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/m_vicander\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/m_vicander\/wp-json\/wp\/v2\/comments?post=32"}],"version-history":[{"count":3,"href":"https:\/\/theroyalscode.com\/students\/m_vicander\/wp-json\/wp\/v2\/posts\/32\/revisions"}],"predecessor-version":[{"id":36,"href":"https:\/\/theroyalscode.com\/students\/m_vicander\/wp-json\/wp\/v2\/posts\/32\/revisions\/36"}],"wp:attachment":[{"href":"https:\/\/theroyalscode.com\/students\/m_vicander\/wp-json\/wp\/v2\/media?parent=32"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/m_vicander\/wp-json\/wp\/v2\/categories?post=32"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/m_vicander\/wp-json\/wp\/v2\/tags?post=32"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}