PageSourceSearch

https://horthistoria.com/rw_common/themes/photogenic/scripts/scripts.min.js?rwcache=780514754

js horthistoria.com collected 2026-10-02 05:35:33 UTC 14,277 bytes, 20 lines download raw bytes

1var ThemeFlood={};ThemeFlood.jQuery=jQuery.noConflict(true);var $ThemeFlood=ThemeFlood.jQuery;ThemeFlood.themeFunctions={};ThemeFlood.themeFunctions=(function(){var c=ThemeFlood.jQuery;var b=c;var a=c.noConflict();a(document).ready(function(){var d=(function(){var e=10;for(i=1;i<=e;i++){a("#myExtraContent"+i+" script").remove();a("#myExtraContent"+i).appendTo("#extraContainer"+i)}})()});a(document).ready(function(){a("#fs").appendTo("#freeStyle");a("img[src$='banner.jpg'], img[src$='Banner.jpg'], img[src$='header.jpg'], img[src$='Header.jpg'], img[src$='freestyle.jpg'], img[src$='Freestyle.jpg'], img[src$='freestyle.jpg'], img[src$='FreeStyle.jpg']").appendTo("#freeStyle")});a(document).ready(function(){if(a("#rwBanner img").attr("data-rwbanner")==="%banner_path%"){b("#rwBanner img").remove()}else{a("#rwBanner img").attr("src",b("#rwBanner img").attr("data-rwbanner"))}});a(document).ready(function(){a("#nav li").each(function(d){d=d+1;a(this).addClass("link"+d)});a("#nav ul").each(function(d){d=d+1;a(this).addClass("list"+d)})});a(document).ready(function(){a("a.newtab").append("<span class='newWindowIcon'> <i class='fa fa-external-link'></i></span>");a("a.newtab").click(function(){window.open(b(this).attr("href"));return false})});a("#backToTop, .backtotop").click(function(){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")||location.hostname==this.hostname){var d=b(this.hash);d=d.length?d:a("[name="+this.hash.slice(1)+"]");if(d.length){a("html,body").animate({scrollTop:d.offset().top},1000);return false}}});a(document).ready(function(){if(/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent)){a("body").addClass("touchDevice")}});a(document).ready(function(){a(".raftNavArrow").removeClass("openedState");a(".raftNavArrow").addClass("closedState");a(".raftNavTitle").click(function(){a(".raftNav").slideToggle(500);a(".raftNavArrow").toggleClass("closedState");a(".raftNavArrow").toggleClass("openedState");return false})});a(document).ready(function(){a(".modal").appendTo(b("body"))});(function(j,f,l,h){function k(e,m){this.el=e;this.$el=j(this.el);this.options=j.extend({},g,m);this._defaults=g;this._name=d;this.init()}var d="nivoLightbox",g={effect:"fade",theme:"default",keyboardNav:true,clickOverlayToClose:true,onInit:function(){},beforeShowLightbox:function(){},afterShowLightbox:function(m){},beforeHideLightbox:function(){},afterHideLightbox:function(){},onPrev:function(m){},onNext:function(m){},errorMessage:"The requested content cannot be loaded. Please try again later."};k.prototype={init:function(){var e=this;if(!j("html").hasClass("nivo-lightbox-notouch")){j("html").addClass("nivo-lightbox-notouch")}if("ontouchstart" in l){j("html").removeClass("nivo-lightbox-notouch")}this.$el.on("click",function(m){e.showLightbox(m)});if(this.options.keyboardNav){j("body").off("keyup").on("keyup",function(o){var m=o.keyCode?o.keyCode:o.which;if(m==27){e.destructLightbox()}if(m==37){j(".nivo-lightbox-prev").trigger("click")}if(m==39){j(".nivo-lightbox-next").trigger("click")}})}this.options.onInit.call(this)},showLightbox:function(p){var x=this,v=this.$el;var m=this.checkContent(v);if(!m){return}p.preventDefault();this.options.beforeShowLightbox.call(this);var q=this.constructLightbox();if(!q){return}var w=q.find(".nivo-lightbox-content");if(!w){return}j("body").addClass("nivo-lightbox-body-effect-"+this.options.effect);this.processContent(w,v);if(this.$el.attr("data-lightbox-gallery")){var e=j('[data-lightbox-gallery="'+this.$el.attr("data-lightbox-gallery")+'"]');j(".nivo-lightbox-nav").show();j(".nivo-lightbox-prev").off("click").on("click",function(o){o.preventDefault();var n=e.index(v);v=e.eq(n-1);if(!j(v).length){v=e.last()}x.processContent(w,v);x.options.onPrev.call(this,[v])});j(".nivo-lightbox-next").off("click").on("click",function(o){o.preventDefault();var n=e.index(v);v=e.eq(n+1);if(!j(v).length){v=e.first()}x.processContent(w,v);x.options.onNext.call(this,[v])})}setTimeout(function(){q.addClass("nivo-lightbox-open");x.options.afterShowLightbox.call(this,[q])},1)},checkContent:function(p){var m=this,q=p.attr("href"),o=q.match(/(youtube|youtu|vimeo)\.(com|be)\/(watch\?v=([\w-]+)|([\w-]+))/);if(q.match(/\.(jpeg|jpg|gif|png)$/i)!==null){return true}else{if(o){return true}else{if(p.attr("data-lightbox-type")=="ajax"){return true}else{if(q.substring(0,1)=="#"&&p.attr("data-lightbox-type")=="inline"){return true}else{if(p.attr("data-lightbox-type")=="iframe"){return true}}}}}return false},processContent:function(t,e){var w=this,D=e.attr("href"),q=D.match(/(youtube|youtu|vimeo)\.(com|be)\/(watch\?v=([\w-]+)|([\w-]+))/);t.html("").addClass("nivo-lightbox-loading");if(this.isHidpi()&&e.attr("data-lightbox-hidpi")){D=e.attr("data-lightbox-hidpi")}if(D.match(/\.(jpeg|jpg|gif|png)$/i)!==null){var C=j("<img>",{src:D});C.one("load",function(){var n=j('<div class="nivo-lightbox-image" />');n.append(C);t.html(n).removeClass("nivo-lightbox-loading");n.css({"line-height":j(".nivo-lightbox-content").height()+"px",height:j(".nivo-lightbox-content").height()+"px"});j(f).resize(function(){n.css({"line-height":j(".nivo-lightbox-content").height()+"px",height:j(".nivo-lightbox-content").height()+"px"})})}).each(function(){if(this.complete){j(this).load()}});C.error(function(){var n=j('<div class="nivo-lightbox-error"><p>'+w.options.errorMessage+"</p></div>");t.html(n).removeClass("nivo-lightbox-loading")})}else{if(q){var B="",y="nivo-lightbox-video";if(q[1]=="youtube"){B="http://www.youtube.com/embed/"+q[4];y="nivo-lightbox-youtube"}if(q[1]=="youtu"){B="http://www.youtube.com/embed/"+q[3];y="nivo-lightbox-youtube"}if(q[1]=="vimeo"){B="http://player.vimeo.com/video/"+q[3];y="nivo-lightbox-vimeo"}if(B){var v=j("<iframe>",{src:B,"class":y,frameborder:0,vspace:0,hspace:0,scrolling:"auto"});t.html(v);v.load(function(){t.removeClass("nivo-lightbox-loading")})}}else{if(e.attr("data-lightbox-type")=="ajax"){j.ajax({url:D,cache:false,success:function(o){var n=j('<div class="nivo-lightbox-ajax" />');n.append(o);t.html(n).removeClass("nivo-lightbox-loading");if(n.outerHeight()<t.height()){n.css({position:"relative",top:"50%","margin-top":-(n.outerHeight()/2)+"px"})}j(f).resize(function(){if(n.outerHeight()<t.height()){n.css({position:"relative",top:"50%","margin-top":-(n.outerHeight()/2)+"px"})}})},error:function(){var n=j('<div class="nivo-lightbox-error"><p>'+w.options.errorMessage+"</p></div>");t.html(n).removeClass("nivo-lightbox-loading")}})}else{if(D.substring(0,1)=="#"&&e.attr("data-lightbox-type")=="inline"){if(j(D).length){var A=j('<div class="nivo-lightbox-inline" />');A.append(j(D).clone().show());t.html(A).removeClass("nivo-lightbox-loading");if(A.outerHeight()<t.height()){A.css({position:"relative",top:"50%","margin-top":-(A.outerHeight()/2)+"px"})}j(f).resize(function(){if(A.outerHeight()<t.height()){A.css({position:"relative",top:"50%","margin-top":-(A.outerHeight()/2)+"px"})}})}else{var x=j('<div class="nivo-lightbox-error"><p>'+w.options.errorMessage+"</p></div>");t.html(x).removeClass("nivo-lightbox-loading")}}else{if(e.attr("data-lightbox-type")=="iframe"){var m=j("<iframe>",{src:D,"class":"nivo-lightbox-item",frameborder:0,vspace:0,hspace:0,scrolling:"auto"});t.html(m);m.load(function(){t.removeClass("nivo-lightbox-loading")})}else{return false}}}}}if(e.attr("title")){var z=j("<span>",{"class":"nivo-lightbox-title"});z.text(e.attr("title"));j(".nivo-lightbox-title-wrap").html(z)}else{j(".nivo-lightbox-title-wrap").html("")}},constructLightbox:function(){if(j(".nivo-lightbox-overlay").length){return j(".nivo-lightbox-overlay")}var q=j("<div>",{"class":"nivo-lightbox-overlay nivo-lightbox-theme-"+this.options.theme+" nivo-lightbox-effect-"+this.options.effect});var y=j("<div>",{"class":"nivo-lightbox-wrap"});var w=j("<div>",{"class":"nivo-lightbox-content"});var p=j('<a href="#" class="nivo-lightbox-nav nivo-lightbox-prev">Previous</a><a href="#" class="nivo-lightbox-nav nivo-lightbox-next">Next</a>');var v=j('<a href="#" class="nivo-lightbox-close" title="Close">Close</a>');var x=j("<div>",{"class":"nivo-lightbox-title-wrap"});var m=0;if(m){q.addClass("nivo-lightbox-ie")}y.append(w);y.append(x);q.append(y);q.append(p);q.append(v);j("body").append(q);var e=this;if(e.options.clickOverlayToClose){q.on("click",function(n){if(n.target===this||j(n.target).hasClass("nivo-lightbox-content")||j(n.target).hasClass("nivo-lightbox-image")){e.destructLightbox()}})}v.on("click",function(n){n.preventDefault();e.destructLightbox()});return q},destructLightbox:function(){var e=this;this.options.beforeHideLightbox.call(this);j(".nivo-lightbox-overlay").removeClass("nivo-lightbox-open");j(".nivo-lightbox-nav").hide();j("body").removeClass("nivo-lightbox-body-effect-"+e.options.effect);var m=0;if(m){j(".nivo-lightbox-overlay iframe").attr("src"," ");j(".nivo-lightbox-overlay iframe").remove()}j(".nivo-lightbox-prev").off("click");j(".nivo-lightbox-next").off("click");j(".nivo-lightbox-content").empty();this.options.afterHideLightbox.call(this)},isHidpi:function(){var m="(-webkit-min-device-pixel-ratio: 1.5),                              (min--moz-device-pixel-ratio: 1.5),                              (-o-min-device-pixel-ratio: 3/2),                              (min-resolution: 1.5dppx)";if(f.devicePixelRatio>1){return true}if(f.matchMedia&&f.matchMedia(m).matches){return true}return false}};j.fn[d]=function(e){return this.each(function(){if(!j.data(this,d)){j.data(this,d,new k(this,e))}})}})(c,window,document);a(document).ready(function(){a("a.lightbox").nivoLightbox()});
2/*!
3* FitVids 1.1
4*
5* Copyright 2013, Chris Coyier - http://css-tricks.com + Dave Rupert - http://daverupert.com
6* Credit to Thierry Koblentz - http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/
7* Released under the WTFPL license - http://sam.zoy.org/wtfpl/
8*
9*/
10a(document).ready(function(){b.fn.fitVids=function(d){var g={customSelector:null,ignore:null};if(!document.getElementById("fit-vids-style")){var f=document.head||document.getElementsByTagName("head")[0];var e=".fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}";var h=document.createElement("div");h.innerHTML='<p>x</p><style id="fit-vids-style">'+e+"</style>";f.appendChild(h.childNodes[1])}if(d){b.extend(g,d)}return this.each(function(){var j=["iframe[src*='player.vimeo.com']","iframe[src*='youtube.com']","iframe[src*='youtube-nocookie.com']","iframe[src*='kickstarter.com'][src*='video.html']","object","embed"];if(g.customSelector){j.push(g.customSelector)}var k=".fitvidsignore";if(g.ignore){k=k+", "+g.ignore}var l=b(this).find(j.join(","));l=l.not("object object");l=l.not(k);l.each(function(){var q=b(this);if(q.parents(k).length>0){return}if(this.tagName.toLowerCase()==="embed"&&q.parent("object").length||q.parent(".fluid-width-video-wrapper").length){return}if((!q.css("height")&&!q.css("width"))&&(isNaN(q.attr("height"))||isNaN(q.attr("width")))){q.attr("height",9);q.attr("width",16)}var m=(this.tagName.toLowerCase()==="object"||(q.attr("height")&&!isNaN(parseInt(q.attr("height"),10))))?parseInt(q.attr("height"),10):q.height(),n=!isNaN(parseInt(q.attr("width"),10))?parseInt(q.attr("width"),10):q.width(),o=m/n;if(!q.attr("id")){var p="fitvid"+Math.floor(Math.random()*999999);q.attr("id",p)}q.wrap('<div class="fluid-width-video-wrapper"></div>').parent(".fluid-width-video-wrapper").css("padding-top",(o*100)+"%");q.removeAttr("height").removeAttr("width")})})}});a(document).ready(function(){a("#pageWrapper").fitVids()});
11/*!
12 * Retina.js v1.3.0
13 *
14 * Copyright 2014 Imulus, LLC
15 * Released under the MIT license
16 *
17 * Retina.js is an open source script that makes it easy to serve
18 * high-resolution images to devices with retina displays.
19 */
20!function(){function j(){}function h(d){return l.retinaImageSuffix+d}function o(f,q){if(this.path=f||"","undefined"!=typeof q&&null!==q){this.at_2x_path=q,this.perform_check=!1}else{if(void 0!==document.createElement){var p=document.createElement("a");p.href=this.path,p.pathname=p.pathname.replace(k,h),this.at_2x_path=p.href}else{var g=this.path.split("?");g[0]=g[0].replace(k,h),this.at_2x_path=g.join("?")}this.perform_check=!0}}function n(e){this.el=e,this.path=new o(this.el.getAttribute("src"),this.el.getAttribute("data-at2x"));var d=this;this.path.check_2x_variant(function(f){f&&d.swap()})}var m="undefined"==typeof exports?window:exports,l={retinaImageSuffix:"@2x",check_mime_type:!0,force_original_dimensions:!0};m.Retina=j,j.configure=function(e){null===e&&(e={});for(var d in e){e.hasOwnProperty(d)&&(l[d]=e[d])}},j.init=function(e){null===e&&(e=m);var d=e.onload||function(){};e.onload=function(){var g,r,q=document.getElementsByTagName("img"),p=[];for(g=0;g<q.length;g+=1){r=q[g],r.getAttributeNode("data-no-retina")||p.push(new n(r))}d()}},j.isRetina=function(){var d="(-webkit-min-device-pixel-ratio: 1.5), (min--moz-device-pixel-ratio: 1.5), (-o-min-device-pixel-ratio: 3/2), (min-resolution: 1.5dppx)";return m.devicePixelRatio>1?!0:m.matchMedia&&m.matchMedia(d).matches?!0:!1};var k=/\.\w+$/;m.RetinaImagePath=o,o.confirmed_paths=[],o.prototype.is_external=function(){return !(!this.path.match(/^https?\:/i)||this.path.match("//"+document.domain))},o.prototype.check_2x_variant=function(f){var e,g=this;return this.is_external()?f(!1):this.perform_check||"undefined"==typeof this.at_2x_path||null===this.at_2x_path?this.at_2x_path in o.confirmed_paths?f(!0):(e=new XMLHttpRequest,e.open("HEAD",this.at_2x_path),e.onreadystatechange=function(){if(4!==e.readyState){return f(!1)}if(e.status>=200&&e.status<=399){if(l.check_mime_type){var d=e.getResponseHeader("Content-Type");if(null===d||!d.match(/^image/i)){return f(!1)}}return o.confirmed_paths.push(g.at_2x_path),f(!0)}return f(!1)},e.send(),void 0):f(!0)},m.RetinaImage=n,n.prototype.swap=function(e){function d(){f.el.complete?(l.force_original_dimensions&&(f.el.setAttribute("width",f.el.offsetWidth),f.el.setAttribute("height",f.el.offsetHeight)),f.el.setAttribute("src",e)):setTimeout(d,5)}"undefined"==typeof e&&(e=this.path.at_2x_path);var f=this;d()},j.isRetina()&&j.init(m)}()})(ThemeFlood.themeFunctions);

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.