1function TemplateScript(){ 2 $('.item-views.services-items.type_2 .items .item').sliceHeight(); 3 4 $('.item-views.services-items.type_2 .item').each(function(){ 5 var itemID = $(this).data('id'); 6 7 window['hoverItem'+itemID] = false 8 }); 9 10 $('.item-views.services-items.type_2 .items .item>.wrap').hover(function(){ 11 var block = $(this).find('.body-info'), 12 itemID = $(this).closest('.item').data('id'); 13 14 clearTimeout(window['hoverItem'+itemID]); 15 block.find('.bottom-block').css('opacity', '1'); 16 block.find('.bottom-block').show(); 17 //var marginTop = block.outerHeight() - block.find('.bottom-block').outerHeight(); 18 var marginTop = block.find('.bottom-block').outerHeight(); 19 block.closest('.body-info').css('margin-top', -marginTop); 20 }, 21 function(){ 22 var block = $(this).find('.bottom-block'), 23 itemID = $(this).closest('.item').data('id'); 24 block.closest('.body-info').css('margin-top', '0'); 25 block.css('opacity', '0'); 26 window['hoverItem'+itemID] = setTimeout(function(){ 27 block.hide(); 28 }, 200); 29 }); 30} 31 32$(document).ready(function(){ 33 TemplateScript(); 34 BX.addCustomEvent('onCompleteActionComponent', function(eventdata, _this){ 35 setTimeout(function(){ 36 TemplateScript(); 37 }, 50); 38 }); 39});
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.