File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1010
1111</ head >
1212< body >
13- < div class ="container ">
13+ < div class ="container " id =" main " >
1414 < a href ="https://vic-nas.github.io/portfolio " class ="portfolio-link " target ="_blank ">
1515 Portfolio
1616 </ a >
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ let problemsData = {
44 vicutils : [ ]
55} ;
66
7- const container = document . getElementById ( "container " )
7+ const main = document . getElementById ( "main " )
88
99
1010async function scanForProblems ( ) {
@@ -209,7 +209,7 @@ async function generatePage(platform, problem) {
209209async function renderProblemPage ( platform , problemName ) {
210210 const problem = problemsData [ platform ] ?. find ( p => p . name === problemName ) ;
211211 if ( ! problem ) {
212- container . innerHTML = '<div class="error">Item not found</div>' ;
212+ main . innerHTML = '<div class="error">Item not found</div>' ;
213213 return ;
214214 }
215215
@@ -286,7 +286,7 @@ async function renderProblemPage(platform, problemName) {
286286
287287 pageContent += `</div>` ;
288288
289- div . innerHTML = pageContent ;
289+ main . innerHTML = pageContent ;
290290 document . title = `${ pageTitle } - ${ platformTitle } ` ;
291291
292292 if ( ! document . querySelector ( 'link[rel="icon"]' ) ) {
@@ -357,7 +357,7 @@ function addNavigationToCurrentPage() {
357357 <a href="../../index.html#${ platform } " class="nav-btn">${ platform . charAt ( 0 ) . toUpperCase ( ) + platform . slice ( 1 ) } Problems</a>
358358 </div>
359359 ` ;
360- container . insertBefore ( backButton , container . firstChild ) ;
360+ main . insertBefore ( backButton , document . body . firstChild ) ;
361361 }
362362}
363363
You can’t perform that action at this time.
0 commit comments