diff --git a/js/checkbox.js b/js/checkbox.js index d39605e..62299b7 100755 --- a/js/checkbox.js +++ b/js/checkbox.js @@ -1,3 +1,19 @@ +/** + * @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" ); //jQuery(".mirador80").remove(); @@ -5,10 +21,3 @@ jQuery( window ).on( "load", function() { // 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/js/misc.js b/js/misc.js new file mode 100755 index 0000000..c2a9edc --- /dev/null +++ b/js/misc.js @@ -0,0 +1,7 @@ +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'); + } + });