change canvas id
This commit is contained in:
parent
e52855f954
commit
1a519a1d55
@ -9,7 +9,7 @@
|
||||
crossorigin="anonymous"/>
|
||||
</head>
|
||||
<body>
|
||||
<canvas id="canvas1"></canvas>
|
||||
<canvas id="particles"></canvas>
|
||||
<!-- javascript -->
|
||||
<script
|
||||
src="js/particles.js"
|
||||
|
@ -3,7 +3,7 @@
|
||||
https://youtu.be/d620nV6bp0A
|
||||
*/
|
||||
|
||||
const canvas = document.getElementById('canvas1');
|
||||
const canvas = document.getElementById('particles');
|
||||
const canvasContext = canvas.getContext('2d');
|
||||
canvas.width = window.innerWidth;
|
||||
canvas.height = window.innerHeight;
|
||||
|
Loading…
Reference in New Issue
Block a user