Skip to content

Commit ed86fc3

Browse files
Fix
1 parent 7fadf70 commit ed86fc3

File tree

6 files changed

+550
-5
lines changed

6 files changed

+550
-5
lines changed

docs/projects/-MasterMath-/Nuclear Power Plant 3D VR/index.html

Lines changed: 546 additions & 0 deletions
Large diffs are not rendered by default.
132 Bytes
Binary file not shown.
-839 Bytes
Binary file not shown.
-994 KB
Binary file not shown.

docs/projects/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,14 @@ <h5 class="card-title text-truncate" style="margin-bottom: 0; color: darkgreen;"
7878
}
7979

8080
function loadProject(id, data) {
81-
const project = `projects/${data[id].slice(0, data[id].indexOf("/"))}/${data[id].slice(data[id].indexOf("/") + 1, data[id].lastIndexOf("/"))}/index.sb3`
81+
const project = `projects/${data[id].slice(0, data[id].indexOf("/"))}/${data[id].slice(data[id].indexOf("/") + 1, data[id].lastIndexOf("/"))}/index`
8282
const html = `
8383
<h1>${data[id].slice(data[id].indexOf("/") + 1, data[id].lastIndexOf("/"))}</h1>
8484
<h5 style="margin: 0; padding-bottom: 25px">${data[id].slice(0, data[id].indexOf("/"))}</h5>
8585
<div style="padding-bottom: 25px">
86-
<a href="${project}" class="btn btn-outline-primary" download>Download Project</a>
86+
<a href="${project}.sb3" class="btn btn-outline-primary" download>Download Project</a>
8787
</div>
88-
<iframe style="border-radius: 8px; border: none;" src="https://turbowarp.org/embed/?project_url=https://brackets-coder.github.io/BlockifyVR/${project}"></iframe>`;
88+
<iframe src="${project}.html"></iframe>`;
8989
document.getElementById("projectContainer").appendChild(document.createRange().createContextualFragment(html));
9090
}
9191

docs/projects/projects.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
[
2-
"-MasterMath-/Nuclear Power Plant 3D VR/",
3-
"-MasterMath-/Simple3D VR Example/"
2+
"-MasterMath-/Nuclear Power Plant 3D VR/"
43
]

0 commit comments

Comments
 (0)