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
10 lines
270 B
JavaScript
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);
|