1'use strict'; 2 3(function ($) { 4'use strict'; 5 6 $(document).ready(function(e) { 7 $('style[id^="cwssvgi_"]').each(function(){ 8 var svg = this.parentNode.getElementsByTagName('svg')[0]; 9 if (undefined !== svg){ 10 var percents = this.innerText.match(/transform-origin: (\d+)% (\d+)%/); 11 if (percents) { 12 var px = percents[1]*svg.viewBox.baseVal.width/100; 13 var py = percents[2]*svg.viewBox.baseVal.height/100; 14 this.innerText = this.innerText.replace(/transform-origin: (\d+)% (\d+)%/g, 'transform-origin: '+px+'px '+py+'px'); 15 } 16 } 17 }); 18 19 $('i[id^="cwssvgi_"][data-atype="hover-rev"] svg *, i[id^="cwssvgi_"][data-atype="hover-rev"] svg').on('animationend', function(e){ 20 var parent_i = $(this).closest('i'); 21 if (parent_i.hasClass('out')) { 22 parent_i.removeClass('out'); 23 } 24 }); 25 26 $('i[id^="cwssvgi_"][data-atype="hover-rev"]').on('mouseleave', function(e){ 27 $(this).addClass('out'); 28 }); 29 30 }); 31 32 $(document).scroll(function() { 33 $('i[id^="cwssvgi_"][data-atype="scroll"]').each(function(){ 34 var y = $(document).scrollTop() + (window.innerHeight * 3/4); 35 var t = this.offsetTop; 36 if (y > t) { 37 $(this).addClass('cwssvgi_animate'); 38 } else { 39 $(this).removeClass('cwssvgi_animate'); 40 } 41 }); 42 }); 43 44})( window.jQuery );
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.