Skip to content

Commit ab2a86a

Browse files
committed
Prepare demo for next cohort check-in
1 parent f6586da commit ab2a86a

File tree

7 files changed

+1166
-56
lines changed

7 files changed

+1166
-56
lines changed

p5js/js/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<!DOCTYPE html>
22
<html lang="en">
33
<head>
4-
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.11.1/p5.js"></script>
5-
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.11.1/addons/p5.sound.min.js"></script>
4+
<script src="./node_modules/p5/lib/p5.min.js"></script>
5+
<script src="./node_modules/p5.sound/dist/p5.sound.min.js"></script>
66
<meta charset="utf-8" />
77
<style>
88
html, body {
@@ -16,7 +16,7 @@
1616
</head>
1717

1818
<body>
19-
<script src="./renderer.js"></script>
20-
<script src="${packageJson.sketch}"></script>
19+
<script src="renderer.js"></script>
20+
<script src="sketch.js"></script>
2121
</body>
2222
</html>

p5js/js/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const createWindow = () => {
1010
alwaysOnTop: true,
1111
webPreferences: {
1212
nodeIntegration: true,
13-
preload: path.join(__dirname, "preload.js")
13+
contextIsolation: false
1414
}
1515
});
1616

@@ -38,4 +38,4 @@ app.whenReady().then(() => {
3838
console.log(message);
3939
});
4040
createWindow();
41-
});
41+
});

p5js/js/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,9 @@
44
"main": "main.js",
55
"devDependencies": {
66
"electron": "^37.4.0"
7+
},
8+
"dependencies": {
9+
"p5": "^2.0.5",
10+
"p5.sound": "^0.2.0"
711
}
8-
}
12+
}

0 commit comments

Comments
 (0)