vartheme_bs4-8.x-6.10/js/scripts.js

js/scripts.js
/**
 * @file
 * Behaviors for the vartheme bs4 theme.
 */

(function ($, _, Drupal, drupalSettings) {
  'use strict';

  Drupal.behaviors.varthemeBS4 = {
    attach: function (context) {
      // Vartheme JavaScript behaviors goes here.
      
      // Move panels ipe tray padding buttom by it's outer height.
      $('#panels-ipe-tray').parent('body').css('padding-bottom', $('#panels-ipe-tray').outerHeight());

      // Fix toolbar top space load of the page.
      var toolbarTabOuterHeight = $('#toolbar-bar').find('.toolbar-tab').outerHeight() || 0;
      var toolbarTrayHorizontalOuterHeight = $('.is-active.toolbar-tray-horizontal').outerHeight() || 0;
      var topSpace = toolbarTabOuterHeight + toolbarTrayHorizontalOuterHeight;
      $('body').css({ 'padding-top': topSpace });

    }
  };

})(window.jQuery, window._, window.Drupal, window.drupalSettings);

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc