diff --git a/resources/css/styles.css b/resources/css/styles.css index ef75130..395f3a3 100644 --- a/resources/css/styles.css +++ b/resources/css/styles.css @@ -229,8 +229,7 @@ input[type="text"]:focus, input[type="password"]:focus, select.form-control:focu .form-range::-webkit-slider-runnable-track { width: 100%; height: 10px; - /* background: linear-gradient(to right, #4a47a3 0%, #4a47a3 50%, #ddd 50%); */ - background: linear-gradient(to right, #4a47a3 0%, #4a47a3 calc(var(--value) * 100% - 10px), #ddd calc(var(--value) * 100% - 10px), #ddd 100%); + background: linear-gradient(to right, #4a47a3 calc(var(--value) * 100%), #ddd 100%, #ddd 100%); border-radius: 5px; } diff --git a/resources/js/config_script.js b/resources/js/config_script.js index 8feac94..22f8a1f 100644 --- a/resources/js/config_script.js +++ b/resources/js/config_script.js @@ -2,7 +2,6 @@ const oAuthBtn = document.getElementById('oauth_btn'); let currentAuthorizationToken = null; const servicesRequiringCredentials = ['pikpak',]; -const rangeInput = document.querySelector('.form-range'); const providerSignupLinks = { pikpak: 'https://mypikpak.com/drive/activity/invited?invitation-code=52875535', seedr: 'https://www.seedr.cc/?r=2726511', @@ -308,7 +307,3 @@ document.addEventListener('DOMContentLoaded', function () { return new bootstrap.Tooltip(tooltipTriggerEl) }); }); - -rangeInput.addEventListener('input', function() { - this.style.setProperty('--value', (this.value - this.min) / (this.max - this.min)); -}); \ No newline at end of file