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