diff --git a/static/main.css b/static/main.css index d61daa9..7fe1a89 100644 --- a/static/main.css +++ b/static/main.css @@ -58,7 +58,8 @@ a { } #pointer { - height: calc(100vh - 80px); + height: calc(100vh - 33px - 38px); + top: calc(33px + 38px); margin: auto; background: #ccc; position: absolute; @@ -80,14 +81,6 @@ a { right: 0; } -.fullscreen #scrollbar { - height: calc(100vh - 150px); -} - -.fullscreen #pointer { - height: calc(100vh - 150px); -} - #pane-pointer .form-group { padding: 0; margin: 0; @@ -97,7 +90,8 @@ a { margin-top: -42px; width: 100%; z-index: 110; - position: absolute; + position: fixed; + bottom: 0; } #pointer-buttons .btn { diff --git a/static/main.js b/static/main.js index 4ae6eac..04f26e9 100644 --- a/static/main.js +++ b/static/main.js @@ -257,11 +257,9 @@ var documentHashHandler = function() { var hash = window.location.hash; if (hash) { - $(hash).show(); - $('a[href="' + hash + '"]').addClass('active'); + $('a[href="' + hash + '"]').click(); } else { - $('#pane-keyboard').show(); - $('#nav a').first().addClass('active'); + $('#nav > li:first-child a').click(); } } @@ -294,10 +292,10 @@ var addListeners = function() { } var bootstrap = function() { - documentHashHandler(); shortcutsSpecialKeysOnChangeHandler(); createWebSocketConnection(); addListeners(); + documentHashHandler(); } $(function() { diff --git a/views/page/home.html b/views/page/home.html index eb39add..47b44b9 100644 --- a/views/page/home.html +++ b/views/page/home.html @@ -4,9 +4,9 @@
Desktop
-