*/
$(function(){
- try {
- // Checks if a device supports bluetooth API or not
- var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape");
+ try {
+ var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle");
console.log("Shape = " + shape);
- //alert(" Shape = " + shape);
- } catch (error) {
- // alert("Error name: " + error.name + ", message: " + error.message);
+ } catch (error) {
console.log("Error name: " + error.name + ", message: " + error.message);
- }
-
- if(shape=="circle"){
- $('body').css('max-width', '100%');
- $('body').css('max-height', '100%');
- $('body').css('background-color', 'white');
- $('body').css('margin-top', '20%');
- $('body').css('margin-bottom', '20%');
- $('body').css('margin-left', '20%');
- $('body').css('margin-right', '20%');
- }
+ }
+
+ if(shape){
+ $('body').css('max-width', '100%');
+ $('body').css('max-height', '100%');
+ $('body').css('background-color', 'white');
+ $('body').css('margin-top', '8%');
+ $('body').css('margin-bottom', '5%');
+ $('body').css('margin-left', '8%');
+ $('body').css('margin-right', '8%');
+ }
});