PageSourceSearch

https://novo-virje.hr/plugins/content/rc_gallery/rc_shadowbox/rc_shadowbox.js?1610295487

js novo-virje.hr collected 2026-10-03 00:49:52 UTC 6,953 bytes, 14 lines download raw bytes

1function rc_sb_insertButton(a,b,c,d){var e="";"undefined"!=typeof d&&(e+='<a href="'+d+'" title="'+a+'">');var f="rc_sb_addonbutton_"+rc_sb_buttonID;e+='<div title="'+a+'" class="rc_sb_button rc_sb_addonbutton '+b+'" id="'+f+'"></div>',"undefined"!=typeof d&&(e+="</a>"),rc_sb_toolbarAddonButtonsHTML+=e,rc_sb_addonFunctions[rc_sb_buttonID]=function(){c()},rc_sb_buttonID++}function rc_sb_preload(a,b){jQuery("<img/>").load(function(){b()}).attr("src",a)}function rc_sb_setupSlides(){jQuery("a[rel^='shadowbox']").each(function(){rc_sb_slideURLs[rc_sb_slideURLs.length]=jQuery(this).attr("href"),rc_sb_slideIDs[rc_sb_slideIDs.length]="rc_sb_slide_"+rc_sb_slideIDs.length,rc_sb_slideRootElements[rc_sb_slideRootElements.length]=this}),jQuery("a[rel^='shadowbox']").on("click",function(a){a.preventDefault(),rc_sb_createShadowbox(),rc_sb_openSlide(rc_sb_slideURLs.indexOf(jQuery(this).attr("href")),!1,280)})}function rc_sb_openSlide(a,b,c){rc_sb_preload(rc_sb_slideURLs[a],function(){rc_sb_giveFocus(a,c),rc_sb_currentSlideID=a,rc_sb_updateNavigationButtons(a),jQuery("#"+rc_sb_slideIDs[a]).attr("src",rc_sb_slideURLs[a])});var d='<img class="rc_sb_image" id="'+rc_sb_slideIDs[a]+'" />';0==jQuery(".rc_sb_image").length?jQuery("#rc_sb_container").append(d):0==jQuery("#"+rc_sb_slideIDs[a]).length&&(b?jQuery(d).insertAfter("#"+rc_sb_slideIDs[rc_sb_currentSlideID]):jQuery(d).insertBefore("#"+rc_sb_slideIDs[rc_sb_currentSlideID])),rc_sb_putSlideInStartingPosition(a,c)}function rc_sb_initialiseShadowboxMarkup(){rc_sb_shadowboxHTML='<div id="rc_sb_overlay"></div><div id="rc_sb_container"><div id="rc_sb_toolbar"><div id="rc_sb_close" class="rc_sb_button"></div></div>',rc_sb_shadowboxHTML+='<div id="rc_sb_prev"  class="rc_sb_button"></div><div id="rc_sb_next"  class="rc_sb_button"></div></div>'}function rc_sb_createShadowbox(){0==jQuery("#rc_sb_overlay").length&&(jQuery(rc_sb_shadowboxHTML).hide().prependTo("body").fadeIn(280),jQuery("#rc_sb_toolbar").append(rc_sb_toolbarAddonButtonsHTML),rc_sb_initialiseControls())}function rc_sb_updateNavigationButtons(a){0==a?jQuery("#rc_sb_prev").fadeOut(140):jQuery("#rc_sb_prev").fadeIn(140),a==rc_sb_slideIDs.length-1?jQuery("#rc_sb_next").fadeOut(140):jQuery("#rc_sb_next").fadeIn(140)}function rc_sb_closeShadowbox(){jQuery("#rc_sb_overlay").fadeOut(280,function(){jQuery(this).remove()}),rc_sb_placeSlideOverSourceElement(rc_sb_currentSlideID,280,0),jQuery(".rc_sb_button").remove(),setTimeout(function(){jQuery("#rc_sb_container").remove()},280)}function rc_sb_putSlideInStartingPosition(a,b){1==jQuery(".rc_sb_image").length?rc_sb_placeSlideOverSourceElement(a,0,0):rc_sb_placeSlideInCenterAtBack(a,0,0)}function rc_sb_giveFocus(a,b){rc_sb_expandSlideToFullSize(a,280,b)}function rc_sb_loseFocus(a,b){switch(b){case"left":jQuery("#"+rc_sb_slideIDs[a]).animate({left:"-50%",zIndex:"99996"},280);break;case"right":default:jQuery("#"+rc_sb_slideIDs[a]).animate({left:"150%",zIndex:"99996"},280)}}
2function rc_sb_next() {
3    if (rc_sb_currentSlideID < rc_sb_slideIDs.length - 1) {
4        rc_sb_loseFocus(rc_sb_currentSlideID, 'left');
5        rc_sb_openSlide(rc_sb_currentSlideID + 1, true);
6    }
7}
8function rc_sb_prev(){rc_sb_currentSlideID>0&&(rc_sb_loseFocus(rc_sb_currentSlideID,"right"),rc_sb_openSlide(rc_sb_currentSlideID-1,!1))}function rc_sb_expandSlideToFullSize(a,b,c){rc_sb_currentPosition="FULL_SCREEN";var d=rc_sb_getRatio(jQuery(rc_sb_slideRootElements[a]).children().first()),e=rc_sb_getRatio(jQuery("#rc_sb_container")),
9
10mode=(jQuery('#rc_sb_container').width()>1000)?1:0,
11f=(mode==1)?1000:jQuery('#rc_sb_container').width(),
12g=(mode==1)?609:jQuery('#rc_sb_container').height();
13
14d>=e?g=f/d:f=g*d,jQuery("#"+rc_sb_slideIDs[a]).delay(c).animate({marginLeft:-(f/2)+"px",left:"50%",top:jQuery("#rc_sb_container").height()/2+"px",width:f+"px",height:g+"px",zIndex:"99997"},b,"linear")}function rc_sb_placeSlideOverSourceElement(a,b,c){rc_sb_currentPosition="OVERLAID";var d=jQuery(rc_sb_slideRootElements[a]).children().first(),e=jQuery(d).width(),f=jQuery(d).height(),g=jQuery(d).position().top+f/2-jQuery(window).scrollTop(),h=jQuery(d).position().left-jQuery(window).scrollLeft();jQuery("#"+rc_sb_slideIDs[a]).animate({marginLeft:"0",top:g+"px",left:h+"px",width:e+"px",height:f+"px",zIndex:"99996"},b)}function rc_sb_placeSlideInCenterAtBack(a,b){rc_sb_currentPosition="CENTER",jQuery("#"+rc_sb_slideIDs[a]).animate({marginLeft:"0",top:jQuery("#rc_sb_container").height()/2-35+"px",left:jQuery("#rc_sb_container").width()/2-35+"px",width:"70px",height:"70px",zIndex:"99996"},b)}function rc_sb_getRatio(a){return initWidth=jQuery(a).width(),initHeight=jQuery(a).height(),initWidth/initHeight}function rc_sb_initialiseControls(){jQuery(".rc_sb_addonbutton").on("click",function(){var a=jQuery(this).attr("id").replace("rc_sb_addonbutton_","");rc_sb_addonFunctions[a]()}),jQuery("#rc_sb_prev").on("click",function(){rc_sb_prev()}),jQuery("#rc_sb_next").on("click",function(){rc_sb_next()}),jQuery("#rc_sb_close").on("click",function(){rc_sb_closeShadowbox()}),jQuery("#rc_sb_container").on("click",function(a){return a.target==this&&void rc_sb_closeShadowbox()}),jQuery("#rc_sb_container").on("swipeleft",function(a){rc_sb_next()}),jQuery("#rc_sb_container").on("swiperight",function(a){rc_sb_prev()}
14),jQuery(document).on("keydown",function(a){if(!rc_sb_keyPressed)switch(a.which){case 37:rc_sb_prev();break;case 39:rc_sb_next();break;case 27:case 8:rc_sb_closeShadowbox()}rc_sb_keyPressed=!0}),jQuery(document).on("keyup",function(){rc_sb_keyPressed=!1})}function rc_sb_openAnchorLinkedSlide(){"#rc_"==window.location.hash.substring(0,4)&&jQuery(window.location.hash).parent().trigger("click")}function rc_sb_getAnchorLinkForCurrentSlide(){return jQuery(rc_sb_slideRootElements[rc_sb_currentSlideID]).children().first().attr("id")}function beginSlideShow(){rc_sb_createShadowbox(),rc_sb_openSlide(rc_sb_slideURLs.indexOf(jQuery(this).attr("href")),!1,280),setTimeout(stepSlideShow,slideShowInterval)}function stepSlideShow(){setTimeout(stepSlideShow,slideShowInterval)}var rc_sb_slideURLs=new Array,rc_sb_slideIDs=new Array,rc_sb_slideRootElements=new Array,rc_sb_currentSlideID,rc_sb_keyPressed=!1,rc_sb_currentPosition,rc_sb_shadowboxHTML,rc_sb_buttonID=1,rc_sb_toolbarAddonButtonsHTML="",rc_sb_addonFunctions=new Array;jQuery(function(){rc_sb_initialiseShadowboxMarkup(),rc_sb_setupSlides(),rc_sb_preload(rc_sb_imgFolder+"loading.gif",function(){}),rc_sb_preload(rc_sb_imgFolder+"close.png",function(){}),rc_sb_preload(rc_sb_imgFolder+"prev.png",function(){}),rc_sb_preload(rc_sb_imgFolder+"next.png",function(){}),rc_sb_openAnchorLinkedSlide()}),jQuery(window).on("hashchange",function(){rc_sb_openAnchorLinkedSlide()}),jQuery(window).resize(function(){rc_sb_expandSlideToFullSize(rc_sb_currentSlideID,0,0)}),jQuery(window).scroll(function(){"OVERLAID"==rc_sb_currentPosition&&rc_sb_placeSlideOverSourceElement(rc_sb_currentSlideID,0,0)});var isSlideshow=!1,slideShowInterval=5e3;

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.