diff --git a/dist/main.css b/dist/main.css
index a965a4a..68e032b 100644
--- a/dist/main.css
+++ b/dist/main.css
@@ -39,12 +39,39 @@
--subpal-1-10: #ffffffff;
}
+#bottom_nav {
+ height:2rem;
+}
+
+#bottom_nav span {
+ border-bottom:1px black dotted;
+}
+
+#color_palette {
+ min-width: 0rem;
+}
+
+#color_palette #colors_word_close {
+ line-height: 2rem;
+}
+
+#color_palette #colors_word_open {
+ display:inline-block;
+ height:2rem;
+ cursor:pointer;
+ white-space: nowrap;
+}
+
#color_palette div {
display:inline-block;
height:2rem;
+ cursor:pointer;
+ white-space: nowrap;
+}
+
+#color_palette div[id^='palette_picker_'] {
width:2rem;
border:1px solid;
- cursor:pointer;
}
#color_palette #palette_picker_1 {
diff --git a/dist/main.js b/dist/main.js
index 771e576..e2c1af8 100644
--- a/dist/main.js
+++ b/dist/main.js
@@ -18,7 +18,7 @@ let infoColumnCount = 5
let operatingMode = 'NORMAL'
let noteTimeout;
let minSubnetSize = 30
-let inflightColor = '#ffffff'
+let inflightColor = 'NONE'
$('input#network,input#netsize').on('input', function() {
$('#input_form')[0].classList.add('was-validated');
@@ -29,7 +29,9 @@ $('#color_palette div').on('click', function() {
})
$('#calcbody').on('click', '.row_address, .row_range, .row_usable, .row_hosts, .note', function(event) {
- $(this).parent().css('background-color', inflightColor)
+ if (inflightColor !== 'NONE') {
+ $(this).parent().css('background-color', inflightColor)
+ }
})
$('#btn_go').on('click', function() {
@@ -40,6 +42,19 @@ $('#importBtn').on('click', function() {
importConfig($('#importExportArea').val())
})
+$('#bottom_nav #colors_word_open').on('click', function() {
+ $('#bottom_nav #color_palette').removeClass('d-none');
+ $('#bottom_nav #colors_word_close').removeClass('d-none');
+ $('#bottom_nav #colors_word_open').addClass('d-none');
+})
+
+$('#bottom_nav #colors_word_close').on('click', function() {
+ $('#bottom_nav #color_palette').addClass('d-none');
+ $('#bottom_nav #colors_word_close').addClass('d-none');
+ $('#bottom_nav #colors_word_open').removeClass('d-none');
+ inflightColor = 'NONE'
+})
+
$('#btn_import_export').on('click', function() {
$('#importExportArea').val(JSON.stringify(exportConfig(), null, 2))