Skip to content

Commit 04e2765

Browse files
committed
build: improved confetti demo page
1 parent f28e36b commit 04e2765

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

demo/vanilla/public/javascripts/confetti.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
var end = Date.now() + (15 * 1000);
1+
const end = Date.now() + (15 * 1000),
2+
colors = ['#bb0000', '#ffffff'];
23

3-
var colors = ['#bb0000', '#ffffff'];
44

55
(function frame() {
66
confetti({
@@ -21,4 +21,4 @@ var colors = ['#bb0000', '#ffffff'];
2121
if (Date.now() < end) {
2222
requestAnimationFrame(frame);
2323
}
24-
}());
24+
}());

demo/vanilla/views/confetti.pug

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ html(lang="en")
2323
link(href="/stylesheets/main.css" rel="stylesheet" type="text/css")
2424

2525
body(style="background-color: #000;")
26+
canvas#confetti(style="width: 200px;height:200px")
2627
script(src="/jquery/jquery.slim.min.js")
2728
script(src="/bootstrap/js/bootstrap.bundle.min.js")
2829
script(src="/fontawesome/js/all.js")

0 commit comments

Comments
 (0)