<body>
<div id="start" data-role="page">
- <div data-role="header" id="header-start" data-position="fixed">
+ <div data-role="header" id="header-start">
<h1>Contacts exchanger</h1>
</div>
-
- <div data-role="content" id="content-start">
- <div id="contact-nfc-error" data-role="popup" class="center_title_1btn">
- <div class="ui-popup-title"><h1>Warning</h1></div>
+ <div data-role="content" id="content-start">loading</div>
+ <div id="contact-nfc-error" data-role="popup" class="center_title_1btn">
+ <div class="ui-popup-title"><h1>Warning</h1></div>
<div class="ui-popup-text">
If you want to use "Contact Exchanger" you must agree to access
Contacts and NFC by this application.
<a data-role="button" data-rel="back" data-inline="true"
id="acceptWarning">OK</a>
</div>
- </div>
</div>
</div>
} else {
this.loadStartContent();
}
- $.mobile.activePage.page('refresh');
- $('#start, #content-start').css("min-height", 0);
},
/**
$.mobile.changePage('#contact');
},
- disableSelections: function ui_disableSelections() {
- $.mobile.tizen.disableSelection(document);
- },
-
verticalCenter: function (obj) {
var marginTop = ($(window).height()
- $('[data-role=header]:visible').height()
if (self.app.started) {
self.loadStartPage();
}
- self.verticalCenter($('#startBox'));
+ $('.box').hide();
});
$('#start').on('pageshow', function () {
if (monit !== '' && monit !== undefined) {
self.showPopup(obj.data('monit'), obj);
}
+ self.verticalCenter($('.box'));
});
$('#start').one('pageshow', function () {
setTimeout(function () {
- self.verticalCenter($('#startBox'));
- }, 20);
+ $("#content-start").css('min-height', 0);
+ self.verticalCenter($('.box'));
+ }, 30);
});
+
$( "#contact-nfc-error" ).bind({
popupafterclose: function(){
tizen.application.getCurrentApplication().exit();