mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
20 lines
478 B
JavaScript
20 lines
478 B
JavaScript
Meteor.startup(function () {
|
|
if (! amplify.store("splash")) {
|
|
$('body').append(Template.splash());
|
|
}
|
|
});
|
|
|
|
Template.splash.events = {
|
|
'click .skip': function () {
|
|
amplify.store("splash", true);
|
|
$('#splash_outer').remove();
|
|
},
|
|
'click .submit, keypress input': function (evt) {
|
|
if (evt.type === "click") {
|
|
amplify.store("splash", true);
|
|
$('#splash_outer .mask').fadeOut('fast');
|
|
$('#splash_outer .dialog_wrapper').remove();
|
|
}
|
|
}
|
|
};
|