diff --git a/client/assets/css/main.css b/client/assets/css/main.css index 9f96b4b..94d70d6 100644 --- a/client/assets/css/main.css +++ b/client/assets/css/main.css @@ -23,10 +23,6 @@ display: none; } -#pane-keyboard { - display: block; -} - #pointer { height: 80vh; width: 95%; diff --git a/client/assets/js/main.js b/client/assets/js/main.js index a88a6f0..7394c4e 100644 --- a/client/assets/js/main.js +++ b/client/assets/js/main.js @@ -9,10 +9,19 @@ $(function() { var scrollLastTimestamp = null; var scrollLastValue = null; + var hash = window.location.hash; + + if (hash) { + $(hash).show(); + $('a[href="' + hash + '"]').addClass('active'); + } else { + $('#panel-keyboard').show(); + $('#nav a').first().addClass('active'); + } + $('.select2').select2(); $('#nav a').click(function(e) { - e.preventDefault(); $('.pane').hide(); var target = $(this).attr('href'); diff --git a/client/index.html b/client/index.html index 59635c0..dda6be5 100644 --- a/client/index.html +++ b/client/index.html @@ -15,7 +15,7 @@
- You are not connected. Refresh + You are not connected. Refresh