From 3c5372eff845c1b88000d88408423f1367ab8cf3 Mon Sep 17 00:00:00 2001 From: Renemari Padillo Date: Mon, 25 Jan 2016 11:55:32 +0800 Subject: [PATCH] [STYLE] Updated iOS styles --- testbed/www/css/index.css | 3 +++ testbed/www/js/index.js | 8 +++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/testbed/www/css/index.css b/testbed/www/css/index.css index 6cf05a10..217ad5f5 100644 --- a/testbed/www/css/index.css +++ b/testbed/www/css/index.css @@ -22,7 +22,10 @@ h4,h5,h6, p { word-wrap: break-word; } .status--info { margin: 10px 0; } +.ios body { + margin-top: 30px; } button { + background:rgb(220,220,220); border: none; padding: 20px; } div, fieldset { diff --git a/testbed/www/js/index.js b/testbed/www/js/index.js index 88a55d39..f9f56e9c 100644 --- a/testbed/www/js/index.js +++ b/testbed/www/js/index.js @@ -38,7 +38,13 @@ var app = { }, // Update DOM on a Received Event receivedEvent: function(id) { - + + if (navigator.userAgent.indexOf('iPhone') >= 0) { + document.getElementsByTagName("html")[0].className = 'ios'; + } else if (navigator.userAgent.indexOf('Android') >= 0) { + document.getElementsByTagName("html")[0].className = 'android'; + } + SetDebug(true); }