// source --> https://triumf-podolsk.ru/wp-content/themes/triumph-1/js/venobox.min.js?ver=4.9.8 /* * VenoBox - jQuery Plugin * version: 1.8.3 * @requires jQuery >= 1.7.0 * * Examples at http://veno.es/venobox/ * License: MIT License * License URI: https://github.com/nicolafranchini/VenoBox/blob/master/LICENSE * Copyright 2013-2017 Nicola Franchini - @nicolafranchini * */ !function(e){"use strict";var s,i,c,a,o,t,d,l,r,n,v,u,b,k,p,m,h,f,g,x,y,w,C,_,B,P,E,O,D,M,N,U,V,I,z,R,X,Y,j,W,q;e.fn.extend({venobox:function($){var A=this,H=e.extend({arrowsColor:"#B6B6B6",autoplay:!1,bgcolor:"#fff",border:"0",closeBackground:"#161617",closeColor:"#d2d2d2",framewidth:"",frameheight:"",gallItems:!1,infinigall:!1,htmlClose:"×",htmlNext:"Next",htmlPrev:"Prev",numeratio:!1,numerationBackground:"#161617",numerationColor:"#d2d2d2",numerationPosition:"top",overlayClose:!0,overlayColor:"rgba(23,23,23,0.85)",spinner:"double-bounce",spinColor:"#d2d2d2",titleattr:"title",titleBackground:"#161617",titleColor:"#d2d2d2",titlePosition:"top",cb_pre_open:function(){return!0},cb_post_open:function(){},cb_pre_close:function(){return!0},cb_post_close:function(){},cb_post_resize:function(){},cb_after_nav:function(){},cb_init:function(){}},$);return H.cb_init(A),this.each(function(){if((D=e(this)).data("venobox"))return!0;function $(){y=D.data("gall"),h=D.data("numeratio"),u=D.data("gallItems"),b=D.data("infinigall"),k=u||e('.vbox-item[data-gall="'+y+'"]'),w=k.eq(k.index(D)+1),C=k.eq(k.index(D)-1),w.length||!0!==b||(w=k.eq(0)),k.length>1?(M=k.index(D)+1,c.html(M+" / "+k.length)):M=1,!0===h?c.show():c.hide(),""!==x?a.show():a.hide(),w.length||!0===b?(e(".vbox-next").css("display","block"),_=!0):(e(".vbox-next").css("display","none"),_=!1),k.index(D)>0||!0===b?(e(".vbox-prev").css("display","block"),B=!0):(e(".vbox-prev").css("display","none"),B=!1),!0!==B&&!0!==_||(d.on(K.DOWN,F),d.on(K.MOVE,G),d.on(K.UP,J))}function Q(e){return!(e.length<1)&&(!p&&(p=!0,f=e.data("overlay")||e.data("overlaycolor"),n=e.data("framewidth"),v=e.data("frameheight"),o=e.data("border"),i=e.data("bgcolor"),l=e.data("href")||e.attr("href"),s=e.data("autoplay"),x=e.attr(e.data("titleattr"))||"",e===C&&d.addClass("animated").addClass("swipe-right"),e===w&&d.addClass("animated").addClass("swipe-left"),E.show(),void d.animate({opacity:0},500,function(){g.css("background",f),d.removeClass("animated").removeClass("swipe-left").removeClass("swipe-right").css({"margin-left":0,"margin-right":0}),"iframe"==e.data("vbtype")?ce():"inline"==e.data("vbtype")?oe():"ajax"==e.data("vbtype")?ie():"video"==e.data("vbtype")?ae(s):(d.html(''),te()),D=e,$(),p=!1,H.cb_after_nav(D,M,w,C)})))}function S(e){27===e.keyCode&&T(),37==e.keyCode&&!0===B&&Q(C),39==e.keyCode&&!0===_&&Q(w)}function T(){if(!1===H.cb_pre_close(D,M,w,C))return!1;e("body").off("keydown",S).removeClass("vbox-open"),D.focus(),g.animate({opacity:0},500,function(){g.remove(),p=!1,H.cb_post_close()})}A.VBclose=function(){T()},D.addClass("vbox-item"),D.data("framewidth",H.framewidth),D.data("frameheight",H.frameheight),D.data("border",H.border),D.data("bgcolor",H.bgcolor),D.data("numeratio",H.numeratio),D.data("gallItems",H.gallItems),D.data("infinigall",H.infinigall),D.data("overlaycolor",H.overlayColor),D.data("titleattr",H.titleattr),D.data("venobox",!0),D.on("click",function(u){if(u.preventDefault(),D=e(this),!1===H.cb_pre_open(D))return!1;switch(A.VBnext=function(){Q(w)},A.VBprev=function(){Q(C)},f=D.data("overlay")||D.data("overlaycolor"),n=D.data("framewidth"),v=D.data("frameheight"),s=D.data("autoplay")||H.autoplay,o=D.data("border"),i=D.data("bgcolor"),_=!1,B=!1,p=!1,l=D.data("href")||D.attr("href"),r=D.data("css")||"",x=D.attr(D.data("titleattr"))||"",P='
',H.spinner){case"rotating-plane":P+='
';break;case"double-bounce":P+='
';break;case"wave":P+='
';break;case"wandering-cubes":P+='
';break;case"spinner-pulse":P+='
';break;case"chasing-dots":P+='
';break;case"three-bounce":P+='
';break;case"circle":P+='
';break;case"cube-grid":P+='
';break;case"fading-circle":P+='
';break;case"folding-cube":P+='
'}return P+="
",O=''+H.htmlNext+''+H.htmlPrev+"",U='
0/0
'+H.htmlClose+"
",t='
'+P+'
'+U+O+"
",e("body").append(t).addClass("vbox-open"),e(".vbox-preloader div:not(.sk-circle) .sk-child, .vbox-preloader .sk-rotating-plane, .vbox-preloader .sk-rect, .vbox-preloader div:not(.sk-folding-cube) .sk-cube, .vbox-preloader .sk-spinner-pulse").css("background-color",H.spinColor),g=e(".vbox-overlay"),e(".vbox-container"),d=e(".vbox-content"),c=e(".vbox-num"),a=e(".vbox-title"),(E=e(".vbox-preloader")).show(),a.css(H.titlePosition,"-1px"),a.css({color:H.titleColor,"background-color":H.titleBackground}),e(".vbox-close").css({color:H.closeColor,"background-color":H.closeBackground}),e(".vbox-num").css(H.numerationPosition,"-1px"),e(".vbox-num").css({color:H.numerationColor,"background-color":H.numerationBackground}),e(".vbox-next span, .vbox-prev span").css({"border-top-color":H.arrowsColor,"border-right-color":H.arrowsColor}),d.html(""),d.css("opacity","0"),g.css("opacity","0"),$(),g.animate({opacity:1},250,function(){"iframe"==D.data("vbtype")?ce():"inline"==D.data("vbtype")?oe():"ajax"==D.data("vbtype")?ie():"video"==D.data("vbtype")?ae(s):(d.html(''),te()),H.cb_post_open(D,M,w,C)}),e("body").keydown(S),e(".vbox-prev").on("click",function(){Q(C)}),e(".vbox-next").on("click",function(){Q(w)}),!1});var Z=".vbox-overlay";function F(e){d.addClass("animated"),I=R=e.pageY,z=X=e.pageX,N=!0}function G(e){if(!0===N){X=e.pageX,R=e.pageY,j=X-z,W=R-I;var s=Math.abs(j);s>Math.abs(W)&&s<=100&&(e.preventDefault(),d.css("margin-left",j))}}function J(e){if(!0===N){N=!1;var s=D,i=!1;(Y=X-z)<0&&!0===_&&(s=w,i=!0),Y>0&&!0===B&&(s=C,i=!0),Math.abs(Y)>=q&&!0===i?Q(s):d.css({"margin-left":0,"margin-right":0})}}H.overlayClose||(Z=".vbox-close"),e("body").on("click",Z,function(s){(e(s.target).is(".vbox-overlay")||e(s.target).is(".vbox-content")||e(s.target).is(".vbox-close")||e(s.target).is(".vbox-preloader"))&&T()}),z=0,X=0,Y=0,q=50,N=!1;var K={DOWN:"touchmousedown",UP:"touchmouseup",MOVE:"touchmousemove"},L=function(s){var i;switch(s.type){case"mousedown":i=K.DOWN;break;case"mouseup":case"mouseout":i=K.UP;break;case"mousemove":i=K.MOVE;break;default:return}var c=se(i,s,s.pageX,s.pageY);e(s.target).trigger(c)},ee=function(s){var i;switch(s.type){case"touchstart":i=K.DOWN;break;case"touchend":i=K.UP;break;case"touchmove":i=K.MOVE;break;default:return}var c,a=s.originalEvent.touches[0];c=i==K.UP?se(i,s,null,null):se(i,s,a.pageX,a.pageY),e(s.target).trigger(c)},se=function(s,i,c,a){return e.Event(s,{pageX:c,pageY:a,originalEvent:i})};function ie(){e.ajax({url:l,cache:!1}).done(function(e){d.html('
'+e+"
"),te()}).fail(function(){d.html('

Error retrieving contents, please retry

'),de()})}function ce(){d.html(''),de()}function ae(e){var s,i=function(e){var s;e.match(/(http:|https:|)\/\/(player.|www.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com))\/(video\/|embed\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/),RegExp.$3.indexOf("youtu")>-1?s="youtube":RegExp.$3.indexOf("vimeo")>-1&&(s="vimeo");return{type:s,id:RegExp.$6}}(l),c=(e?"?rel=0&autoplay=1":"?rel=0")+function(e){var s="",i=decodeURIComponent(e).split("?");if(void 0!==i[1]){var c,a,o=i[1].split("&");for(a=0;a'),de()}function oe(){d.html('
'+e(l).html()+"
"),de()}function te(){(V=d.find("img")).length?V.each(function(){e(this).one("load",function(){de()})}):de()}function de(){a.html(x),d.find(">:first-child").addClass("figlio").css({width:n,height:v,padding:o,background:i}),e("img.figlio").on("dragstart",function(e){e.preventDefault()}),le(),d.animate({opacity:"1"},"slow",function(){E.hide()})}function le(){var s=d.outerHeight(),i=e(window).height();m=s+60 https://triumf-podolsk.ru/wp-content/themes/triumph-1/js/device.js?ver=4.9.8 // Device.js // (c) 2014 Matthew Hudson // Device.js is freely distributable under the MIT license. // For all details and documentation: // http://matthewhudson.me/projects/device.js/ (function() { var device, previousDevice, addClass, documentElement, find, handleOrientation, hasClass, orientationEvent, removeClass, userAgent; // Save the previous value of the device variable. previousDevice = window.device; device = {}; // Add device as a global object. window.device = device; // The element. documentElement = window.document.documentElement; // The client user agent string. // Lowercase, so we can use the more efficient indexOf(), instead of Regex userAgent = window.navigator.userAgent.toLowerCase(); // Main functions // -------------- device.ios = function () { return device.iphone() || device.ipod() || device.ipad(); }; device.iphone = function () { return !device.windows() && find('iphone'); }; device.ipod = function () { return find('ipod'); }; device.ipad = function () { return find('ipad'); }; device.android = function () { return !device.windows() && find('android'); }; device.androidPhone = function () { return device.android() && find('mobile'); }; device.androidTablet = function () { return device.android() && !find('mobile'); }; device.blackberry = function () { return find('blackberry') || find('bb10') || find('rim'); }; device.blackberryPhone = function () { return device.blackberry() && !find('tablet'); }; device.blackberryTablet = function () { return device.blackberry() && find('tablet'); }; device.windows = function () { return find('windows'); }; device.windowsPhone = function () { return device.windows() && find('phone'); }; device.windowsTablet = function () { return device.windows() && (find('touch') && !device.windowsPhone()); }; device.fxos = function () { return (find('(mobile;') || find('(tablet;')) && find('; rv:'); }; device.fxosPhone = function () { return device.fxos() && find('mobile'); }; device.fxosTablet = function () { return device.fxos() && find('tablet'); }; device.meego = function () { return find('meego'); }; device.cordova = function () { return window.cordova && location.protocol === 'file:'; }; device.nodeWebkit = function () { return typeof window.process === 'object'; }; device.mobile = function () { return device.androidPhone() || device.iphone() || device.ipod() || device.windowsPhone() || device.blackberryPhone() || device.fxosPhone() || device.meego(); }; device.tablet = function () { return device.ipad() || device.androidTablet() || device.blackberryTablet() || device.windowsTablet() || device.fxosTablet(); }; device.desktop = function () { return !device.tablet() && !device.mobile(); }; device.television = function() { var i, tvString; television = [ "googletv", "viera", "smarttv", "internet.tv", "netcast", "nettv", "appletv", "boxee", "kylo", "roku", "dlnadoc", "roku", "pov_tv", "hbbtv", "ce-html" ]; i = 0; while (i < television.length) { if (find(television[i])) { return true; } i++; } return false; }; device.portrait = function () { return (window.innerHeight / window.innerWidth) > 1; }; device.landscape = function () { return (window.innerHeight / window.innerWidth) < 1; }; // Public Utility Functions // ------------------------ // Run device.js in noConflict mode, // returning the device variable to its previous owner. device.noConflict = function () { window.device = previousDevice; return this; }; // Private Utility Functions // ------------------------- // Simple UA string search find = function (needle) { return userAgent.indexOf(needle) !== -1; }; // Check if documentElement already has a given class. hasClass = function (className) { var regex; regex = new RegExp(className, 'i'); return documentElement.className.match(regex); }; // Add one or more CSS classes to the element. addClass = function (className) { var currentClassNames = null; if (!hasClass(className)) { currentClassNames = documentElement.className.replace(/^\s+|\s+$/g, ''); documentElement.className = currentClassNames + " " + className; } }; // Remove single CSS class from the element. removeClass = function (className) { if (hasClass(className)) { documentElement.className = documentElement.className.replace(" " + className, ""); } }; // HTML Element Handling // --------------------- // Insert the appropriate CSS class based on the _user_agent. if (device.ios()) { if (device.ipad()) { addClass("ios ipad tablet"); } else if (device.iphone()) { addClass("ios iphone mobile"); } else if (device.ipod()) { addClass("ios ipod mobile"); } } else if (device.android()) { if (device.androidTablet()) { addClass("android tablet"); } else { addClass("android mobile"); } } else if (device.blackberry()) { if (device.blackberryTablet()) { addClass("blackberry tablet"); } else { addClass("blackberry mobile"); } } else if (device.windows()) { if (device.windowsTablet()) { addClass("windows tablet"); } else if (device.windowsPhone()) { addClass("windows mobile"); } else { addClass("desktop"); } } else if (device.fxos()) { if (device.fxosTablet()) { addClass("fxos tablet"); } else { addClass("fxos mobile"); } } else if (device.meego()) { addClass("meego mobile"); } else if (device.nodeWebkit()) { addClass("node-webkit"); } else if (device.television()) { addClass("television"); } else if (device.desktop()) { addClass("desktop"); } if (device.cordova()) { addClass("cordova"); } // Orientation Handling // -------------------- // Handle device orientation changes. handleOrientation = function () { if (device.landscape()) { removeClass("portrait"); addClass("landscape"); } else { removeClass("landscape"); addClass("portrait"); } return; }; // Detect whether device supports orientationchange event, // otherwise fall back to the resize event. if (Object.prototype.hasOwnProperty.call(window, "onorientationchange")) { orientationEvent = "orientationchange"; } else { orientationEvent = "resize"; } // Listen for changes in orientation. if (window.addEventListener) { window.addEventListener(orientationEvent, handleOrientation, false); } else if (window.attachEvent) { window.attachEvent(orientationEvent, handleOrientation); } else { window[orientationEvent] = handleOrientation; } handleOrientation(); if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) { define(function() { return device; }); } else if (typeof module !== 'undefined' && module.exports) { module.exports = device; } else { window.device = device; } }).call(this);