Skip to content

Commit 7fadf70

Browse files
Let's try something special
1 parent 320b4e4 commit 7fadf70

File tree

5 files changed

+7
-988
lines changed

5 files changed

+7
-988
lines changed

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

Lines changed: 0 additions & 546 deletions
This file was deleted.
7.28 MB
Binary file not shown.

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

Lines changed: 0 additions & 438 deletions
This file was deleted.
839 Bytes
Binary file not shown.

docs/projects/index.html

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ <h1>Project Gallery</h1>
6666
<a href="projects?q=${data.indexOf(element)}">
6767
<div class="card" style="width: auto; border-radius: 8px;">
6868
<img src="projects/${element}thumbnail.png" class="card-img-top" style="padding: 10px; border-radius: 15px">
69-
<div class="card-body">
69+
<div class="card-body" style="padding-top: 6px;">
7070
<h5 class="card-title text-truncate" style="margin-bottom: 0; color: darkgreen;">${element.slice(element.indexOf("/") + 1, element.lastIndexOf("/"))}</h5>
7171
</div>
7272
</div>
@@ -78,11 +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`
8182
const html = `
8283
<h1>${data[id].slice(data[id].indexOf("/") + 1, data[id].lastIndexOf("/"))}</h1>
83-
<h5 style="padding-bottom: 25px;">${data[id].slice(0, data[id].indexOf("/"))}</h5>
84-
<iframe style="border-radius: 8px; border: none;" src="projects/${data[id]}index.html"></iframe>`;
85-
84+
<h5 style="margin: 0; padding-bottom: 25px">${data[id].slice(0, data[id].indexOf("/"))}</h5>
85+
<div style="padding-bottom: 25px">
86+
<a href="${project}" class="btn btn-outline-primary" download>Download Project</a>
87+
</div>
88+
<iframe style="border-radius: 8px; border: none;" src="https://turbowarp.org/embed/?project_url=https://brackets-coder.github.io/BlockifyVR/${project}"></iframe>`;
8689
document.getElementById("projectContainer").appendChild(document.createRange().createContextualFragment(html));
8790
}
8891

0 commit comments

Comments
 (0)