1/* 2================================================== 3Hotspots auf Bildern zeigen Popups [jQuery] 4================================================== 5vgl. BizLiNK 7952ba5d vom 16.6.2023 (+ folgende) für BIZ-295 6*/ 7et.hotspots = {} 8et.hotspots.init = function () { 9 $('.hotspot').each(function(){ 10 const h = $(this); 11 h.find('.btn-close').click(function(e) { 12 et.hotspots.hide(h); 13 }); 14 h.find('.btn-open').click(function(e) { 15 et.hotspots.hide('.hotspot'); 16 et.hotspots.show(h); 17 }); 18 h.click(function(e){ 19 if ($(e.target).is('.wrap-popup')) { 20 et.hotspots.hide(h); 21 } 22 }); 23 }); 24} 25et.hotspots.show = function (spots) { 26 $(spots).each(function(){ 27 $(this).find('.wrap-popup').fadeIn().removeAttr('aria-hidden').removeAttr('inert');; 28 $(this).find('.btn-open, .btn-close').attr('aria-expanded', true); 29 }); 30}; 31et.hotspots.hide = function (spots) { 32 $(spots).each(function(){ 33 $(this).find('.wrap-popup').fadeOut().attr('aria-hidden', 'true').attr('inert', ''); 34 $(this).find('.btn-open, .btn-close').attr('aria-expanded', false); 35 }); 36}; 37$(document).ready(function () { 38 et.hotspots.init(); 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.