From b3b7d126be11177c22e6165ffd6c65b81575886e Mon Sep 17 00:00:00 2001 From: Mattias Erming Date: Tue, 18 Nov 2014 22:50:55 +0000 Subject: [PATCH] Detect web-app-capable --- client/css/style.css | 3 +++ client/js/shout.js | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/client/css/style.css b/client/css/style.css index 5e0d6e0..f3e20e0 100644 --- a/client/css/style.css +++ b/client/css/style.css @@ -38,6 +38,9 @@ button { outline: none; padding: 0; } +.web-app-mode { + padding-top: 20px; +} .tooltip-inner { background: #fff; border-radius: 2px; diff --git a/client/js/shout.js b/client/js/shout.js index ee5ad9c..afc2db5 100644 --- a/client/js/shout.js +++ b/client/js/shout.js @@ -31,6 +31,10 @@ $(function() { var sidebar = $("#sidebar, #footer"); var chat = $("#chat"); + if (navigator.standalone) { + $("html").addClass("web-app-mode"); + } + try { var pop = new Audio(); pop.src = "/audio/pop.ogg";