From e32079a97f54dd20ee4b091dfd915534139ce422 Mon Sep 17 00:00:00 2001 From: Zsolt Ero Date: Thu, 18 Jan 2024 01:46:44 +0100 Subject: [PATCH] map_howto --- website/assets/{map.js => map_howto.js} | 0 website/assets/style.css | 4 +-- website/assets/support_plans.js | 34 ++++++++++++------------- 3 files changed, 19 insertions(+), 19 deletions(-) rename website/assets/{map.js => map_howto.js} (100%) diff --git a/website/assets/map.js b/website/assets/map_howto.js similarity index 100% rename from website/assets/map.js rename to website/assets/map_howto.js diff --git a/website/assets/style.css b/website/assets/style.css index 5182048..82fe9b0 100644 --- a/website/assets/style.css +++ b/website/assets/style.css @@ -241,6 +241,6 @@ hr { } #support-plans-slider { - max-width: 600px; + max-width: 600px; margin: 50px auto; -} \ No newline at end of file +} diff --git a/website/assets/support_plans.js b/website/assets/support_plans.js index e441298..682b7f4 100644 --- a/website/assets/support_plans.js +++ b/website/assets/support_plans.js @@ -1,22 +1,22 @@ -const slider = document.getElementById('support-plans-slider'); +const slider = document.getElementById('support-plans-slider') -var arbitraryValuesForSlider = ['128MB', '256MB', '1GB', '8GB', '16GB', '32GB']; +var arbitraryValuesForSlider = ['128MB', '256MB', '1GB', '8GB', '16GB', '32GB'] var format = { - to: function(value) { - return arbitraryValuesForSlider[Math.round(value)]; - }, - from: function (value) { - return arbitraryValuesForSlider.indexOf(value); - } -}; + to: function (value) { + return arbitraryValuesForSlider[Math.round(value)] + }, + from: function (value) { + return arbitraryValuesForSlider.indexOf(value) + }, +} noUiSlider.create(slider, { - // start values are parsed by 'format' - start: '1GB', - range: { min: 0, max: arbitraryValuesForSlider.length - 1 }, - step: 1, - tooltips: true, - format: format, - pips: { mode: 'steps', format: format, density: 50 }, -}); \ No newline at end of file + // start values are parsed by 'format' + start: '1GB', + range: { min: 0, max: arbitraryValuesForSlider.length - 1 }, + step: 1, + tooltips: true, + format: format, + pips: { mode: 'steps', format: format, density: 50 }, +})