From a4f8c1589dc16376491c17be3ae49c37b0ca3079 Mon Sep 17 00:00:00 2001 From: rdrew Date: Thu, 12 Mar 2026 12:30:18 -0300 Subject: [PATCH] sync --- css/components/islandora_mods.css | 29 +++++++++++++++++--- js/custom.js | 45 +++++++++---------------------- olivesnews.libraries.yml | 1 + 3 files changed, 39 insertions(+), 36 deletions(-) diff --git a/css/components/islandora_mods.css b/css/components/islandora_mods.css index 83b0cd2..fd343c3 100755 --- a/css/components/islandora_mods.css +++ b/css/components/islandora_mods.css @@ -78,18 +78,39 @@ div#block-olivesnews-content .view-header { ============================================================ */ .facets-widget-links ul { - list-style-type: none; - margin-left: 0; + list-style-type: none; + margin-left: 0; } .facets-widget-links ul li { - margin-bottom: 3px; + margin-bottom: 3px; } .facets-widget-links ul span.facet-item__count { - font-weight: 600; + font-weight: 600; +} +.facets-widget-range_nouislider ul { + list-style-type: none; + margin: 0; +} + +.facets-widget-range_nouislider .facet-slider {margin: 60px 14px 0;} + +.facets-widget-range_nouislider .js-form-type-textfield { + display: flex; + /* width: 100%; */ } +.facets-widget-range_nouislider label.form-item__label { + width: 3em; +} + +.facets-widget-range_nouislider .noUi-tooltip { + border: 1px solid #8196a2; +} +.facets-widget-range_nouislider .noUi-connect { + background: #691803; +} /* ============================================================ SITE HEADER diff --git a/js/custom.js b/js/custom.js index 5bb6701..8e690eb 100644 --- a/js/custom.js +++ b/js/custom.js @@ -1,39 +1,20 @@ (function (Drupal) { - //stuff goes here + window.onload = function() { + var inputField = document.getElementById('nouislider-input-from'); + var str = inputField.value.toString(); + str = str.slice(0, -3); + str = parseInt(str); + inputField.value = str; + + var inputField = document.getElementById('nouislider-input-to'); + var str = inputField.value.toString(); + str = str.slice(0, -3); + str = parseInt(str); + inputField.value = str; + }; })(Drupal); -(function (Drupal) { - Drupal.behaviors.LangSwitchBehavior = { - attach: function (context, settings) { - const textEn = context.querySelector('#text-en'); - const textFr = context.querySelector('#text-fr'); - const showEn = context.querySelector('#show-text-en'); - const showFr = context.querySelector('#show-text-fr'); - - // Hide French text initially - if (textFr) { - textFr.style.display = 'none'; - } - - if (showEn && textEn && textFr) { - showEn.addEventListener('click', function (e) { - e.preventDefault(); - textEn.style.display = ''; - textFr.style.display = 'none'; - }); - } - - if (showFr && textEn && textFr) { - showFr.addEventListener('click', function (e) { - e.preventDefault(); - textEn.style.display = 'none'; - textFr.style.display = ''; - }); - } - } - }; -})(Drupal); //(function (Drupal, once) { diff --git a/olivesnews.libraries.yml b/olivesnews.libraries.yml index c522134..452e503 100755 --- a/olivesnews.libraries.yml +++ b/olivesnews.libraries.yml @@ -57,6 +57,7 @@ global-styling: js: js/checkbox.js: {} + js/custom.js: {} dependencies: - core/drupal