1jQuery( document ).ready( function($) { 2 if ( $('body').find('.dipl_hotspot').length > 0 ) { 3 $( '.dipl_hotspot' ).each( function() { 4 dipl_init_hotspot( $( this ) ); 5 } ); 6 } 7} ); 8 9// Init the hotspot. 10function dipl_init_hotspot( $wrapObj ) { 11 12 let hotspotWrapper = $wrapObj.find('.dipl_hotspot_wrapper'); 13 14 hotspotWrapper.find('.dipl_marker').each(function(){ 15 16 let $this = jQuery(this), 17 hotspotWrapper = $wrapObj.find('.dipl_hotspot_wrapper'), 18 dataArgs = JSON.parse( hotspotWrapper.attr('data-args') ), 19 tooltipEntranceAnimation = dataArgs['tooltip-entrance-animation'], 20 animationDurartion = parseInt( dataArgs['global-animation-durartion'] ), 21 tooltipWidth = parseInt( dataArgs['tooltip-width'] ), 22 triggerEvent = dataArgs['trigger-event'], 23 tooltipInteractive = ( 'on' === dataArgs['global-tooltip-interactive'] ) ? true : false, 24 parent = jQuery(this).closest('.dipl_hotspot_item'), 25 tooltipWrapper = parent.find('.dipl_tooltip_wrapper'), 26 tooltipWrapperInner = tooltipWrapper.html(), 27 orderNumber = 'dipl_hotspot_' + dataArgs['order-number']; 28 29 if ( tooltipWrapper.length > 0 && 30 ( ( ! $this.hasClass('tooltipstered') && tooltipWrapperInner.length > 0 ) || $this.hasClass('tooltipstered') ) 31 ) { 32 if ( $this.hasClass('tooltipstered') ) { 33 $this.tooltipster('destroy'); 34 } 35 $this.tooltipster({ 36 contentCloning: true, 37 trigger: triggerEvent, 38 animation: tooltipEntranceAnimation, 39 animationDuration: animationDurartion, 40 arrow: false, 41 interactive: tooltipInteractive, 42 maxWidth: tooltipWidth, 43 theme: ['dipl_tooltip', orderNumber] 44 } ); 45 } 46 } ); 47}
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.