From 7bbe91ee740c51ff14a23c590ea882773693121d Mon Sep 17 00:00:00 2001 From: rdrew Date: Tue, 24 Jun 2025 11:23:08 -0300 Subject: [PATCH] searck block tweaks --- js/checkbox.js | 24 +++++++----------------- olivesdocs.libraries.yml | 1 + 2 files changed, 8 insertions(+), 17 deletions(-) diff --git a/js/checkbox.js b/js/checkbox.js index 739d3fa..d39605e 100755 --- a/js/checkbox.js +++ b/js/checkbox.js @@ -1,24 +1,14 @@ -/** - * @file - * Customization of checkbox. - */ - -((Drupal) => { - /** - * Constructs a checkbox input element. - * - * @return {string} - * A string representing a DOM fragment. - */ - Drupal.theme.checkbox = () => - ''; -})(Drupal); - jQuery( window ).on( "load", function() { - console.log( "window loaded" ); +// console.log( "window loaded" ); //jQuery(".mirador80").remove(); //jQuery(".mirador104").click(); // jQuery('.mirador104 button.MuiButtonBase-root.MuiIconButton-root').trigger('click'); }); +jQuery(window).on('load', function () { + if (jQuery(window).width() <= 999) { + console.log( "the search block is placed with js" ); + jQuery('#block-olivesdocs-solrsearchcontentadvancedsearchforpage').prependTo('#content'); + } + }); diff --git a/olivesdocs.libraries.yml b/olivesdocs.libraries.yml index 20749ce..c54fa52 100755 --- a/olivesdocs.libraries.yml +++ b/olivesdocs.libraries.yml @@ -57,6 +57,7 @@ global-styling: js: js/checkbox.js: {} + js/misc.js: {} dependencies: - core/drupal