Detect web-app-capable

This commit is contained in:
Mattias Erming 2014-11-18 22:50:55 +00:00
parent 79db485a91
commit b3b7d126be
2 changed files with 7 additions and 0 deletions

View File

@ -38,6 +38,9 @@ button {
outline: none; outline: none;
padding: 0; padding: 0;
} }
.web-app-mode {
padding-top: 20px;
}
.tooltip-inner { .tooltip-inner {
background: #fff; background: #fff;
border-radius: 2px; border-radius: 2px;

View File

@ -31,6 +31,10 @@ $(function() {
var sidebar = $("#sidebar, #footer"); var sidebar = $("#sidebar, #footer");
var chat = $("#chat"); var chat = $("#chat");
if (navigator.standalone) {
$("html").addClass("web-app-mode");
}
try { try {
var pop = new Audio(); var pop = new Audio();
pop.src = "/audio/pop.ogg"; pop.src = "/audio/pop.ogg";