Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryBass committed Aug 18, 2023
1 parent 04c49e6 commit 6d9e2f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions virtual-gallery/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -698,13 +698,13 @@ export function raycastMap(state) {
mode: 'no-cors'
};

fetch("http://haxidraw.hackclub.dev/art/list.json")
fetch("https://haxidraw-art.hackclub.dev/list.json")
.then((response) => response.text())
.then((text) => {
console.log(text);
let list = JSON.parse(text);
for (let artwork of list) {
let src = fileRead(`http://haxidraw.hackclub.dev/art/${artwork.directory}/${artwork.source}`);
let src = fileRead(`https://haxidraw-art.hackclub.dev/${artwork.directory}/${artwork.source}`);
let snapshots = [];
for (let snapshot of artwork.snapshots) {
let img = document.createElement("canvas");
Expand All @@ -722,7 +722,7 @@ export function raycastMap(state) {
ctx.lineWidth = 5;
let offset = (700 * 0.15) / 2;
let snapshotImg = new Image();
snapshotImg.src = `http://haxidraw.hackclub.dev/art/${artwork.directory}/snapshots/${snapshot}`;
snapshotImg.src = `https://haxidraw-art.hackclub.dev/${artwork.directory}/snapshots/${snapshot}`;
snapshotImg.onload = () => {
ctx.drawImage(
snapshotImg,
Expand Down

3 comments on commit 6d9e2f4

@vercel
Copy link

@vercel vercel bot commented on 6d9e2f4 Aug 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

haxidraw-art – ./astro/public/art

haxidraw-art.hackclub.dev
haxidraw-art-git-main.hackclub.dev

@vercel
Copy link

@vercel vercel bot commented on 6d9e2f4 Aug 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

haxidraw-3dgallery – ./virtual-gallery

haxidraw-3dgallery.hackclub.dev
haxidraw-3dgallery-git-main.hackclub.dev

@vercel
Copy link

@vercel vercel bot commented on 6d9e2f4 Aug 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

haxidraw-docs – ./docs

haxidraw-docs-git-main.hackclub.dev
haxidraw-docs.hackclub.dev

Please sign in to comment.