diff --git a/css/style.css b/css/style.css index d53ffac60a..67ec9df3fd 100644 --- a/css/style.css +++ b/css/style.css @@ -196,7 +196,7 @@ a:hover { } .tab-initial_setup .section { clear: both; - padding-bottom: 10px; + padding-bottom: 8px; } .tab-initial_setup .section a { display: block; @@ -241,12 +241,18 @@ a:hover { border: 1px solid silver; background-color: white; } + #interactive_block .model { + display: block; + margin: 10px 0 0 10px; + + font-weight: bold; + } #interactive_block a.reset { - position: relative; + position: absolute; display: block; - top: 265px; - left: 10px; + margin-left: 10px; + margin-top: 240px; width: 100px; height: 23px; @@ -257,6 +263,8 @@ a:hover { border: 1px solid silver; background-color: blue; + + z-index: 100; } #interactive_block a.reset:hover { text-decoration: none; diff --git a/js/serial_backend.js b/js/serial_backend.js index 8229e0fe37..e185bc922d 100644 --- a/js/serial_backend.js +++ b/js/serial_backend.js @@ -278,8 +278,8 @@ function onClosed(result) { backgroundPage.connectionId = connectionId; // also pass latest connectionId to the background page sensor_status(sensors_detected = 0); // reset active sensor indicators - $('#content').empty(); // empty content $('#tabs > ul li').removeClass('active'); // de-select any selected tabs + tab_initialize_default(); console.log('Connection closed successfully.'); } else { // Something went wrong @@ -435,44 +435,6 @@ function process_message(code, data) { $('.software-version').html(CONFIG.version); - // TODO: utilize this info - switch (CONFIG.multiType) { - case 1: // TRI - break; - case 2: // QUAD+ - break; - case 3: // QUAD X - break; - case 4: // BI - break; - case 5: // GIMBAL - break; - case 6: // Y6 - break; - case 7: // HEX 6 - break; - case 8: // FLYING_WING - break; - case 9: // Y4 - break; - case 10: // HEX6 X - break; - case 11: // OCTO X8 - case 12: - case 13: - break; - case 14: // AIRPLANE - break; - case 15: // Heli 120 - break; - case 16: // Heli 90 - break; - case 17: // Vtail - break; - case 18: // HEX6 H - break; - } - // IDENT received, show the tab content configuration_received = true; $('#tabs li a:first').click(); diff --git a/tabs/initial_setup.html b/tabs/initial_setup.html index ad1efc51c0..79ff92643e 100644 --- a/tabs/initial_setup.html +++ b/tabs/initial_setup.html @@ -26,7 +26,8 @@