44 < meta charset ="utf-8 ">
55 < meta name ="viewport " content ="width=device-width, initial-scale=1 ">
66 < title > BlockifyVR | Project Gallery</ title >
7+ < base href ="/BlockifyVR/ ">
78 < link href ="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/css/bootstrap.min.css " rel ="stylesheet " integrity ="sha384-KK94CHFLLe+nY2dmCWGMq91rCGa5gtU4mk92HdvYe+M/SXH301p5ILy+dN9+nJOZ " crossorigin ="anonymous ">
89 < script src ="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js "> </ script >
9- < link rel ="icon " type ="image/svg+xml " href ="/docs/ resources/favicon.svg ">
10- < link rel ="stylesheet " href ="/docs/ resources/styles.css ">
10+ < link rel ="icon " type ="image/svg+xml " href ="resources/favicon.svg ">
11+ < link rel ="stylesheet " href ="resources/styles.css ">
1112 < script >
1213 const id = new URLSearchParams ( window . location . search ) . get ( "q" ) ;
1314
14- fetch ( '/docs/ projects/projects.json' )
15+ fetch ( 'projects/projects.json' )
1516 . then ( response => response . json ( ) )
1617 . then ( data => {
1718 if ( id ) {
1819 if ( ! data [ id ] ) {
19- window . location . href = '/docs/ 404.html' ;
20+ window . location . href = '404.html' ;
2021 } else {
2122 loadProject ( id , data ) ;
2223 }
@@ -62,9 +63,9 @@ <h1>Project Gallery</h1>
6263 data . forEach ( element => {
6364 let card =
6465 `<div id="${ data . indexOf ( element ) } " class="col project">
65- <a href="/docs/ projects?q=${ data . indexOf ( element ) } ">
66+ <a href="projects?q=${ data . indexOf ( element ) } ">
6667 <div class="card" style="width: auto; border-radius: 8px;">
67- <img src="/docs/ projects/${ element } /thumbnail.png" class="card-img-top" style="padding: 10px; border-radius: 15px">
68+ <img src="projects/${ element } /thumbnail.png" class="card-img-top" style="padding: 10px; border-radius: 15px">
6869 <div class="card-body">
6970 <h5 class="card-title text-truncate" style="margin-bottom: 0; color: darkgreen;">${ element . slice ( element . indexOf ( "/" ) + 1 , element . lastIndexOf ( "/" ) ) } </h5>
7071 </div>
@@ -80,7 +81,7 @@ <h5 class="card-title text-truncate" style="margin-bottom: 0; color: darkgreen;"
8081 const html = `
8182 <h1>${ data [ id ] . slice ( data [ id ] . indexOf ( "/" ) + 1 , data [ id ] . lastIndexOf ( "/" ) ) } </h1>
8283 <h5 style="padding-bottom: 25px;">${ data [ id ] . slice ( 0 , data [ id ] . indexOf ( "/" ) ) } </h5>
83- <iframe style="border-radius: 8px; border: none;" src="/docs/ projects/${ data [ id ] } /index.html"></iframe>` ;
84+ <iframe style="border-radius: 8px; border: none;" src="projects/${ data [ id ] } /index.html"></iframe>` ;
8485
8586 document . getElementById ( "projectContainer" ) . appendChild ( document . createRange ( ) . createContextualFragment ( html ) ) ;
8687 }
@@ -131,7 +132,7 @@ <h5 style="padding-bottom: 25px;">${data[id].slice(0, data[id].indexOf("/"))}</h
131132 < body class ="d-flex flex-column min-vh-100 " style ="height: 100%; ">
132133 < nav class ="navbar navbar-expand-lg " data-bs-theme ="dark " style ="background-color:#128211; ">
133134 < div class ="container-fluid ">
134- < a class ="navbar-brand disabled "> < img src ="/docs/ resources/logo.svg " class ="img-fluid position-relative " alt ="scratch vr extension header image " style ="width: 50px; "> </ a >
135+ < a class ="navbar-brand disabled "> < img src ="resources/logo.svg " class ="img-fluid position-relative " alt ="scratch vr extension header image " style ="width: 50px; "> </ a >
135136 < button class ="navbar-toggler " type ="button " data-bs-toggle ="collapse " data-bs-target ="#navbarNavDropdown " aria-controls ="navbarNavDropdown " aria-expanded ="false " aria-label ="Toggle navigation ">
136137 < span class ="navbar-toggler-icon "> </ span >
137138 </ button >
@@ -141,10 +142,10 @@ <h5 style="padding-bottom: 25px;">${data[id].slice(0, data[id].indexOf("/"))}</h
141142 < a class ="nav-link " href ="/ "> Home</ a >
142143 </ li >
143144 < li class ="nav-item ">
144- < a class ="nav-link " href ="/docs/ documentation/ "> Documentation</ a >
145+ < a class ="nav-link " href ="documentation/ "> Documentation</ a >
145146 </ li >
146147 < li class ="nav-item ">
147- < a class ="nav-link active " aria-current ="page " href ="/docs/ projects/ "> Project Gallery</ a >
148+ < a class ="nav-link active " aria-current ="page " href ="projects/ "> Project Gallery</ a >
148149 </ li >
149150 </ ul >
150151 </ div >
0 commit comments