6bit.ch/html/js/particles.js
root 39752c845a modified: index.html
new file:   js/art.js
	new file:   js/hdr.js
	new file:   js/hearts.js
	new file:   js/helpers.js
	new file:   js/particles.js
	new file:   js/qlpycon.js
	new file:   js/qlpyconbanner.js
	new file:   js/snek.js
	new file:   js/sparks.js
	new file:   js/stars.js
	modified:   slamp.html
	modified:   style.css
2026-06-14 14:08:52 +02:00

10 lines
270 B
JavaScript

var pc = document.getElementById('particles');
var pctx = pc.getContext('2d');
function resizeParticlesCanvas() {
pc.width = window.innerWidth;
pc.height = window.innerHeight;
}
resizeParticlesCanvas();
window.addEventListener('resize', resizeParticlesCanvas);