1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-07 18:39:57 +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) {
var self = this;
var self = this,
defaultOptions = {
scalar: 1.2,
particleCount: 400
};
options = $tw.utils.extend(defaultOptions,options);
if(delay > 0) {
var id = setTimeout(function() {
var p = self.outstandingTimers.indexOf(id);