{"id":194,"date":"2026-03-13T19:26:00","date_gmt":"2026-03-13T19:26:00","guid":{"rendered":"https:\/\/theroyalscode.com\/students\/a_carpenter\/?p=194"},"modified":"2026-03-13T19:26:00","modified_gmt":"2026-03-13T19:26:00","slug":"friday-3-13-2026","status":"publish","type":"post","link":"https:\/\/theroyalscode.com\/students\/a_carpenter\/2026\/03\/13\/friday-3-13-2026\/","title":{"rendered":"Friday 3\/13\/2026"},"content":{"rendered":"\n<p>Today was uneventful. I only continued my work on a pseudoclone of the eriesd wesbite.<\/p>\n\n\n\n<p>My javascript is currently broken due to my attempts to replicate their sliding banner image just under the header.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>function slideImg(direction){\n    const track = getElementById(\"slidetrack\")\n    const incoming = document.createElement(\"img\")\n\n    if (direction == right){\n        const newsrc = imgs&#91;1]\n        incoming.src = newsrc\n        track.appenchild(incoming)\n        track.style.transform = \"translateX(-100%)\"\n        imgs.push(imgs&#91;0]);\n        imgs.shift()\n    }\n    else{\n        const newsrc = imgs&#91;-1]\n        incoming.src = newsrc\n        track.prepend(incoming)\n        track.style.transofrm = \"translateX(100%)\"\n        imgs\n    }\n\n}<\/strong>\n<\/code><\/pre>\n\n\n\n<p>As you can see, my function is unfinished because I ripped it apart and am rebuilding it.<br><br>I also had to restructure my html and here is the restructured form of it:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>&lt;div class=\"slidediv\">\n        &lt;div class=\"slidetrack\">\n        &lt;img src=\"images\\Soviet_Union_Flag.jpg\" alt=\"FORMOTHERRODINA\" class=\"banner\" id=\"currentimg\">&lt;\/img>&lt;img src=\"\" alt=\"\">\n        &lt;\/div>\n\n        &lt;button onclick=slideImg() class=\"changeimgbutton\" id=\"changeimgbuttonright\">&lt;span class=\"material-symbols-outlined\">arrow_circle_right&lt;\/span>&lt;\/button>\n        &lt;button onclick=slideImg(left) class=\"changeimgbutton\" id=\"changeimgbuttonleft\">&lt;span class=\"material-symbols-outlined\">arrow_circle_left&lt;\/span>&lt;\/button>\n    &lt;\/div><\/strong><\/code><\/pre>\n\n\n\n<p>I will probably fix the js next week.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today was uneventful. I only continued my work on a pseudoclone of the eriesd wesbite. My javascript is currently broken due to my attempts to replicate their sliding banner image just under the header. As you can see, my function is unfinished because I ripped it apart and am rebuilding it. I also had to [&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-194","post","type-post","status-publish","format-standard","hentry","category-friday"],"_links":{"self":[{"href":"https:\/\/theroyalscode.com\/students\/a_carpenter\/wp-json\/wp\/v2\/posts\/194","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theroyalscode.com\/students\/a_carpenter\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/theroyalscode.com\/students\/a_carpenter\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/a_carpenter\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/a_carpenter\/wp-json\/wp\/v2\/comments?post=194"}],"version-history":[{"count":1,"href":"https:\/\/theroyalscode.com\/students\/a_carpenter\/wp-json\/wp\/v2\/posts\/194\/revisions"}],"predecessor-version":[{"id":195,"href":"https:\/\/theroyalscode.com\/students\/a_carpenter\/wp-json\/wp\/v2\/posts\/194\/revisions\/195"}],"wp:attachment":[{"href":"https:\/\/theroyalscode.com\/students\/a_carpenter\/wp-json\/wp\/v2\/media?parent=194"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/a_carpenter\/wp-json\/wp\/v2\/categories?post=194"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/a_carpenter\/wp-json\/wp\/v2\/tags?post=194"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}