
| Current Path : /var/www/html/german-vocational.cn/themes/vartheme/js/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/german-vocational.cn/themes/vartheme/js/script.js |
/**
* @file
* Behaviors for the vartheme theme.
*/
(function ($, _, Drupal, drupalSettings) {
'use strict';
Drupal.behaviors.vartheme = {
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);