Skip to content

Commit e2363bb

Browse files
committed
Add <main> to p5.js examples
1 parent 82c2af4 commit e2363bb

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

client/modules/Preview/filesReducer.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ const defaultHTML = `<!DOCTYPE html>
2222
2323
</head>
2424
<body>
25+
<main>
26+
</main>
2527
<script src="sketch.js"></script>
2628
</body>
2729
</html>

client/testData/testReduxStore.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ const initialTestState = {
6868
},
6969
{
7070
name: 'index.html',
71-
content: `<!DOCTYPE html> <html lang="en"> <head> <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.4.0/p5.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.4.0/addons/p5.sound.min.js"></script> <link rel="stylesheet" type="text/css" href="style.css"> <meta charset="utf-8" /> </head> <body> <script src="sketch.js"></script> </body> </html>`,
71+
content: `<!DOCTYPE html> <html lang="en"> <head> <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.4.0/p5.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.4.0/addons/p5.sound.min.js"></script> <link rel="stylesheet" type="text/css" href="style.css"> <meta charset="utf-8" /> </head> <body> <main> </main> <script src="sketch.js"></script> </body> </html>`,
7272
id: '606fc1c46045e19ca2ee2646',
7373
_id: '606fc1c46045e19ca2ee2646',
7474
fileType: 'file',

server/domain-objects/createDefaultFiles.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function draw() {
77
}`;
88

99
const defaultHTML = `<!DOCTYPE html>
10-
<html>
10+
<html lang="en">
1111
<head>
1212
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.4.0/p5.js"></script>
1313
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.4.0/addons/p5.sound.min.js"></script>

server/scripts/examples.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const defaultHTML = `<!DOCTYPE html>
1515
<meta charset="utf-8" />
1616
</head>
1717
<body>
18+
<main></main>
1819
<script src="sketch.js"></script>
1920
</body>
2021
</html>

0 commit comments

Comments
 (0)