PageSourceSearch

https://www.nacmconnect.org/wp-content/cache/min/1/wp-content/plug…/jquery.reflection.js?ver=1780939558

js nacmconnect.org collected 2026-10-09 22:26:00 UTC 2,359 bytes, 9 lines download raw bytes

1/*!
2	reflection.js for jQuery v1.12
3	(c) 2006-2013 Christophe Beyls <http://www.digitalia.be>
4	MIT-style license.
5*/
6;(function($){$.fn.reflect=function(options){options=$.extend({height:1/3,opacity:0.5},options);return this.unreflect().each(function(){var img=this;if(/^img$/i.test(img.tagName)){function doReflect(){var imageWidth=img.width,imageHeight=img.height,reflection,reflectionHeight,wrapper,context,gradient;reflectionHeight=Math.floor((options.height>1)?Math.min(imageHeight,options.height):imageHeight*options.height);reflection=$("<canvas />")[0];if(reflection.getContext){context=reflection.getContext("2d");try{$(reflection).attr({width:imageWidth,height:reflectionHeight});context.save();context.translate(0,imageHeight-1);context.scale(1,-1);context.drawImage(img,0,0,imageWidth,imageHeight);context.restore();context.globalCompositeOperation="destination-out";gradient=context.createLinearGradient(0,0,0,reflectionHeight);gradient.addColorStop(0,"rgba(255, 255, 255, "+(1-options.opacity)+")");gradient.addColorStop(1,"rgba(255, 255, 255, 1.0)");context.fillStyle=gradient;context.rect(0,0,imageWidth,reflectionHeight);context.fill()}catch(e){return}}else{if(!window.ActiveXObject)return;reflection=$("<img />").attr("src",img.src).css({width:imageWidth,height:imageHeight,marginBottom:reflectionHeight-imageHeight,filter:"FlipV progid:DXImageTransform.Microsoft.Alpha(Opacity="+(options.opacity*100)+", FinishOpacity=0, Style=1, StartX=0, StartY=0, FinishX=0, FinishY="+(reflectionHeight/imageHeight*100)+")"})[0]}
7$(reflection).css({display:"block",border:0});wrapper=$(/^a$/i.test(img.parentNode.tagName)?"<span />":"<div />").insertAfter(img).append([img,reflection])[0];wrapper.className=img.className;$(img).data("reflected",wrapper.style.cssText=img.style.cssText);$(wrapper).css({width:imageWidth,height:imageHeight+reflectionHeight,overflow:"hidden"});img.style.cssText="display: block; border: 0px";img.className="reflected"}
8if(img.complete)doReflect();else $(img).load(doReflect)}})}
9$.fn.unreflect=function(){return this.unbind("load").each(function(){var img=this,reflected=$(this).data("reflected"),wrapper;if(reflected!==undefined){wrapper=img.parentNode;img.className=wrapper.className;img.style.cssText=reflected;$(img).data("reflected",null);wrapper.parentNode.replaceChild(img,wrapper)}})}})(window.jQuery||window.Zepto)

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.