{"id":149,"date":"2026-05-01T14:02:28","date_gmt":"2026-05-01T14:02:28","guid":{"rendered":"https:\/\/theroyalscode.com\/students\/l_smith\/?p=149"},"modified":"2026-05-01T14:02:28","modified_gmt":"2026-05-01T14:02:28","slug":"nhl-sim","status":"publish","type":"post","link":"https:\/\/theroyalscode.com\/students\/l_smith\/2026\/05\/01\/nhl-sim\/","title":{"rendered":"NHL sim"},"content":{"rendered":"\n<p>so i dont know why but nothing is working right<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html>\n&lt;html lang=\"en\">\n&lt;head>\n    &lt;meta charset=\"UTF-8\">\n    &lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    &lt;title>NHL Franchise Sim &lt;\/title>\n    &lt;link rel=\"stylesheet\" href=\"styles.css\">\n\n&lt;\/head>\n&lt;body>\n    &lt;div class=\"container\">\n        &lt;nav>\n            &lt;ul>\n                &lt;li>&lt;a href=\"\/trade.html\">Trade&lt;\/a>&lt;\/li>\n                &lt;li>&lt;a href=\"free_agents.html\">FA&lt;\/a>&lt;\/li>\n                &lt;li>&lt;a href=\"games.html\">sechule&lt;\/a>&lt;\/li>\n            &lt;\/ul>\n        &lt;\/nav>\n        &lt;h1>NHL Franchise Simulator&lt;\/h1>\n        &lt;div id=\"startup-screen\" class=\"overlay\">\n            &lt;div class=\"selection-box\">\n                &lt;h1>Select Your Franchise(s)&lt;\/h1>\n                &lt;p>Pick the teams you wish to manage for the 2024-25 season.&lt;\/p>\n                &lt;div id=\"team-grid\" class=\"grid-container\">\n                    &lt;!-- JavaScript will inject all 32 NHL teams here -->\n                &lt;\/div>\n                &lt;button class=\"btn-start\" onclick=\"confirmSelection()\">Begin Simulation&lt;\/button>\n    &lt;\/div>\n&lt;\/div>\n\n&lt;!-- Main Game Dashboard (hidden by default) -->\n&lt;div id=\"main-dashboard\" style=\"display: none;\">\n    &lt;!-- Your existing Hub code -->\n&lt;\/div>\n\n\n    &lt;!-- The Main Dashboard (appears after team selection) -->\n&lt;div id=\"main-dashboard\" class=\"dashboard-grid\">\n    \n    &lt;!-- Header Section -->\n    &lt;header class=\"hub-header\">\n        &lt;h2>Franchise Mode Hub&lt;\/h2>\n        &lt;button class=\"primary-btn\" id=\"sim-btn\">Simulate Next Day&lt;\/button>\n    &lt;\/header>\n\n    &lt;!-- Standings Section -->\n    &lt;section class=\"standings-card\">\n        &lt;h3>NHL Standings&lt;\/h3>\n        &lt;div id=\"standings-container\">\n            &lt;!-- Standings table will be injected here -->\n        &lt;\/div>\n    &lt;\/section>\n\n    &lt;!-- Recent Activity Section -->\n    &lt;section class=\"results-card\">\n        &lt;h3>Recent League Results&lt;\/h3>\n        &lt;ul id=\"recent-results-list\">\n            &lt;!-- Game scores will be injected here -->\n        &lt;\/ul>\n    &lt;\/section>\n\n&lt;\/div>\n\n    \n    &lt;button class=\"btn\" onclick=\"advanceDay()\">Simulate Next Game&lt;\/button>\n\n    &lt;table>\n        &lt;thead>\n            &lt;tr>\n                &lt;th>Team&lt;\/th>\n                &lt;th>W&lt;\/th>\n                &lt;th>L&lt;\/th>\n                &lt;th>OTL&lt;\/th>\n                &lt;th>PTS&lt;\/th>\n            &lt;\/tr>\n        &lt;\/thead>\n        &lt;tbody id=\"standings-body\">\n            &lt;!-- JavaScript will fill this -->\n        &lt;\/tbody>\n    &lt;\/table>\n\n    &lt;div class=\"history\">\n        &lt;h3>Recent Results&lt;\/h3>\n        &lt;div id=\"history-box\">&lt;\/div>\n    &lt;\/div>\n&lt;\/div>\n\n&lt;script src=\"app.js\">&lt;\/script>\n&lt;\/body>\n&lt;\/html>\n<\/code><\/pre>\n\n\n\n<p>heres the main <\/p>\n\n\n\n<p>like i said nothing is working so next week fixing week <\/p>\n\n\n\n<p>now it loads right but doesnt work <\/p>\n\n\n\n<p>do me a favor <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"902\" height=\"653\" src=\"https:\/\/theroyalscode.com\/students\/l_smith\/wp-content\/uploads\/2026\/05\/image.png\" alt=\"\" class=\"wp-image-150\" srcset=\"https:\/\/theroyalscode.com\/students\/l_smith\/wp-content\/uploads\/2026\/05\/image.png 902w, https:\/\/theroyalscode.com\/students\/l_smith\/wp-content\/uploads\/2026\/05\/image-300x217.png 300w, https:\/\/theroyalscode.com\/students\/l_smith\/wp-content\/uploads\/2026\/05\/image-768x556.png 768w\" sizes=\"auto, (max-width: 902px) 100vw, 902px\" \/><\/figure>\n\n\n\n<p>what might be broken in the code becuse i dont know i looked over it 15 times but i still cant find it<\/p>\n","protected":false},"excerpt":{"rendered":"<p>so i dont know why but nothing is working right heres the main like i said nothing is working so next week fixing week now it loads right but doesnt work do me a favor what might be broken in the code becuse i dont know i looked over it 15 times but i still [&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-149","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/posts\/149","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/comments?post=149"}],"version-history":[{"count":1,"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/posts\/149\/revisions"}],"predecessor-version":[{"id":151,"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/posts\/149\/revisions\/151"}],"wp:attachment":[{"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/media?parent=149"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/categories?post=149"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/tags?post=149"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}