[all][all][TFIVE-13868, improve ui layout for wearable circle manual test] 13/189813/1
authorzhongyuan <zy123.yuan@samsung.com>
Fri, 21 Sep 2018 00:44:15 +0000 (08:44 +0800)
committerzhongyuan <zy123.yuan@samsung.com>
Fri, 21 Sep 2018 00:44:15 +0000 (08:44 +0800)
Change-Id: I391d80d59e02029dc4a9fb75e900536766661e6c

142 files changed:
common/tct-2dtransforms-css3-tests/webrunner/testrunner.js
common/tct-3dtransforms-css3-tests/webrunner/testrunner.js
common/tct-ResponsiveImage-w3c-tests/webrunner/testrunner.js
common/tct-account-tizen-tests/webrunner/testrunner.js
common/tct-alarm-tizen-tests/webrunner/testrunner.js
common/tct-animations-css3-tests/webrunner/testrunner.js
common/tct-animationtiming-w3c-tests/webrunner/testrunner.js
common/tct-appcache-html5-tests/webrunner/testrunner.js
common/tct-appcontrol-tizen-tests/webrunner/testrunner.js
common/tct-application-tizen-tests/webrunner/testrunner.js
common/tct-archive-tizen-tests/webrunner/testrunner.js
common/tct-audio-html5-tests/webrunner/testrunner.js
common/tct-backgrounds-css3-tests/webrunner/testrunner.js
common/tct-badge-tizen-tests/webrunner/testrunner.js
common/tct-batterystatus-w3c-tests/webrunner/testrunner.js
common/tct-beacon-w3c-tests/webrunner/testrunner.js
common/tct-bluetooth-tizen-tests/webrunner/testrunner.js
common/tct-bookmark-tizen-tests/webrunner/testrunner.js
common/tct-browserstate-html5-tests/webrunner/testrunner.js
common/tct-calendar-tizen-tests/webrunner/testrunner.js
common/tct-callhistory-tizen-tests/webrunner/testrunner.js
common/tct-canvas-html5-tests/webrunner/testrunner.js
common/tct-colors-css3-tests/webrunner/testrunner.js
common/tct-contact-tizen-tests/webrunner/testrunner.js
common/tct-content-tizen-tests/webrunner/testrunner.js
common/tct-convergence-tizen-tests/webrunner/testrunner.js
common/tct-cors-w3c-tests/webrunner/testrunner.js
common/tct-crypto-w3c-tests/webrunner/testrunner.js
common/tct-csp-w3c-tests/webrunner/testrunner.js
common/tct-customelement-w3c-tests/webrunner/testrunner.js
common/tct-datacontrol-tizen-tests/webrunner/testrunner.js
common/tct-device-cordova-tests/webrunner/testrunner.js
common/tct-devicemotion-cordova-tests/webrunner/testrunner.js
common/tct-deviceorientation-w3c-tests/webrunner/testrunner.js
common/tct-dialogs-cordova-tests/webrunner/testrunner.js
common/tct-dnd-html5-tests/webrunner/testrunner.js
common/tct-download-tizen-tests/webrunner/testrunner.js
common/tct-events-cordova-tests/webrunner/testrunner.js
common/tct-exif-tizen-tests/webrunner/testrunner.js
common/tct-extra-html5-tests/webrunner/testrunner.js
common/tct-feedback-tizen-tests/webrunner/testrunner.js
common/tct-file-cordova-tests/webrunner/testrunner.js
common/tct-file-transfer-cordova-tests/webrunner/testrunner.js
common/tct-fileapi-w3c-tests/webrunner/testrunner.js
common/tct-filesystem-tizen-tests/webrunner/testrunner.js
common/tct-flexiblebox-css3-tests/webrunner/testrunner.js
common/tct-fmradio-tizen-tests/webrunner/testrunner.js
common/tct-fonts-css3-tests/webrunner/testrunner.js
common/tct-forms-html5-tests/webrunner/testrunner.js
common/tct-fullscreen-nonw3c-tests/webrunner/testrunner.js
common/tct-geoallow-w3c-tests/webrunner/testrunner.js
common/tct-geodeny-w3c-tests/webrunner/testrunner.js
common/tct-globalization-cordova-tests/webrunner/testrunner.js
common/tct-gumallow-w3c-tests/webrunner/testrunner.js
common/tct-humanactivitymonitor-tizen-tests/webrunner/testrunner.js
common/tct-ime-tizen-tests/webrunner/testrunner.js
common/tct-import-w3c-tests/webrunner/testrunner.js
common/tct-indexeddb-w3c-tests/webrunner/testrunner.js
common/tct-inputdevice-tizen-tests/webrunner/testrunner.js
common/tct-iotcon-tizen-tests/webrunner/testrunner.js
common/tct-jsenhance-html5-tests/webrunner/testrunner.js
common/tct-keymanager-tizen-tests/webrunner/testrunner.js
common/tct-media-cordova-tests/webrunner/testrunner.js
common/tct-mediacapture-w3c-tests/webrunner/testrunner.js
common/tct-mediacontroller-tizen-tests/webrunner/testrunner.js
common/tct-mediakey-tizen-tests/webrunner/testrunner.js
common/tct-mediaqueries-css3-tests/webrunner/testrunner.js
common/tct-messageport-tizen-tests/webrunner/testrunner.js
common/tct-messaging-email-tizen-tests/webrunner/testrunner.js
common/tct-messaging-mms-tizen-tests/webrunner/testrunner.js
common/tct-messaging-sms-tizen-tests/webrunner/testrunner.js
common/tct-mse-w3c-tests/webrunner/testrunner.js
common/tct-multicolumn-css3-tests/webrunner/testrunner.js
common/tct-namespace-tizen-tests/webrunner/testrunner.js
common/tct-navigationtiming-w3c-tests/webrunner/testrunner.js
common/tct-network-information-cordova-tests/webrunner/testrunner.js
common/tct-networkbearerselection-tizen-tests/webrunner/testrunner.js
common/tct-nfc-tizen-tests/webrunner/testrunner.js
common/tct-notification-tizen-tests/webrunner/testrunner.js
common/tct-notification-w3c-tests/webrunner/testrunner.js
common/tct-package-tizen-tests/webrunner/testrunner.js
common/tct-pagevisibility-w3c-tests/webrunner/testrunner.js
common/tct-playerutil-tizen-tests/webrunner/testrunner.js
common/tct-power-tizen-tests/webrunner/testrunner.js
common/tct-preference-tizen-tests/webrunner/testrunner.js
common/tct-privacyprivilege-tizen-tests/webrunner/testrunner.js
common/tct-privilege-tizen-tests/webrunner/testrunner.js
common/tct-push-tizen-tests/webrunner/testrunner.js
common/tct-push-w3c-tests/webrunner/testrunner.js
common/tct-sandbox-html5-tests/webrunner/testrunner.js
common/tct-screenorientation-w3c-tests/webrunner/testrunner.js
common/tct-secureelement-tizen-tests/webrunner/testrunner.js
common/tct-security-tcs-tests/webrunner/testrunner.js
common/tct-selectorslevel1-w3c-tests/webrunner/testrunner.js
common/tct-selectorslevel2-w3c-tests/webrunner/testrunner.js
common/tct-sensor-tizen-tests/webrunner/testrunner.js
common/tct-serviceworkers-w3c-tests/webrunner/testrunner.js
common/tct-sessionhistory-html5-tests/webrunner/testrunner.js
common/tct-sound-tizen-tests/webrunner/testrunner.js
common/tct-speech-w3c-tests/webrunner/testrunner.js
common/tct-sse-w3c-tests/webrunner/testrunner.js
common/tct-svg-html5-tests/webrunner/testrunner.js
common/tct-systeminfo-tizen-tests/webrunner/testrunner.js
common/tct-systemsetting-tizen-tests/webrunner/testrunner.js
common/tct-template-w3c-tests/webrunner/testrunner.js
common/tct-text-css3-tests/webrunner/testrunner.js
common/tct-time-tizen-tests/webrunner/testrunner.js
common/tct-tizen-tizen-tests/webrunner/testrunner.js
common/tct-touchevent-w3c-tests/webrunner/testrunner.js
common/tct-transitions-css3-tests/webrunner/testrunner.js
common/tct-tv-audiocontrol-tizen-tests/webrunner/testrunner.js
common/tct-tv-channel-tizen-tests/webrunner/testrunner.js
common/tct-tv-displaycontrol-tizen-tests/webrunner/testrunner.js
common/tct-tv-info-tizen-tests/webrunner/testrunner.js
common/tct-tv-window-tizen-tests/webrunner/testrunner.js
common/tct-typedarrays-nonw3c-tests/webrunner/testrunner.js
common/tct-ui-css3-tests/webrunner/testrunner.js
common/tct-vibration-w3c-tests/webrunner/testrunner.js
common/tct-video-html5-tests/webrunner/testrunner.js
common/tct-voicecontrol-tizen-tests/webrunner/testrunner.js
common/tct-webaudio-w3c-tests/webrunner/testrunner.js
common/tct-webgl-nonw3c-tests/webrunner/testrunner.js
common/tct-webmessaging-w3c-tests/webrunner/testrunner.js
common/tct-websetting-tizen-tests/webrunner/testrunner.js
common/tct-websocket-w3c-tests/webrunner/testrunner.js
common/tct-webstorage-w3c-tests/webrunner/testrunner.js
common/tct-webwidget-w3c-tests/webrunner/testrunner.js
common/tct-wgtapi01-w3c-tests/webrunner/testrunner.js
common/tct-wgtapi02-w3c-tests/webrunner/testrunner.js
common/tct-widget01-w3c-tests/webrunner/testrunner.js
common/tct-widget02-w3c-tests/webrunner/testrunner.js
common/tct-widgetpolicy-w3c-tests/webrunner/testrunner.js
common/tct-widgetservice-tizen-tests/webrunner/testrunner.js
common/tct-woff-w3c-tests/webrunner/testrunner.js
common/tct-workers-w3c-tests/webrunner/testrunner.js
common/tct-xmlhttprequest-w3c-tests/webrunner/testrunner.js
mobile/tct-capability-tests/webrunner/testrunner.js
mobile/tct-deprecatedapi-tizen-tests/webrunner/testrunner.js
tv/tct-capability-tests/webrunner/testrunner.js
tv/tct-deprecatedapi-tizen-tests/webrunner/testrunner.js
wearable/tct-capability-tests/webrunner/testrunner.js
wearable/tct-deprecatedapi-tizen-tests/webrunner/testrunner.js

index db3efb87de1d5f58a0dbf4db07b25bd5fc523167..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,27 +29,23 @@ Authors:
 
 */
 $(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%');
+  }
+});
 
 var STUB_PORT = "";
 var RESOURCE_DIR;
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..5d6575a6c53285c1e5423b257e5b2495d5c2a3cd 100755 (executable)
@@ -29,27 +29,23 @@ Authors:
 
 */
 $(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%');
+  }
+});
 var STUB_PORT = "";
 var RESOURCE_DIR;
 $.ajax({
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 0c206ecfd319b81262bca94828cd7ab66afaa242..47680a3a36b916572e1c53037290b55216d2ffb0 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 41333408f438553f48b4001abce0d23f241d9f8d..bb4da28f7bffb60171abfebed50c71bd90b848de 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 41333408f438553f48b4001abce0d23f241d9f8d..bb4da28f7bffb60171abfebed50c71bd90b848de 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index db3efb87de1d5f58a0dbf4db07b25bd5fc523167..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,27 +29,23 @@ Authors:
 
 */
 $(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%');
+  }
+});
 
 var STUB_PORT = "";
 var RESOURCE_DIR;
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 41333408f438553f48b4001abce0d23f241d9f8d..bb4da28f7bffb60171abfebed50c71bd90b848de 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";
index 114c8f1659b8f3d6a4bb9d4a9fea28507daab8c6..ba385d3f4f41399ef09db33f5d426617e7fb88be 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(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%');
+  }
 });
 
 var STUB_PORT = "";