diff --git a/frontend/frontend/static/frontend/assets/js/help.js b/frontend/frontend/static/frontend/assets/js/help.js index beab85f..6e22e69 100644 --- a/frontend/frontend/static/frontend/assets/js/help.js +++ b/frontend/frontend/static/frontend/assets/js/help.js @@ -82,6 +82,8 @@ window.onYouTubeIframeAPIReady = function() { // doesn't work }; $(document).ready(function() { + if (!document.getElementById('buoy')) + return; style = document.getElementById('buoy').style; cont_el = document.getElementById('help'); cont = cont_el.style; diff --git a/frontend/frontend/static/frontend/assets/js/setup-tool-ext.js b/frontend/frontend/static/frontend/assets/js/setup-tool-ext.js index 6e132c5..053a8de 100644 --- a/frontend/frontend/static/frontend/assets/js/setup-tool-ext.js +++ b/frontend/frontend/static/frontend/assets/js/setup-tool-ext.js @@ -19,8 +19,20 @@ window.ext_tool = { 'update_ui': update_tool_ui }; -$(document).ready(function(){ +function show_ext(show) { + $("#st-ext-trigger")[0].style.display = show ? "inline-block" : "none"; + $("#st-clicker-trigger")[0].style.display = !show ? "inline-block" : "none"; + $("#st-extended")[0].style.display = !show ? "block" : "none"; + $("#st-clicker")[0].style.display = show ? "block" : "none"; +} +$(document).ready(function(){ + $("#st-ext-trigger").click(function(){ + show_ext(false); + }); + $("#st-clicker-trigger").click(function(){ + show_ext(true); + }); }); diff --git a/frontend/frontend/templates/frontend/setup.html b/frontend/frontend/templates/frontend/setup.html index d1532f3..79dee2a 100644 --- a/frontend/frontend/templates/frontend/setup.html +++ b/frontend/frontend/templates/frontend/setup.html @@ -4,7 +4,7 @@ {% block content %}
-