contentTransfer.append(waitingBox);
$('#content-start').trigger('create');
this.app.countDown(10, $('#counter'));
- this.verticalCenter($('#waitingBox'));
},
/**
$.mobile.changePage('#contact');
},
- verticalCenter: function (obj) {
- var marginTop = ($(window).height()
- - $('[data-role=header]:visible').height()
- - $('[data-role=footer]:visible').height()
- - obj.outerHeight())/2;
- if (parseInt(obj.css('margin-top'), 10) !== marginTop) {
- obj.hide().css('margin-top', marginTop).show();
- }
- },
-
defineEvents: function ui_defineEvents() {
var self = this;
if (self.app.started) {
self.loadStartPage();
}
- $('.box').hide();
});
$('#start').on('pageshow', function () {
self.showPopup(obj.data('monit'));
obj.data('monit', '');
}
- self.verticalCenter($('.box'));
- setTimeout(function () {
- self.verticalCenter($('.box'));
- }, 30);
- });
-
- $('#start').one('pageshow', function () {
- setTimeout(function () {
- $("#content-start").css('min-height', 0);
- self.verticalCenter($('.box'));
- }, 30);
});
$( "#contact-nfc-error" ).bind({