mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-25 17:40:29 +00:00
More and bigger confetti by default
This commit is contained in:
parent
1d32ef44e5
commit
8169e43087
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user