PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/elintscleaningservices.co.uk/wp-content/themes/porto/js/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : /home/trave494/elintscleaningservices.co.uk/wp-content/themes/porto/js/edit-page.js |
jQuery( document ).ready( function( $ ) { if ( js_porto_vars.user_edit_pages ) { var porto_init_builder_tooltip = function( obj ) { var tooltipTriggerList = [].slice.call( obj.querySelectorAll( '.pb-edit-link' ) ); tooltipTriggerList.map( function( o ) { var title = o.getAttribute( 'data-title' ); if ( o.nextSibling && o.nextSibling.classList.contains( 'porto-block' ) ) { var tooltipobj = o.nextSibling; tooltipobj.classList.add( 'has-pb-edit' ); var tooltip_ins = new bootstrap.Tooltip( tooltipobj, { html: true, template: '<div class="tooltip porto-tooltip-wrap" role="tooltip"><div class="tooltip-inner"></div></div>', trigger: 'manual', title: '<a href="' + o.getAttribute( 'data-link' ) + '"><i class="porto-icon-edit me-1"></i>' + title + '</a>' + ( o.getAttribute( 'data-tracking-url' ) ? ( '<a href="' + o.getAttribute( 'data-tracking-url' ) + '"><i class="porto-icon-edit me-1"></i>' + o.getAttribute( 'data-tracking-title' ) + '</a>' ) : '' ), delay: 300 } ); if ( tooltip_ins && tooltip_ins._element ) { tooltip_ins._element.addEventListener( 'mouseenter', function( e ) { tooltip_ins._enter( e, tooltip_ins ); } ); tooltip_ins._element.addEventListener( 'mouseleave', function( e ) { tooltip_ins._leave( e, tooltip_ins ); } ); } } o.parentNode.removeChild( o ); } ); }; porto_init_builder_tooltip( document.body ); $( '.skeleton-loading' ).on( 'skeleton-loaded', function() { porto_init_builder_tooltip( this ); } ); $( document.body ).on( 'mouseenter mouseleave', '.porto-tooltip-wrap[role="tooltip"]', function( e ) { var $element = $( '.porto-block[aria-describedby="' + $( this ).attr( 'id' ) + '"]' ); if ( $element.length ) { var ins = bootstrap.Tooltip.getInstance( $element.get( 0 ) ); if ( ins ) { var fn_name = 'mouseenter' == e.type ? '_enter' : '_leave'; ins[fn_name]( e, ins ); } } } ).on( 'porto_init_start', function( e, wrapObj ) { // init edit tooltip if ( wrapObj.classList.contains( 'porto-posts-grid' ) ) { porto_init_builder_tooltip( wrapObj ); } } ); } });