1/** 2 * Shortcodes common scripts 3 * 4 * @package WordPress 5 * @subpackage ThemeREX Addons 6 * @since v1.2 7 */ 8 9/* global jQuery:false */ 10/* global TRX_ADDONS_STORAGE:false */ 11 12// Disable this handler, because in replaced with css rule: min-height: 100vh 13//jQuery(document).on('action.init_hidden_elements', trx_addons_sc_fullheight_init); 14//jQuery(document).on('action.init_shortcodes', trx_addons_sc_fullheight_init); 15//jQuery(window).on('resize', trx_addons_sc_fullheight_init); 16 17// Fullheight elements init 18function trx_addons_sc_fullheight_init(e, container) { 19 "use strict"; 20 21 if (arguments.length < 2) var container = jQuery('body'); 22 if (container===undefined || container.length === undefined || container.length == 0) return; 23 24 container.find('.trx_addons_stretch_height').each(function () { 25 "use strict"; 26 var fullheight_item = jQuery(this); 27 // If item now invisible 28 if (jQuery(this).parents('div:hidden,article:hidden').length > 0) { 29 return; 30 } 31 var wh = 0; 32 var fullheight_row = jQuery(this).parents('.vc_row-o-full-height'); 33 if (fullheight_row.length > 0) { 34 wh = fullheight_row.css('height') != 'auto' ? fullheight_row.height() : 'auto'; 35 } else { 36 if (screen.height > 1000) { 37 var adminbar = jQuery('#wpadminbar'); 38 wh = jQuery(window).height() - (adminbar.length > 0 ? adminbar.height() : 0); 39 } else 40 wh = 'auto'; 41 } 42 if (wh == 'auto' || wh > 0) fullheight_item.height(wh); 43 }); 44}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.