1jQuery(document).ready(function($) { 2 "use strict"; 3 4 $('.fourk-icon').each(function() { 5 var trigger = $(this).attr('data-hover-trigger'); 6 7 if ( typeof trigger == 'undefined' ) { 8 return; 9 } 10 11 var $this = $(this); 12 var $hoverable = $(this); 13 14 if ( trigger == 'row' ) { 15 $hoverable = $(this).parents('.wpb_row:eq(0)'); 16 } else if ( trigger == 'parent' ) { 17 $hoverable = $(this).parent(); 18 } else if ( trigger == 'parent2' ) { 19 $hoverable = $(this).parent().parent(); 20 } else if ( trigger == 'parent3' ) { 21 $hoverable = $(this).parent().parent().parent(); 22 } else if ( trigger == 'parent4' ) { 23 $hoverable = $(this).parent().parent().parent().parent(); 24 } 25 26 try { 27 $hoverable.hover(function() { 28 $this.toggleClass('hovered'); 29 if ( $this.hasClass('hovered') ) { 30 $this.attr('data-orig-background', $this.css('backgroundColor')); 31 $this.css('backgroundColor', $this.attr('data-hover-background')); 32 } else { 33 $this.css('backgroundColor', $this.attr('data-orig-background')); 34 } 35 }); 36 } catch (err) { 37 } 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.