PageSourceSearch

https://www.snowbirds.org/wp-content/themes/CSA-Theme/jq/jquery.bpopup.js

js snowbirds.org collected 2026-10-02 10:04:09 UTC 4,929 bytes, 1 lines download raw bytes

1!function(o){"use strict";o.fn.bPopup=function(t,n){function e(){b(k.onOpen),F=(L.data("bPopup")||0)+1,T=E+F+"__",v="auto"!==k.position[1],x="auto"!==k.position[0],P="fixed"===k.positionStyle,I=B.outerHeight(!0),S=B.outerWidth(!0),k.loadUrl?i():a()}function i(){switch(k.contentContainer=o(k.contentContainer||B),k.content){case"iframe":var t=o('<iframe class="b-iframe" '+k.iframeAttr+"></iframe>");t.appendTo(k.contentContainer),I=B.outerHeight(!0),S=B.outerWidth(!0),a(),t.attr("src",k.loadUrl),b(k.loadCallback);break;case"image":a(),o("<img />").load(function(){b(k.loadCallback),d(o(this))}).attr("src",k.loadUrl).hide().appendTo(k.contentContainer);break;default:a(),o('<div class="b-ajax-wrapper"></div>').load(k.loadUrl,k.loadData,function(t,n,e){b(k.loadCallback,n),d(o(this))}).hide().appendTo(k.contentContainer)}}function a(){k.modal&&o('<div class="b-modal '+T+'"></div>').css({backgroundColor:k.modalColor,position:"fixed",top:0,right:0,bottom:0,left:0,opacity:0,zIndex:k.zIndex+F}).appendTo(k.appendTo).fadeTo(k.speed,k.opacity),w(),B.data("bPopup",k).data("id",T).css({left:"slideIn"==k.transition||"slideBack"==k.transition?"slideBack"==k.transition?_.scrollLeft()+A:-1*(H+S):f(!(!k.follow[0]&&x||P)),position:k.positionStyle||"absolute",top:"slideDown"==k.transition||"slideUp"==k.transition?"slideUp"==k.transition?_.scrollTop()+j:U+-1*I:h(!(!k.follow[1]&&v||P)),"z-index":k.zIndex+F+1}).each(function(){k.appending&&o(this).appendTo(k.appendTo)}),u(!0)}function l(){return k.modal&&o(".b-modal."+B.data("id")).fadeTo(k.speed,0,function(){o(this).remove()}),r(),clearTimeout(z),u(),!1}function s(t){j=g(),A=C(),y=m(),y&&(clearTimeout(W),W=setTimeout(function(){w(),t=t||k.followSpeed,B.dequeue().each(function(){P?o(this).css({left:H,top:U}):o(this).animate({left:k.follow[0]?f(!0):"auto",top:k.follow[1]?h(!0):"auto"},t,k.followEasing)})},50))}function d(o){var t=o.width(),n=o.height(),e={};k.contentContainer.css({height:n,width:t}),n>=B.height()&&(e.height=B.height()),t>=B.width()&&(e.width=B.width()),I=B.outerHeight(!0),S=B.outerWidth(!0),w(),k.contentContainer.css({height:"auto",width:"auto"}),e.left=f(!(!k.follow[0]&&x||P)),e.top=h(!(!k.follow[1]&&v||P)),B.animate(e,250,function(){o.show(),y=m()})}function c(){L.data("bPopup",F),B.delegate(".bClose, ."+k.closeClass,"click."+T,l),k.modalClose&&o(".b-modal."+T).css("cursor","pointer").bind("click",l),O||!k.follow[0]&&!k.follow[1]||L.bind("scroll."+T,function(){y&&B.dequeue().animate({left:k.follow[0]?f(!P):"auto",top:k.follow[1]?h(!P):"auto"},k.followSpeed,k.followEasing)}).bind("resize."+T,function(){s()}),k.escClose&&_.bind("keydown."+T,function(o){27==o.which&&l()})}function r(){k.scrollBar||o("html").css("overflow","auto"),o(".b-modal."+T).unbind("click"),_.unbind("keydown."+T),L.unbind("."+T).data("bPopup",L.data("bPopup")-1>0?L.data("bPopup")-1:null),B.undelegate(".bClose, ."+k.closeClass,"click."+T,l).data("bPopup",
1null)}function u(o){function t(t){B.css({display:"block",opacity:1}).animate(t,k.speed,k.easing,function(){p(o)})}switch(o?k.transition:k.transitionClose||k.transition){case"slideIn":t({left:o?f(!(!k.follow[0]&&x||P)):_.scrollLeft()-(S||B.outerWidth(!0))-q});break;case"slideBack":t({left:o?f(!(!k.follow[0]&&x||P)):_.scrollLeft()+A+q});break;case"slideDown":t({top:o?h(!(!k.follow[1]&&v||P)):_.scrollTop()-(I||B.outerHeight(!0))-q});break;case"slideUp":t({top:o?h(!(!k.follow[1]&&v||P)):_.scrollTop()+j+q});break;default:B.stop().fadeTo(k.speed,o?1:0,function(){p(o)})}}function p(o){o?(c(),b(n),k.autoClose&&(z=setTimeout(l,k.autoClose))):(B.hide(),b(k.onClose),k.loadUrl&&(k.contentContainer.empty(),B.css({height:"auto",width:"auto"})))}function f(o){return o?H+_.scrollLeft():H}function h(o){return o?U+_.scrollTop():U}function b(t,n){o.isFunction(t)&&t.call(B,n)}function w(){U=v?k.position[1]:Math.max(0,(j-B.outerHeight(!0))/2-k.amsl),H=x?k.position[0]:(A-B.outerWidth(!0))/2,y=m()}function m(){return j>B.outerHeight(!0)&&A>B.outerWidth(!0)}function g(){return D.innerHeight||L.height()}function C(){return D.innerWidth||L.width()}o.isFunction(t)&&(n=t,t=null);var k=o.extend({},o.fn.bPopup.defaults,t);k.scrollBar||o("html").css("overflow","hidden");var T,y,v,x,P,U,H,I,S,W,z,B=this,_=o(document),D=window,L=o(D),j=g(),A=C(),E="__b-popup",O=/OS 6(_\d)+/i.test(navigator.userAgent),q=200,F=0;return B.close=function(){l()},B.reposition=function(o){s(o)},B.each(function(){o(this).data("bPopup")||e()})},o.fn.bPopup.defaults={amsl:50,appending:!0,appendTo:"body",autoClose:!1,closeClass:"b-close",content:"ajax",contentContainer:!1,easing:"swing",escClose:!0,follow:[!0,!0],followEasing:"swing",followSpeed:500,iframeAttr:'scrolling="no" frameborder="0"',loadCallback:!1,loadData:!1,loadUrl:!1,modal:!0,modalClose:!0,modalColor:"#000",onClose:!1,onOpen:!1,opacity:.8,position:["auto","auto"],positionStyle:"absolute",scrollBar:!0,speed:250,transition:"fadeIn",transitionClose:!1,zIndex:99989999}}(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.