Files
meteor/docs/client/splash.js
2012-02-02 17:20:07 -08:00

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();
}
}
};