Skip to content

Commit

Permalink
[STYLE] Updated iOS styles
Browse files Browse the repository at this point in the history
  • Loading branch information
renesansz committed Jan 25, 2016
1 parent f0637bb commit 3c5372e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions testbed/www/css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
8 changes: 7 additions & 1 deletion testbed/www/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

}
Expand Down

0 comments on commit 3c5372e

Please sign in to comment.