Skip to content

Commit dc68d75

Browse files
New project format test
1 parent 7821399 commit dc68d75

File tree

7 files changed

+4
-1425
lines changed

7 files changed

+4
-1425
lines changed

docs/projects/-MasterMath-/Nuclear Power Plant 3D VR/index.sb3 renamed to docs/projects/-MasterMath-/Nuclear Power Plant 3D VR/Nuclear Power Plant 3D VR.sb3

File renamed without changes.

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

Lines changed: 0 additions & 546 deletions
This file was deleted.

docs/projects/-MasterMath-/Simple3D VR Demo/index.sb3 renamed to docs/projects/-MasterMath-/Simple3D VR Demo/Simple3D VR Demo.sb3

File renamed without changes.

docs/projects/-MasterMath-/Simple3D VR Demo/index.html

Lines changed: 0 additions & 438 deletions
This file was deleted.
File renamed without changes.

docs/projects/-MasterMath-/THISISATEST/index.html

Lines changed: 0 additions & 438 deletions
This file was deleted.

docs/projects/index.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,15 @@ <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`
81+
const projectName = data[id].slice(data[id].indexOf("/") + 1, data[id].lastIndexOf("/"));
82+
const project = `projects/${data[id].slice(0, data[id].indexOf("/"))}/${projectName}}/${projectName}.sb3`
8283
const html = `
8384
<h1>${data[id].slice(data[id].indexOf("/") + 1, data[id].lastIndexOf("/"))}</h1>
8485
<h5 style="margin: 0; padding-bottom: 25px">${data[id].slice(0, data[id].indexOf("/"))}</h5>
8586
<div style="padding-bottom: 25px">
86-
<a href="${project}.sb3" class="btn btn-outline-primary" download>Download Project</a>
87+
<a href="${project}" class="btn btn-outline-primary" download>Download Project</a>
8788
</div>
88-
<iframe src="${project}.html"></iframe>`;
89+
<iframe src="https://turbowarp.org/embed?project_url=https://brackets-coder.github.io/BlockifyVR/${project}"></iframe>`;
8990
document.getElementById("projectContainer").appendChild(document.createRange().createContextualFragment(html));
9091
}
9192

0 commit comments

Comments
 (0)