1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-25 01:20:30 +00:00

More and bigger confetti by default

This commit is contained in:
jeremy@jermolene.com 2023-02-01 17:12:28 +00:00
parent 1d32ef44e5
commit 8169e43087

View File

@ -19,7 +19,12 @@ function ConfettiManager() {
} }
ConfettiManager.prototype.launch = function (delay,options) { ConfettiManager.prototype.launch = function (delay,options) {
var self = this; var self = this,
defaultOptions = {
scalar: 1.2,
particleCount: 400
};
options = $tw.utils.extend(defaultOptions,options);
if(delay > 0) { if(delay > 0) {
var id = setTimeout(function() { var id = setTimeout(function() {
var p = self.outstandingTimers.indexOf(id); var p = self.outstandingTimers.indexOf(id);