var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); ; /* Start:"a:4:{s:4:"full";s:62:"/local/templates/klausmusic/js/jquery.cookie.js?16484760113139";s:6:"source";s:47:"/local/templates/klausmusic/js/jquery.cookie.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ /*! * jQuery Cookie Plugin v1.4.1 * https://github.com/carhartl/jquery-cookie * * Copyright 2006, 2014 Klaus Hartl * Released under the MIT license */ (function (factory) { if (typeof define === 'function' && define.amd) { // AMD (Register as an anonymous module) define(['jquery'], factory); } else if (typeof exports === 'object') { // Node/CommonJS module.exports = factory(require('jquery')); } else { // Browser globals factory(jQuery); } }(function ($) { var pluses = /\+/g; function encode(s) { return config.raw ? s : encodeURIComponent(s); } function decode(s) { return config.raw ? s : decodeURIComponent(s); } function stringifyCookieValue(value) { return encode(config.json ? JSON.stringify(value) : String(value)); } function parseCookieValue(s) { if (s.indexOf('"') === 0) { // This is a quoted cookie as according to RFC2068, unescape... s = s.slice(1, -1).replace(/\\"/g, '"').replace(/\\\\/g, '\\'); } try { // Replace server-side written pluses with spaces. // If we can't decode the cookie, ignore it, it's unusable. // If we can't parse the cookie, ignore it, it's unusable. s = decodeURIComponent(s.replace(pluses, ' ')); return config.json ? JSON.parse(s) : s; } catch(e) {} } function read(s, converter) { var value = config.raw ? s : parseCookieValue(s); return $.isFunction(converter) ? converter(value) : value; } var config = $.cookie = function (key, value, options) { // Write if (arguments.length > 1 && !$.isFunction(value)) { options = $.extend({}, config.defaults, options); if (typeof options.expires === 'number') { var days = options.expires, t = options.expires = new Date(); t.setMilliseconds(t.getMilliseconds() + days * 864e+5); } return (document.cookie = [ encode(key), '=', stringifyCookieValue(value), options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE options.path ? '; path=' + options.path : '', options.domain ? '; domain=' + options.domain : '', options.secure ? '; secure' : '' ].join('')); } // Read var result = key ? undefined : {}, // To prevent the for loop in the first place assign an empty array // in case there are no cookies at all. Also prevents odd result when // calling $.cookie(). cookies = document.cookie ? document.cookie.split('; ') : [], i = 0, l = cookies.length; for (; i < l; i++) { var parts = cookies[i].split('='), name = decode(parts.shift()), cookie = parts.join('='); if (key === name) { // If second argument (value) is a function it's a converter... result = read(cookie, value); break; } // Prevent storing a cookie that we couldn't decode. if (!key && (cookie = read(cookie)) !== undefined) { result[name] = cookie; } } return result; }; config.defaults = {}; $.removeCookie = function (key, options) { // Must not alter options, thus extending a fresh object... $.cookie(key, '', $.extend({}, options, { expires: -1 })); return !$.cookie(key); }; })); /* End */ ; ; /* Start:"a:4:{s:4:"full";s:70:"/local/templates/klausmusic/js/jquery.jcarousel.min.js?164847601118123";s:6:"source";s:54:"/local/templates/klausmusic/js/jquery.jcarousel.min.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ /*! jCarousel - v0.3.4 - 2015-09-23 * http://sorgalla.com/jcarousel/ * Copyright (c) 2006-2015 Jan Sorgalla; Licensed MIT */ !function(a){"use strict";var b=a.jCarousel={};b.version="0.3.4";var c=/^([+\-]=)?(.+)$/;b.parseTarget=function(a){var b=!1,d="object"!=typeof a?c.exec(a):null;return d?(a=parseInt(d[2],10)||0,d[1]&&(b=!0,"-="===d[1]&&(a*=-1))):"object"!=typeof a&&(a=parseInt(a,10)||0),{target:a,relative:b}},b.detectCarousel=function(a){for(var b;a.length>0;){if(b=a.filter("[data-jcarousel]"),b.length>0)return b;if(b=a.find("[data-jcarousel]"),b.length>0)return b;a=a.parent()}return null},b.base=function(c){return{version:b.version,_options:{},_element:null,_carousel:null,_init:a.noop,_create:a.noop,_destroy:a.noop,_reload:a.noop,create:function(){return this._element.attr("data-"+c.toLowerCase(),!0).data(c,this),!1===this._trigger("create")?this:(this._create(),this._trigger("createend"),this)},destroy:function(){return!1===this._trigger("destroy")?this:(this._destroy(),this._trigger("destroyend"),this._element.removeData(c).removeAttr("data-"+c.toLowerCase()),this)},reload:function(a){return!1===this._trigger("reload")?this:(a&&this.options(a),this._reload(),this._trigger("reloadend"),this)},element:function(){return this._element},options:function(b,c){if(0===arguments.length)return a.extend({},this._options);if("string"==typeof b){if("undefined"==typeof c)return"undefined"==typeof this._options[b]?null:this._options[b];this._options[b]=c}else this._options=a.extend({},this._options,b);return this},carousel:function(){return this._carousel||(this._carousel=b.detectCarousel(this.options("carousel")||this._element),this._carousel||a.error('Could not detect carousel for plugin "'+c+'"')),this._carousel},_trigger:function(b,d,e){var f,g=!1;return e=[this].concat(e||[]),(d||this._element).each(function(){f=a.Event((c+":"+b).toLowerCase()),a(this).trigger(f,e),f.isDefaultPrevented()&&(g=!0)}),!g}}},b.plugin=function(c,d){var e=a[c]=function(b,c){this._element=a(b),this.options(c),this._init(),this.create()};return e.fn=e.prototype=a.extend({},b.base(c),d),a.fn[c]=function(b){var d=Array.prototype.slice.call(arguments,1),f=this;return this.each("string"==typeof b?function(){var e=a(this).data(c);if(!e)return a.error("Cannot call methods on "+c+' prior to initialization; attempted to call method "'+b+'"');if(!a.isFunction(e[b])||"_"===b.charAt(0))return a.error('No such method "'+b+'" for '+c+" instance");var g=e[b].apply(e,d);return g!==e&&"undefined"!=typeof g?(f=g,!1):void 0}:function(){var d=a(this).data(c);d instanceof e?d.reload(b):new e(this,b)}),f},e}}(jQuery),function(a,b){"use strict";var c=function(a){return parseFloat(a)||0};a.jCarousel.plugin("jcarousel",{animating:!1,tail:0,inTail:!1,resizeTimer:null,lt:null,vertical:!1,rtl:!1,circular:!1,underflow:!1,relative:!1,_options:{list:function(){return this.element().children().eq(0)},items:function(){return this.list().children()},animation:400,transitions:!1,wrap:null,vertical:null,rtl:null,center:!1},_list:null,_items:null,_target:a(),_first:a(),_last:a(),_visible:a(),_fullyvisible:a(),_init:function(){var a=this;return this.onWindowResize=function(){a.resizeTimer&&clearTimeout(a.resizeTimer),a.resizeTimer=setTimeout(function(){a.reload()},100)},this},_create:function(){this._reload(),a(b).on("resize.jcarousel",this.onWindowResize)},_destroy:function(){a(b).off("resize.jcarousel",this.onWindowResize)},_reload:function(){this.vertical=this.options("vertical"),null==this.vertical&&(this.vertical=this.list().height()>this.list().width()),this.rtl=this.options("rtl"),null==this.rtl&&(this.rtl=function(b){if("rtl"===(""+b.attr("dir")).toLowerCase())return!0;var c=!1;return b.parents("[dir]").each(function(){return/rtl/i.test(a(this).attr("dir"))?(c=!0,!1):void 0}),c}(this._element)),this.lt=this.vertical?"top":"left",this.relative="relative"===this.list().css("position"),this._list=null,this._items=null;var b=this.index(this._target)>=0?this._target:this.closest();this.circular="circular"===this.options("wrap"),this.underflow=!1;var c={left:0,top:0};return b.length>0&&(this._prepare(b),this.list().find("[data-jcarousel-clone]").remove(),this._items=null,this.underflow=this._fullyvisible.length>=this.items().length,this.circular=this.circular&&!this.underflow,c[this.lt]=this._position(b)+"px"),this.move(c),this},list:function(){if(null===this._list){var b=this.options("list");this._list=a.isFunction(b)?b.call(this):this._element.find(b)}return this._list},items:function(){if(null===this._items){var b=this.options("items");this._items=(a.isFunction(b)?b.call(this):this.list().find(b)).not("[data-jcarousel-clone]")}return this._items},index:function(a){return this.items().index(a)},closest:function(){var b,d=this,e=this.list().position()[this.lt],f=a(),g=!1,h=this.vertical?"bottom":this.rtl&&!this.relative?"left":"right";return this.rtl&&this.relative&&!this.vertical&&(e+=this.list().width()-this.clipping()),this.items().each(function(){if(f=a(this),g)return!1;var i=d.dimension(f);if(e+=i,e>=0){if(b=i-c(f.css("margin-"+h)),!(Math.abs(e)-i+b/2<=0))return!1;g=!0}}),f},target:function(){return this._target},first:function(){return this._first},last:function(){return this._last},visible:function(){return this._visible},fullyvisible:function(){return this._fullyvisible},hasNext:function(){if(!1===this._trigger("hasnext"))return!0;var a=this.options("wrap"),b=this.items().length-1,c=this.options("center")?this._target:this._last;return b>=0&&!this.underflow&&(a&&"first"!==a||this.index(c)0&&!this.underflow&&(a&&"last"!==a||this.index(this._first)>0||this.tail&&this.inTail)?!0:!1},clipping:function(){return this._element["inner"+(this.vertical?"Height":"Width")]()},dimension:function(a){return a["outer"+(this.vertical?"Height":"Width")](!0)},scroll:function(b,c,d){if(this.animating)return this;if(!1===this._trigger("scroll",null,[b,c]))return this;a.isFunction(c)&&(d=c,c=!0);var e=a.jCarousel.parseTarget(b);if(e.relative){var f,g,h,i,j,k,l,m,n=this.items().length-1,o=Math.abs(e.target),p=this.options("wrap");if(e.target>0){var q=this.index(this._last);if(q>=n&&this.tail)this.inTail?"both"===p||"last"===p?this._scroll(0,c,d):a.isFunction(d)&&d.call(this,!1):this._scrollTail(c,d);else if(f=this.index(this._target),this.underflow&&f===n&&("circular"===p||"both"===p||"last"===p)||!this.underflow&&q===n&&("both"===p||"last"===p))this._scroll(0,c,d);else if(h=f+o,this.circular&&h>n){for(m=n,j=this.items().get(-1);m++=0,k&&j.after(j.clone(!0).attr("data-jcarousel-clone",!0)),this.list().append(j),k||(l={},l[this.lt]=this.dimension(j),this.moveBy(l)),this._items=null;this._scroll(j,c,d)}else this._scroll(Math.min(h,n),c,d)}else if(this.inTail)this._scroll(Math.max(this.index(this._first)-o+1,0),c,d);else if(g=this.index(this._first),f=this.index(this._target),i=this.underflow?f:g,h=i-o,0>=i&&(this.underflow&&"circular"===p||"both"===p||"first"===p))this._scroll(n,c,d);else if(this.circular&&0>h){for(m=h,j=this.items().get(0);m++<0;){j=this.items().eq(-1),k=this._visible.index(j)>=0,k&&j.after(j.clone(!0).attr("data-jcarousel-clone",!0)),this.list().prepend(j),this._items=null;var r=this.dimension(j);l={},l[this.lt]=-r,this.moveBy(l)}this._scroll(j,c,d)}else this._scroll(Math.max(h,0),c,d)}else this._scroll(e.target,c,d);return this._trigger("scrollend"),this},moveBy:function(a,b){var d=this.list().position(),e=1,f=0;return this.rtl&&!this.vertical&&(e=-1,this.relative&&(f=this.list().width()-this.clipping())),a.left&&(a.left=d.left+f+c(a.left)*e+"px"),a.top&&(a.top=d.top+f+c(a.top)*e+"px"),this.move(a,b)},move:function(b,c){c=c||{};var d=this.options("transitions"),e=!!d,f=!!d.transforms,g=!!d.transforms3d,h=c.duration||0,i=this.list();if(!e&&h>0)return void i.animate(b,c);var j=c.complete||a.noop,k={};if(e){var l={transitionDuration:i.css("transitionDuration"),transitionTimingFunction:i.css("transitionTimingFunction"),transitionProperty:i.css("transitionProperty")},m=j;j=function(){a(this).css(l),m.call(this)},k={transitionDuration:(h>0?h/1e3:0)+"s",transitionTimingFunction:d.easing||c.easing,transitionProperty:h>0?function(){return f||g?"all":b.left?"left":"top"}():"none",transform:"none"}}g?k.transform="translate3d("+(b.left||0)+","+(b.top||0)+",0)":f?k.transform="translate("+(b.left||0)+","+(b.top||0)+")":a.extend(k,b),e&&h>0&&i.one("transitionend webkitTransitionEnd oTransitionEnd otransitionend MSTransitionEnd",j),i.css(k),0>=h&&i.each(function(){j.call(this)})},_scroll:function(b,c,d){if(this.animating)return a.isFunction(d)&&d.call(this,!1),this;if("object"!=typeof b?b=this.items().eq(b):"undefined"==typeof b.jquery&&(b=a(b)),0===b.length)return a.isFunction(d)&&d.call(this,!1),this;this.inTail=!1,this._prepare(b);var e=this._position(b),f=this.list().position()[this.lt];if(e===f)return a.isFunction(d)&&d.call(this,!1),this;var g={};return g[this.lt]=e+"px",this._animate(g,c,d),this},_scrollTail:function(b,c){if(this.animating||!this.tail)return a.isFunction(c)&&c.call(this,!1),this;var d=this.list().position()[this.lt];this.rtl&&this.relative&&!this.vertical&&(d+=this.list().width()-this.clipping()),this.rtl&&!this.vertical?d+=this.tail:d-=this.tail,this.inTail=!0;var e={};return e[this.lt]=d+"px",this._update({target:this._target.next(),fullyvisible:this._fullyvisible.slice(1).add(this._visible.last())}),this._animate(e,b,c),this},_animate:function(b,c,d){if(d=d||a.noop,!1===this._trigger("animate"))return d.call(this,!1),this;this.animating=!0;var e=this.options("animation"),f=a.proxy(function(){this.animating=!1;var a=this.list().find("[data-jcarousel-clone]");a.length>0&&(a.remove(),this._reload()),this._trigger("animateend"),d.call(this,!0)},this),g="object"==typeof e?a.extend({},e):{duration:e},h=g.complete||a.noop;return c===!1?g.duration=0:"undefined"!=typeof a.fx.speeds[g.duration]&&(g.duration=a.fx.speeds[g.duration]),g.complete=function(){f(),h.call(this)},this.move(b,g),this},_prepare:function(b){var d,e,f,g,h=this.index(b),i=h,j=this.dimension(b),k=this.clipping(),l=this.vertical?"bottom":this.rtl?"left":"right",m=this.options("center"),n={target:b,first:b,last:b,visible:b,fullyvisible:k>=j?b:a()};if(m&&(j/=2,k/=2),k>j)for(;;){if(d=this.items().eq(++i),0===d.length){if(!this.circular)break;if(d=this.items().eq(0),b.get(0)===d.get(0))break;if(e=this._visible.index(d)>=0,e&&d.after(d.clone(!0).attr("data-jcarousel-clone",!0)),this.list().append(d),!e){var o={};o[this.lt]=this.dimension(d),this.moveBy(o)}this._items=null}if(g=this.dimension(d),0===g)break;if(j+=g,n.last=d,n.visible=n.visible.add(d),f=c(d.css("margin-"+l)),k>=j-f&&(n.fullyvisible=n.fullyvisible.add(d)),j>=k)break}if(!this.circular&&!m&&k>j)for(i=h;;){if(--i<0)break;if(d=this.items().eq(i),0===d.length)break;if(g=this.dimension(d),0===g)break;if(j+=g,n.first=d,n.visible=n.visible.add(d),f=c(d.css("margin-"+l)),k>=j-f&&(n.fullyvisible=n.fullyvisible.add(d)),j>=k)break}return this._update(n),this.tail=0,m||"circular"===this.options("wrap")||"custom"===this.options("wrap")||this.index(n.last)!==this.items().length-1||(j-=c(n.last.css("margin-"+l)),j>k&&(this.tail=j-k)),this},_position:function(a){var b=this._first,c=b.position()[this.lt],d=this.options("center"),e=d?this.clipping()/2-this.dimension(b)/2:0;return this.rtl&&!this.vertical?(c-=this.relative?this.list().width()-this.dimension(b):this.clipping()-this.dimension(b),c+=e):c-=e,!d&&(this.index(a)>this.index(b)||this.inTail)&&this.tail?(c=this.rtl&&!this.vertical?c-this.tail:c+this.tail,this.inTail=!0):this.inTail=!1,-c},_update:function(b){var c,d=this,e={target:this._target,first:this._first,last:this._last,visible:this._visible,fullyvisible:this._fullyvisible},f=this.index(b.first||e.first)e)return this.scroll(e,c,d);if(e>=g&&h>=e)return a.isFunction(d)&&d.call(this,!1),this;for(var i,j=this.items(),k=this.clipping(),l=this.vertical?"bottom":this.rtl?"left":"right",m=0;;){if(i=j.eq(e),0===i.length)break;if(m+=this.dimension(i),m>=k){var n=parseFloat(i.css("margin-"+l))||0;m-n!==k&&e++;break}if(0>=e)break;e--}return this.scroll(e,c,d)}}(jQuery),function(a){"use strict";a.jCarousel.plugin("jcarouselControl",{_options:{target:"+=1",event:"click",method:"scroll"},_active:null,_init:function(){this.onDestroy=a.proxy(function(){this._destroy(),this.carousel().one("jcarousel:createend",a.proxy(this._create,this))},this),this.onReload=a.proxy(this._reload,this),this.onEvent=a.proxy(function(b){b.preventDefault();var c=this.options("method");a.isFunction(c)?c.call(this):this.carousel().jcarousel(this.options("method"),this.options("target"))},this)},_create:function(){this.carousel().one("jcarousel:destroy",this.onDestroy).on("jcarousel:reloadend jcarousel:scrollend",this.onReload),this._element.on(this.options("event")+".jcarouselcontrol",this.onEvent),this._reload()},_destroy:function(){this._element.off(".jcarouselcontrol",this.onEvent),this.carousel().off("jcarousel:destroy",this.onDestroy).off("jcarousel:reloadend jcarousel:scrollend",this.onReload)},_reload:function(){var b,c=a.jCarousel.parseTarget(this.options("target")),d=this.carousel();if(c.relative)b=d.jcarousel(c.target>0?"hasNext":"hasPrev");else{var e="object"!=typeof c.target?d.jcarousel("items").eq(c.target):c.target;b=d.jcarousel("target").index(e)>=0}return this._active!==b&&(this._trigger(b?"active":"inactive"),this._active=b),this}})}(jQuery),function(a){"use strict";a.jCarousel.plugin("jcarouselPagination",{_options:{perPage:null,item:function(a){return''+a+""},event:"click",method:"scroll"},_carouselItems:null,_pages:{},_items:{},_currentPage:null,_init:function(){this.onDestroy=a.proxy(function(){this._destroy(),this.carousel().one("jcarousel:createend",a.proxy(this._create,this))},this),this.onReload=a.proxy(this._reload,this),this.onScroll=a.proxy(this._update,this)},_create:function(){this.carousel().one("jcarousel:destroy",this.onDestroy).on("jcarousel:reloadend",this.onReload).on("jcarousel:scrollend",this.onScroll),this._reload()},_destroy:function(){this._clear(),this.carousel().off("jcarousel:destroy",this.onDestroy).off("jcarousel:reloadend",this.onReload).off("jcarousel:scrollend",this.onScroll),this._carouselItems=null},_reload:function(){var b=this.options("perPage");if(this._pages={},this._items={},a.isFunction(b)&&(b=b.call(this)),null==b)this._pages=this._calculatePages();else for(var c,d=parseInt(b,10)||0,e=this._getCarouselItems(),f=1,g=0;;){if(c=e.eq(g++),0===c.length)break;this._pages[f]=this._pages[f]?this._pages[f].add(c):c,g%d===0&&f++}this._clear();var h=this,i=this.carousel().data("jcarousel"),j=this._element,k=this.options("item"),l=this._getCarouselItems().length;a.each(this._pages,function(b,c){var d=h._items[b]=a(k.call(h,b,c));d.on(h.options("event")+".jcarouselpagination",a.proxy(function(){var a=c.eq(0);if(i.circular){var d=i.index(i.target()),e=i.index(a);parseFloat(b)>parseFloat(h._currentPage)?d>e&&(a="+="+(l-d+e)):e>d&&(a="-="+(d+(l-e)))}i[this.options("method")](a)},h)),j.append(d)}),this._update()},_update:function(){var b,c=this.carousel().jcarousel("target");a.each(this._pages,function(a,d){return d.each(function(){return c.is(this)?(b=a,!1):void 0}),b?!1:void 0}),this._currentPage!==b&&(this._trigger("inactive",this._items[this._currentPage]),this._trigger("active",this._items[b])),this._currentPage=b},items:function(){return this._items},reloadCarouselItems:function(){return this._carouselItems=null,this},_clear:function(){this._element.empty(),this._currentPage=null},_calculatePages:function(){for(var a,b,c=this.carousel().data("jcarousel"),d=this._getCarouselItems(),e=c.clipping(),f=0,g=0,h=1,i={};;){if(a=d.eq(g++),0===a.length)break;b=c.dimension(a),f+b>e&&(h++,f=0),f+=b,i[h]=i[h]?i[h].add(a):a}return i},_getCarouselItems:function(){return this._carouselItems||(this._carouselItems=this.carousel().jcarousel("items")),this._carouselItems}})}(jQuery),function(a,b){"use strict";var c,d,e={hidden:"visibilitychange",mozHidden:"mozvisibilitychange",msHidden:"msvisibilitychange",webkitHidden:"webkitvisibilitychange"};a.each(e,function(a,e){return"undefined"!=typeof b[a]?(c=a,d=e,!1):void 0}),a.jCarousel.plugin("jcarouselAutoscroll",{_options:{target:"+=1",interval:3e3,autostart:!0},_timer:null,_started:!1,_init:function(){this.onDestroy=a.proxy(function(){this._destroy(),this.carousel().one("jcarousel:createend",a.proxy(this._create,this))},this),this.onAnimateEnd=a.proxy(this._start,this),this.onVisibilityChange=a.proxy(function(){b[c]?this._stop():this._start()},this)},_create:function(){this.carousel().one("jcarousel:destroy",this.onDestroy),a(b).on(d,this.onVisibilityChange),this.options("autostart")&&this.start()},_destroy:function(){this._stop(),this.carousel().off("jcarousel:destroy",this.onDestroy),a(b).off(d,this.onVisibilityChange)},_start:function(){return this._stop(),this._started?(this.carousel().one("jcarousel:animateend",this.onAnimateEnd),this._timer=setTimeout(a.proxy(function(){this.carousel().jcarousel("scroll",this.options("target"))},this),this.options("interval")),this):void 0},_stop:function(){return this._timer&&(this._timer=clearTimeout(this._timer)),this.carousel().off("jcarousel:animateend",this.onAnimateEnd),this},start:function(){return this._started=!0,this._start(),this},stop:function(){return this._started=!1,this._stop(),this}})}(jQuery,document); /* End */ ; ; /* Start:"a:4:{s:4:"full";s:71:"/local/templates/klausmusic/js/jquery.formstyler.min.js?164847601118702";s:6:"source";s:55:"/local/templates/klausmusic/js/jquery.formstyler.min.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ /* jQuery Form Styler v1.7.4 | (c) Dimox | https://github.com/Dimox/jQueryFormStyler */ (function(b){"function"===typeof define&&define.amd?define(["jquery"],b):"object"===typeof exports?module.exports=b(require("jquery")):b(jQuery)})(function(b){function z(c,a){this.element=c;this.options=b.extend({},N,a);this.init()}function G(c){if(!b(c.target).parents().hasClass("jq-selectbox")&&"OPTION"!=c.target.nodeName&&b("div.jq-selectbox.opened").length){c=b("div.jq-selectbox.opened");var a=b("div.jq-selectbox__search input",c),f=b("div.jq-selectbox__dropdown",c);c.find("select").data("_"+ h).options.onSelectClosed.call(c);a.length&&a.val("").keyup();f.hide().find("li.sel").addClass("selected");c.removeClass("focused opened dropup dropdown")}}var h="styler",N={wrapper:"form",idSuffix:"-styler",filePlaceholder:"\u0424\u0430\u0439\u043b \u043d\u0435 \u0432\u044b\u0431\u0440\u0430\u043d",fileBrowse:"\u041e\u0431\u0437\u043e\u0440...",fileNumber:"\u0412\u044b\u0431\u0440\u0430\u043d\u043e \u0444\u0430\u0439\u043b\u043e\u0432: %s",selectPlaceholder:"\u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435...", selectSearch:!1,selectSearchLimit:10,selectSearchNotFound:"\u0421\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0439 \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u043e",selectSearchPlaceholder:"\u041f\u043e\u0438\u0441\u043a...",selectVisibleOptions:0,singleSelectzIndex:"100",selectSmartPositioning:!0,onSelectOpened:function(){},onSelectClosed:function(){},onFormStyled:function(){}};z.prototype={init:function(){function c(){var b="",d="",c="",e="";void 0!==a.attr("id")&&""!==a.attr("id")&& (b=' id="'+a.attr("id")+f.idSuffix+'"');void 0!==a.attr("title")&&""!==a.attr("title")&&(d=' title="'+a.attr("title")+'"');void 0!==a.attr("class")&&""!==a.attr("class")&&(c=" "+a.attr("class"));var l=a.data(),t;for(t in l)""!==l[t]&&"_styler"!==t&&(e+=" data-"+t+'="'+l[t]+'"');this.id=b+e;this.title=d;this.classes=c}var a=b(this.element),f=this.options,y=navigator.userAgent.match(/(iPad|iPhone|iPod)/i)&&!navigator.userAgent.match(/(Windows\sPhone)/i)?!0:!1,h=navigator.userAgent.match(/Android/i)&& !navigator.userAgent.match(/(Windows\sPhone)/i)?!0:!1;if(a.is(":checkbox")){var z=function(){var f=new c,d=b("
');a.css({position:"absolute",zIndex:"-1",opacity:0,margin:0,padding:0}).after(d).prependTo(d);d.attr("unselectable","on").css({"-webkit-user-select":"none","-moz-user-select":"none","-ms-user-select":"none","-o-user-select":"none","user-select":"none",display:"inline-block",position:"relative", overflow:"hidden"});a.is(":checked")&&d.addClass("checked");a.is(":disabled")&&d.addClass("disabled");d.click(function(b){b.preventDefault();d.is(".disabled")||(a.is(":checked")?(a.prop("checked",!1),d.removeClass("checked")):(a.prop("checked",!0),d.addClass("checked")),a.focus().change())});a.closest("label").add('label[for="'+a.attr("id")+'"]').on("click.styler",function(a){b(a.target).is("a")||b(a.target).closest(d).length||(d.triggerHandler("click"),a.preventDefault())});a.on("change.styler", function(){a.is(":checked")?d.addClass("checked"):d.removeClass("checked")}).on("keydown.styler",function(a){32==a.which&&d.click()}).on("focus.styler",function(){d.is(".disabled")||d.addClass("focused")}).on("blur.styler",function(){d.removeClass("focused")})};z();a.on("refresh",function(){a.closest("label").add('label[for="'+a.attr("id")+'"]').off(".styler");a.off(".styler").parent().before(a).remove();z()})}else if(a.is(":radio")){var B=function(){var x=new c,d=b("
');a.css({position:"absolute",zIndex:"-1",opacity:0,margin:0,padding:0}).after(d).prependTo(d);d.attr("unselectable","on").css({"-webkit-user-select":"none","-moz-user-select":"none","-ms-user-select":"none","-o-user-select":"none","user-select":"none",display:"inline-block",position:"relative"});a.is(":checked")&&d.addClass("checked");a.is(":disabled")&&d.addClass("disabled");d.click(function(b){b.preventDefault();d.is(".disabled")|| (d.closest(f.wrapper).find('input[name="'+a.attr("name")+'"]').prop("checked",!1).parent().removeClass("checked"),a.prop("checked",!0).parent().addClass("checked"),a.focus().change())});a.closest("label").add('label[for="'+a.attr("id")+'"]').on("click.styler",function(a){b(a.target).is("a")||b(a.target).closest(d).length||(d.triggerHandler("click"),a.preventDefault())});a.on("change.styler",function(){a.parent().addClass("checked")}).on("focus.styler",function(){d.is(".disabled")||d.addClass("focused")}).on("blur.styler", function(){d.removeClass("focused")})};B();a.on("refresh",function(){a.closest("label").add('label[for="'+a.attr("id")+'"]').off(".styler");a.off(".styler").parent().before(a).remove();B()})}else if(a.is(":file")){a.css({position:"absolute",top:0,right:0,width:"100%",height:"100%",opacity:0,margin:0,padding:0});var C=function(){var x=new c,d=a.data("placeholder");void 0===d&&(d=f.filePlaceholder);var A=a.data("browse");if(void 0===A||""===A)A=f.fileBrowse;var e=b("'),l=b('
'+d+"
").appendTo(e);b('
'+A+"
").appendTo(e);a.after(e).appendTo(e);a.is(":disabled")&&e.addClass("disabled");a.on("change.styler",function(){var b=a.val();if(a.is("[multiple]")){var b="",c=a[0].files.length;0
');a.after(c).prependTo(c).wrap('
'); a.is(":disabled")&&c.addClass("disabled");var d,f,e,l=null,t=null;void 0!==a.attr("min")&&(d=a.attr("min"));void 0!==a.attr("max")&&(f=a.attr("max"));e=void 0!==a.attr("step")&&b.isNumeric(a.attr("step"))?Number(a.attr("step")):Number(1);var K=function(s){var c=a.val(),k;b.isNumeric(c)||(c=0,a.val("0"));s.is(".minus")?(k=parseInt(c,10)-e,0=d&&k<=f&&a.val(k):b.isNumeric(d)&&!b.isNumeric(f)? k>=d&&a.val(k):!b.isNumeric(d)&&b.isNumeric(f)?k<=f&&a.val(k):a.val(k)};c.is(".disabled")||(c.on("mousedown","div.jq-number__spin",function(){var a=b(this);K(a);l=setTimeout(function(){t=setInterval(function(){K(a)},40)},350)}).on("mouseup mouseout","div.jq-number__spin",function(){clearTimeout(l);clearInterval(t)}),a.on("focus.styler",function(){c.addClass("focused")}).on("blur.styler",function(){c.removeClass("focused")}))};D();a.on("refresh",function(){a.off(".styler").closest(".jq-number").before(a).remove(); D()})}else if(a.is("select")){var M=function(){function x(a){a.off("mousewheel DOMMouseScroll").on("mousewheel DOMMouseScroll",function(a){var c=null;"mousewheel"==a.type?c=-1*a.originalEvent.wheelDelta:"DOMMouseScroll"==a.type&&(c=40*a.originalEvent.detail);c&&(a.stopPropagation(),a.preventDefault(),b(this).scrollTop(c+b(this).scrollTop()))})}function d(){for(var a=0;a"+b.html()+"";b.parent().is("optgroup")&&(void 0!== b.parent().attr("class")&&(w=" "+b.parent().attr("class")),c=""+b.html()+"",b.is(":first-child")&&(c='
  • '+b.parent().attr("label")+"
  • "+c));t+=c}}function z(){var e=new c,s="",H=a.data("placeholder"),k=a.data("search"),h=a.data("search-limit"),u=a.data("search-not-found"),p=a.data("search-placeholder"),v=a.data("z-index"),w=a.data("smart-positioning");void 0===H&&(H=f.selectPlaceholder);if(void 0===k||""===k)k=f.selectSearch; if(void 0===h||""===h)h=f.selectSearchLimit;if(void 0===u||""===u)u=f.selectSearchNotFound;void 0===p&&(p=f.selectSearchPlaceholder);if(void 0===v||""===v)v=f.singleSelectzIndex;if(void 0===w||""===w)w=f.selectSmartPositioning;var g=b("
    '); a.css({margin:0,padding:0}).after(g).prependTo(g);var L=b("div.jq-selectbox__select",g),r=b("div.jq-selectbox__select-text",g),e=l.filter(":selected");d();k&&(s='
    '+u+"
    ");var m=b('
    '+s+'
      '+t+"
    ");g.append(m); var q=b("ul",m),n=b("li",m),E=b("input",m),A=b("div.jq-selectbox__not-found",m).hide();n.lengthF&&(F=a.innerWidth(),B=a.width());a.css({display:""})});r.is(".placeholder")&&r.width()>F?r.width(r.width()):(s=g.clone().appendTo("body").width("auto"),k=s.outerWidth(),s.remove(),k==g.outerWidth()&&r.width(B));F>g.width()&&m.width(F); ""===l.first().text()&&""!==a.data("placeholder")&&n.first().hide();a.css({position:"absolute",left:0,top:0,width:"100%",height:"100%",opacity:0});var C=g.outerHeight(),I=E.outerHeight(),J=q.css("max-height"),s=n.filter(".selected");1>s.length&&n.first().addClass("selected sel");void 0===n.data("li-height")&&n.data("li-height",n.outerHeight());var D=m.css("top");"auto"==m.css("left")&&m.css({left:0});"auto"==m.css("top")&&m.css({top:C});m.hide();s.length&&(l.first().text()!=e.text()&&g.addClass("changed"), g.data("jqfs-class",s.data("jqfs-class")),g.addClass(s.data("jqfs-class")));if(a.is(":disabled"))return g.addClass("disabled"),!1;L.click(function(){b("div.jq-selectbox").filter(".opened").length&&f.onSelectClosed.call(b("div.jq-selectbox").filter(".opened"));a.focus();if(!y){var c=b(window),d=n.data("li-height"),e=g.offset().top,k=c.height()-C-(e-c.scrollTop()),p=a.data("visible-options");if(void 0===p||""===p)p=f.selectVisibleOptions;var s=5*d,h=d*p;0p&&(s=h);0===p&&(h="auto");var p=function(){m.height("auto").css({bottom:"auto", top:D});var a=function(){q.css("max-height",Math.floor((k-20-I)/d)*d)};a();q.css("max-height",h);"none"!=J&&q.css("max-height",J);ks+I+20?(p(),g.removeClass("dropup").addClass("dropdown")):(r(),g.removeClass("dropdown").addClass("dropup")): (!1===w||0===w)&&k>s+I+20&&(p(),g.removeClass("dropup").addClass("dropdown"));g.offset().left+m.outerWidth()>c.width()&&m.css({left:"auto",right:0});b("div.jqselect").css({zIndex:v-1}).removeClass("opened");g.css({zIndex:v});m.is(":hidden")?(b("div.jq-selectbox__dropdown:visible").hide(),m.show(),g.addClass("opened focused"),f.onSelectOpened.call(g)):(m.hide(),g.removeClass("opened dropup dropdown"),b("div.jq-selectbox").filter(".opened").length&&f.onSelectClosed.call(g));E.length&&(E.val("").keyup(), A.hide(),E.keyup(function(){var c=b(this).val();n.each(function(){b(this).html().match(RegExp(".*?"+c+".*?","i"))?b(this).show():b(this).hide()});""===l.first().text()&&""!==a.data("placeholder")&&n.first().hide();1>n.filter(":visible").length?A.show():A.hide()}));n.filter(".selected").length&&(""===a.val()?q.scrollTop(0):(0!==q.innerHeight()/d%2&&(d/=2),q.scrollTop(q.scrollTop()+n.filter(".selected").position().top-q.innerHeight()/2+d)));x(q)}});n.hover(function(){b(this).siblings().removeClass("selected")}); n.filter(".selected").text();n.filter(":not(.disabled):not(.optgroup)").click(function(){a.focus();var c=b(this),d=c.text();if(!c.is(".selected")){var e=c.index(),e=e-c.prevAll(".optgroup").length;c.addClass("selected sel").siblings().removeClass("selected sel");l.prop("selected",!1).eq(e).prop("selected",!0);r.text(d);g.data("jqfs-class")&&g.removeClass(g.data("jqfs-class"));g.data("jqfs-class",c.data("jqfs-class"));g.addClass(c.data("jqfs-class"));a.change()}m.hide();g.removeClass("opened dropup dropdown"); f.onSelectClosed.call(g)});m.mouseout(function(){b("li.sel",m).addClass("selected")});a.on("change.styler",function(){r.text(l.filter(":selected").text()).removeClass("placeholder");n.removeClass("selected sel").not(".optgroup").eq(a[0].selectedIndex).addClass("selected sel");l.first().text()!=n.filter(".selected").text()?g.addClass("changed"):g.removeClass("changed")}).on("focus.styler",function(){g.addClass("focused");b("div.jqselect").not(".focused").removeClass("opened dropup dropdown").find("div.jq-selectbox__dropdown").hide()}).on("blur.styler", function(){g.removeClass("focused")}).on("keydown.styler keyup.styler",function(b){var c=n.data("li-height");""===a.val()?r.text(H).addClass("placeholder"):r.text(l.filter(":selected").text());n.removeClass("selected sel").not(".optgroup").eq(a[0].selectedIndex).addClass("selected sel");if(38==b.which||37==b.which||33==b.which||36==b.which)""===a.val()?q.scrollTop(0):q.scrollTop(q.scrollTop()+n.filter(".selected").position().top);40!=b.which&&39!=b.which&&34!=b.which&&35!=b.which||q.scrollTop(q.scrollTop()+ n.filter(".selected").position().top-q.innerHeight()+c);13==b.which&&(b.preventDefault(),m.hide(),g.removeClass("opened dropup dropdown"),f.onSelectClosed.call(g))}).on("keydown.styler",function(a){32==a.which&&(a.preventDefault(),L.click())});G.registered||(b(document).on("click",G),G.registered=!0)}function e(){var e=new c,f=b("');a.css({margin:0,padding:0}).after(f); d();f.append("
      "+t+"
    ");var h=b("ul",f).css({position:"relative","overflow-x":"hidden","-webkit-overflow-scrolling":"touch"}),k=b("li",f).attr("unselectable","on"),e=a.attr("size"),y=h.outerHeight(),u=k.outerHeight();void 0!==e&&0f.height()&&(h.css("overflowY","scroll"),x(h),k.filter(".selected").length&&h.scrollTop(h.scrollTop()+k.filter(".selected").position().top));a.prependTo(f).css({position:"absolute",left:0,top:0,width:"100%",height:"100%", opacity:0});if(a.is(":disabled"))f.addClass("disabled"),l.each(function(){b(this).is(":selected")&&k.eq(b(this).index()).addClass("selected")});else if(k.filter(":not(.disabled):not(.optgroup)").click(function(c){a.focus();var d=b(this);c.ctrlKey||c.metaKey||d.addClass("selected");c.shiftKey||d.addClass("first");c.ctrlKey||(c.metaKey||c.shiftKey)||d.siblings().removeClass("selected first");if(c.ctrlKey||c.metaKey)d.is(".selected")?d.removeClass("selected first"):d.addClass("selected first"),d.siblings().removeClass("first"); if(c.shiftKey){var e=!1,f=!1;d.siblings().removeClass("selected").siblings(".first").addClass("selected");d.prevAll().each(function(){b(this).is(".first")&&(e=!0)});d.nextAll().each(function(){b(this).is(".first")&&(f=!0)});e&&d.prevAll().each(function(){if(b(this).is(".selected"))return!1;b(this).not(".disabled, .optgroup").addClass("selected")});f&&d.nextAll().each(function(){if(b(this).is(".selected"))return!1;b(this).not(".disabled, .optgroup").addClass("selected")});1==k.filter(".selected").length&& d.addClass("first")}l.prop("selected",!1);k.filter(".selected").each(function(){var a=b(this),c=a.index();a.is(".option")&&(c-=a.prevAll(".optgroup").length);l.eq(c).prop("selected",!0)});a.change()}),l.each(function(a){b(this).data("optionIndex",a)}),a.on("change.styler",function(){k.removeClass("selected");var a=[];l.filter(":selected").each(function(){a.push(b(this).data("optionIndex"))});k.not(".optgroup").filter(function(c){return-1f.height())a.on("keydown.styler",function(a){38!=a.which&&37!=a.which&&33!=a.which||h.scrollTop(h.scrollTop()+k.filter(".selected").position().top-u);40!=a.which&&39!=a.which&&34!=a.which||h.scrollTop(h.scrollTop()+k.filter(".selected:last").position().top-h.innerHeight()+2*u)})}var l=b("option",a),t="";a.is("[multiple]")?h||y||e():z()};M();a.on("refresh",function(){a.off(".styler").parent().before(a).remove();M()})}else if(a.is(":reset"))a.on("click",function(){setTimeout(function(){a.closest(f.wrapper).find("input, select").trigger("refresh")}, 1)})},destroy:function(){var c=b(this.element);c.is(":checkbox")||c.is(":radio")?(c.removeData("_"+h).off(".styler refresh").removeAttr("style").parent().before(c).remove(),c.closest("label").add('label[for="'+c.attr("id")+'"]').off(".styler")):c.is('input[type="number"]')?c.removeData("_"+h).off(".styler refresh").closest(".jq-number").before(c).remove():(c.is(":file")||c.is("select"))&&c.removeData("_"+h).off(".styler refresh").removeAttr("style").parent().before(c).remove()}};b.fn[h]=function(c){var a= arguments;if(void 0===c||"object"===typeof c)return this.each(function(){b.data(this,"_"+h)||b.data(this,"_"+h,new z(this,c))}).promise().done(function(){var a=b(this[0]).data("_"+h);a&&a.options.onFormStyled.call()}),this;if("string"===typeof c&&"_"!==c[0]&&"init"!==c){var f;this.each(function(){var y=b.data(this,"_"+h);y instanceof z&&"function"===typeof y[c]&&(f=y[c].apply(y,Array.prototype.slice.call(a,1)))});return void 0!==f?f:this}};G.registered=!1}); /* End */ ; ; /* Start:"a:4:{s:4:"full";s:68:"/local/templates/klausmusic/js/jquery.scrollTo.min.js?16484760112445";s:6:"source";s:53:"/local/templates/klausmusic/js/jquery.scrollTo.min.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ /** * Copyright (c) 2007-2015 Ariel Flesler - aflesler ○ gmail • com | http://flesler.blogspot.com * Licensed under MIT * @author Ariel Flesler * @version 2.1.3 */ ;(function(f){"use strict";"function"===typeof define&&define.amd?define(["jquery"],f):"undefined"!==typeof module&&module.exports?module.exports=f(require("jquery")):f(jQuery)})(function($){"use strict";function n(a){return!a.nodeName||-1!==$.inArray(a.nodeName.toLowerCase(),["iframe","#document","html","body"])}function h(a){return $.isFunction(a)||$.isPlainObject(a)?a:{top:a,left:a}}var p=$.scrollTo=function(a,d,b){return $(window).scrollTo(a,d,b)};p.defaults={axis:"xy",duration:0,limit:!0};$.fn.scrollTo=function(a,d,b){"object"=== typeof d&&(b=d,d=0);"function"===typeof b&&(b={onAfter:b});"max"===a&&(a=9E9);b=$.extend({},p.defaults,b);d=d||b.duration;var u=b.queue&&1=f[g]?0:Math.min(f[g],n));!a&&1q+o.left+10||p.pageXm+o.top+10||p.pageY").addClass(c.loupe).css({width:c.width,height:c.height,position:"absolute",overflow:"hidden"}).append(g=a("").attr("src",j.attr(j.is("img")?"src":"href")).css("position","absolute")).mousemove(e).hide().appendTo("body");j.data("loupe",true).mouseenter(e).mouseout(function(){i=setTimeout(h,10)})}):this}}(jQuery)); /* End */ ; ; /* Start:"a:4:{s:4:"full";s:75:"/local/templates/klausmusic/js/jquery.magnific-popup.min.js?164847601121197";s:6:"source";s:59:"/local/templates/klausmusic/js/jquery.magnific-popup.min.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ /*! Magnific Popup - v1.0.0 - 2015-09-17 * http://dimsemenov.com/plugins/magnific-popup/ * Copyright (c) 2015 Dmitry Semenov; */ !function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(a){var b,c,d,e,f,g,h="Close",i="BeforeClose",j="AfterClose",k="BeforeAppend",l="MarkupParse",m="Open",n="Change",o="mfp",p="."+o,q="mfp-ready",r="mfp-removing",s="mfp-prevent-close",t=function(){},u=!!window.jQuery,v=a(window),w=function(a,c){b.ev.on(o+a+p,c)},x=function(b,c,d,e){var f=document.createElement("div");return f.className="mfp-"+b,d&&(f.innerHTML=d),e?c&&c.appendChild(f):(f=a(f),c&&f.appendTo(c)),f},y=function(c,d){b.ev.triggerHandler(o+c,d),b.st.callbacks&&(c=c.charAt(0).toLowerCase()+c.slice(1),b.st.callbacks[c]&&b.st.callbacks[c].apply(b,a.isArray(d)?d:[d]))},z=function(c){return c===g&&b.currTemplate.closeBtn||(b.currTemplate.closeBtn=a(b.st.closeMarkup.replace("%title%",b.st.tClose)),g=c),b.currTemplate.closeBtn},A=function(){a.magnificPopup.instance||(b=new t,b.init(),a.magnificPopup.instance=b)},B=function(){var a=document.createElement("p").style,b=["ms","O","Moz","Webkit"];if(void 0!==a.transition)return!0;for(;b.length;)if(b.pop()+"Transition"in a)return!0;return!1};t.prototype={constructor:t,init:function(){var c=navigator.appVersion;b.isIE7=-1!==c.indexOf("MSIE 7."),b.isIE8=-1!==c.indexOf("MSIE 8."),b.isLowIE=b.isIE7||b.isIE8,b.isAndroid=/android/gi.test(c),b.isIOS=/iphone|ipad|ipod/gi.test(c),b.supportsTransition=B(),b.probablyMobile=b.isAndroid||b.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),d=a(document),b.popupsCache={}},open:function(c){var e;if(c.isObj===!1){b.items=c.items.toArray(),b.index=0;var g,h=c.items;for(e=0;e(a||v.height())},_setFocus:function(){(b.st.focus?b.content.find(b.st.focus).eq(0):b.wrap).focus()},_onFocusIn:function(c){return c.target===b.wrap[0]||a.contains(b.wrap[0],c.target)?void 0:(b._setFocus(),!1)},_parseMarkup:function(b,c,d){var e;d.data&&(c=a.extend(d.data,c)),y(l,[b,c,d]),a.each(c,function(a,c){if(void 0===c||c===!1)return!0;if(e=a.split("_"),e.length>1){var d=b.find(p+"-"+e[0]);if(d.length>0){var f=e[1];"replaceWith"===f?d[0]!==c[0]&&d.replaceWith(c):"img"===f?d.is("img")?d.attr("src",c):d.replaceWith(''):d.attr(e[1],c)}}else b.find(p+"-"+a).html(c)})},_getScrollbarSize:function(){if(void 0===b.scrollbarSize){var a=document.createElement("div");a.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(a),b.scrollbarSize=a.offsetWidth-a.clientWidth,document.body.removeChild(a)}return b.scrollbarSize}},a.magnificPopup={instance:null,proto:t.prototype,modules:[],open:function(b,c){return A(),b=b?a.extend(!0,{},b):{},b.isObj=!0,b.index=c||0,this.instance.open(b)},close:function(){return a.magnificPopup.instance&&a.magnificPopup.instance.close()},registerModule:function(b,c){c.options&&(a.magnificPopup.defaults[b]=c.options),a.extend(this.proto,c.proto),this.modules.push(b)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'',tClose:"Закрыть",tLoading:"Loading..."}},a.fn.magnificPopup=function(c){A();var d=a(this);if("string"==typeof c)if("open"===c){var e,f=u?d.data("magnificPopup"):d[0].magnificPopup,g=parseInt(arguments[1],10)||0;f.items?e=f.items[g]:(e=d,f.delegate&&(e=e.find(f.delegate)),e=e.eq(g)),b._openClick({mfpEl:e},d,f)}else b.isOpen&&b[c].apply(b,Array.prototype.slice.call(arguments,1));else c=a.extend(!0,{},c),u?d.data("magnificPopup",c):d[0].magnificPopup=c,b.addGroup(d,c);return d};var C,D,E,F="inline",G=function(){E&&(D.after(E.addClass(C)).detach(),E=null)};a.magnificPopup.registerModule(F,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){b.types.push(F),w(h+"."+F,function(){G()})},getInline:function(c,d){if(G(),c.src){var e=b.st.inline,f=a(c.src);if(f.length){var g=f[0].parentNode;g&&g.tagName&&(D||(C=e.hiddenClass,D=x(C),C="mfp-"+C),E=f.after(D).detach().removeClass(C)),b.updateStatus("ready")}else b.updateStatus("error",e.tNotFound),f=a("
    ");return c.inlineElement=f,f}return b.updateStatus("ready"),b._parseMarkup(d,{},c),d}}});var H,I="ajax",J=function(){H&&a(document.body).removeClass(H)},K=function(){J(),b.req&&b.req.abort()};a.magnificPopup.registerModule(I,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'The content could not be loaded.'},proto:{initAjax:function(){b.types.push(I),H=b.st.ajax.cursor,w(h+"."+I,K),w("BeforeChange."+I,K)},getAjax:function(c){H&&a(document.body).addClass(H),b.updateStatus("loading");var d=a.extend({url:c.src,success:function(d,e,f){var g={data:d,xhr:f};y("ParseAjax",g),b.appendContent(a(g.data),I),c.finished=!0,J(),b._setFocus(),setTimeout(function(){b.wrap.addClass(q)},16),b.updateStatus("ready"),y("AjaxContentAdded")},error:function(){J(),c.finished=c.loadError=!0,b.updateStatus("error",b.st.ajax.tError.replace("%url%",c.src))}},b.st.ajax.settings);return b.req=a.ajax(d),""}}});var L,M=function(c){if(c.data&&void 0!==c.data.title)return c.data.title;var d=b.st.image.titleSrc;if(d){if(a.isFunction(d))return d.call(b,c);if(c.el)return c.el.attr(d)||""}return""};a.magnificPopup.registerModule("image",{options:{markup:'
    ',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'The image could not be loaded.'},proto:{initImage:function(){var c=b.st.image,d=".image";b.types.push("image"),w(m+d,function(){"image"===b.currItem.type&&c.cursor&&a(document.body).addClass(c.cursor)}),w(h+d,function(){c.cursor&&a(document.body).removeClass(c.cursor),v.off("resize"+p)}),w("Resize"+d,b.resizeImage),b.isLowIE&&w("AfterChange",b.resizeImage)},resizeImage:function(){var a=b.currItem;if(a&&a.img&&b.st.image.verticalFit){var c=0;b.isLowIE&&(c=parseInt(a.img.css("padding-top"),10)+parseInt(a.img.css("padding-bottom"),10)),a.img.css("max-height",b.wH-c)}},_onImageHasSize:function(a){a.img&&(a.hasSize=!0,L&&clearInterval(L),a.isCheckingImgSize=!1,y("ImageHasSize",a),a.imgHidden&&(b.content&&b.content.removeClass("mfp-loading"),a.imgHidden=!1))},findImageSize:function(a){var c=0,d=a.img[0],e=function(f){L&&clearInterval(L),L=setInterval(function(){return d.naturalWidth>0?void b._onImageHasSize(a):(c>200&&clearInterval(L),c++,void(3===c?e(10):40===c?e(50):100===c&&e(500)))},f)};e(1)},getImage:function(c,d){var e=0,f=function(){c&&(c.img[0].complete?(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("ready")),c.hasSize=!0,c.loaded=!0,y("ImageLoadComplete")):(e++,200>e?setTimeout(f,100):g()))},g=function(){c&&(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("error",h.tError.replace("%url%",c.src))),c.hasSize=!0,c.loaded=!0,c.loadError=!0)},h=b.st.image,i=d.find(".mfp-img");if(i.length){var j=document.createElement("img");j.className="mfp-img",c.el&&c.el.find("img").length&&(j.alt=c.el.find("img").attr("alt")),c.img=a(j).on("load.mfploader",f).on("error.mfploader",g),j.src=c.src,i.is("img")&&(c.img=c.img.clone()),j=c.img[0],j.naturalWidth>0?c.hasSize=!0:j.width||(c.hasSize=!1)}return b._parseMarkup(d,{title:M(c),img_replaceWith:c.img},c),b.resizeImage(),c.hasSize?(L&&clearInterval(L),c.loadError?(d.addClass("mfp-loading"),b.updateStatus("error",h.tError.replace("%url%",c.src))):(d.removeClass("mfp-loading"),b.updateStatus("ready")),d):(b.updateStatus("loading"),c.loading=!0,c.hasSize||(c.imgHidden=!0,d.addClass("mfp-loading"),b.findImageSize(c)),d)}}});var N,O=function(){return void 0===N&&(N=void 0!==document.createElement("p").style.MozTransform),N};a.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(a){return a.is("img")?a:a.find("img")}},proto:{initZoom:function(){var a,c=b.st.zoom,d=".zoom";if(c.enabled&&b.supportsTransition){var e,f,g=c.duration,j=function(a){var b=a.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),d="all "+c.duration/1e3+"s "+c.easing,e={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},f="transition";return e["-webkit-"+f]=e["-moz-"+f]=e["-o-"+f]=e[f]=d,b.css(e),b},k=function(){b.content.css("visibility","visible")};w("BuildControls"+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.content.css("visibility","hidden"),a=b._getItemToZoom(),!a)return void k();f=j(a),f.css(b._getOffset()),b.wrap.append(f),e=setTimeout(function(){f.css(b._getOffset(!0)),e=setTimeout(function(){k(),setTimeout(function(){f.remove(),a=f=null,y("ZoomAnimationEnded")},16)},g)},16)}}),w(i+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.st.removalDelay=g,!a){if(a=b._getItemToZoom(),!a)return;f=j(a)}f.css(b._getOffset(!0)),b.wrap.append(f),b.content.css("visibility","hidden"),setTimeout(function(){f.css(b._getOffset())},16)}}),w(h+d,function(){b._allowZoom()&&(k(),f&&f.remove(),a=null)})}},_allowZoom:function(){return"image"===b.currItem.type},_getItemToZoom:function(){return b.currItem.hasSize?b.currItem.img:!1},_getOffset:function(c){var d;d=c?b.currItem.img:b.st.zoom.opener(b.currItem.el||b.currItem);var e=d.offset(),f=parseInt(d.css("padding-top"),10),g=parseInt(d.css("padding-bottom"),10);e.top-=a(window).scrollTop()-f;var h={width:d.width(),height:(u?d.innerHeight():d[0].offsetHeight)-g-f};return O()?h["-moz-transform"]=h.transform="translate("+e.left+"px,"+e.top+"px)":(h.left=e.left,h.top=e.top),h}}});var P="iframe",Q="//web.archive.orghttps://about:blank",R=function(a){if(b.currTemplate[P]){var c=b.currTemplate[P].find("iframe");c.length&&(a||(c[0].src=Q),b.isIE8&&c.css("display",a?"block":"none"))}};a.magnificPopup.registerModule(P,{options:{markup:'
    ',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//web.archive.orghttps://www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//web.archive.orghttps://player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//web.archive.orghttps://maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){b.types.push(P),w("BeforeChange",function(a,b,c){b!==c&&(b===P?R():c===P&&R(!0))}),w(h+"."+P,function(){R()})},getIframe:function(c,d){var e=c.src,f=b.st.iframe;a.each(f.patterns,function(){return e.indexOf(this.index)>-1?(this.id&&(e="string"==typeof this.id?e.substr(e.lastIndexOf(this.id)+this.id.length,e.length):this.id.call(this,e)),e=this.src.replace("%id%",e),!1):void 0});var g={};return f.srcAction&&(g[f.srcAction]=e),b._parseMarkup(d,g,c),b.updateStatus("ready"),d}}});var S=function(a){var c=b.items.length;return a>c-1?a-c:0>a?c+a:a},T=function(a,b,c){return a.replace(/%curr%/gi,b+1).replace(/%total%/gi,c)};a.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var c=b.st.gallery,e=".mfp-gallery",g=Boolean(a.fn.mfpFastClick);return b.direction=!0,c&&c.enabled?(f+=" mfp-gallery",w(m+e,function(){c.navigateByImgClick&&b.wrap.on("click"+e,".mfp-img",function(){return b.items.length>1?(b.next(),!1):void 0}),d.on("keydown"+e,function(a){37===a.keyCode?b.prev():39===a.keyCode&&b.next()})}),w("UpdateStatus"+e,function(a,c){c.text&&(c.text=T(c.text,b.currItem.index,b.items.length))}),w(l+e,function(a,d,e,f){var g=b.items.length;e.counter=g>1?T(c.tCounter,f.index,g):""}),w("BuildControls"+e,function(){if(b.items.length>1&&c.arrows&&!b.arrowLeft){var d=c.arrowMarkup,e=b.arrowLeft=a(d.replace(/%title%/gi,c.tPrev).replace(/%dir%/gi,"left")).addClass(s),f=b.arrowRight=a(d.replace(/%title%/gi,c.tNext).replace(/%dir%/gi,"right")).addClass(s),h=g?"mfpFastClick":"click";e[h](function(){b.prev()}),f[h](function(){b.next()}),b.isIE7&&(x("b",e[0],!1,!0),x("a",e[0],!1,!0),x("b",f[0],!1,!0),x("a",f[0],!1,!0)),b.container.append(e.add(f))}}),w(n+e,function(){b._preloadTimeout&&clearTimeout(b._preloadTimeout),b._preloadTimeout=setTimeout(function(){b.preloadNearbyImages(),b._preloadTimeout=null},16)}),void w(h+e,function(){d.off(e),b.wrap.off("click"+e),b.arrowLeft&&g&&b.arrowLeft.add(b.arrowRight).destroyMfpFastClick(),b.arrowRight=b.arrowLeft=null})):!1},next:function(){b.direction=!0,b.index=S(b.index+1),b.updateItemHTML()},prev:function(){b.direction=!1,b.index=S(b.index-1),b.updateItemHTML()},goTo:function(a){b.direction=a>=b.index,b.index=a,b.updateItemHTML()},preloadNearbyImages:function(){var a,c=b.st.gallery.preload,d=Math.min(c[0],b.items.length),e=Math.min(c[1],b.items.length);for(a=1;a<=(b.direction?e:d);a++)b._preloadItem(b.index+a);for(a=1;a<=(b.direction?d:e);a++)b._preloadItem(b.index-a)},_preloadItem:function(c){if(c=S(c),!b.items[c].preloaded){var d=b.items[c];d.parsed||(d=b.parseEl(c)),y("LazyLoad",d),"image"===d.type&&(d.img=a('').on("load.mfploader",function(){d.hasSize=!0}).on("error.mfploader",function(){d.hasSize=!0,d.loadError=!0,y("LazyLoadError",d)}).attr("src",d.src)),d.preloaded=!0}}}});var U="retina";a.magnificPopup.registerModule(U,{options:{replaceSrc:function(a){return a.src.replace(/\.\w+$/,function(a){return"@2x"+a})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var a=b.st.retina,c=a.ratio;c=isNaN(c)?c():c,c>1&&(w("ImageHasSize."+U,function(a,b){b.img.css({"max-width":b.img[0].naturalWidth/c,width:"100%"})}),w("ElementParse."+U,function(b,d){d.src=a.replaceSrc(d,c)}))}}}}),function(){var b=1e3,c="ontouchstart"in window,d=function(){v.off("touchmove"+f+" touchend"+f)},e="mfpFastClick",f="."+e;a.fn.mfpFastClick=function(e){return a(this).each(function(){var g,h=a(this);if(c){var i,j,k,l,m,n;h.on("touchstart"+f,function(a){l=!1,n=1,m=a.originalEvent?a.originalEvent.touches[0]:a.touches[0],j=m.clientX,k=m.clientY,v.on("touchmove"+f,function(a){m=a.originalEvent?a.originalEvent.touches:a.touches,n=m.length,m=m[0],(Math.abs(m.clientX-j)>10||Math.abs(m.clientY-k)>10)&&(l=!0,d())}).on("touchend"+f,function(a){d(),l||n>1||(g=!0,a.preventDefault(),clearTimeout(i),i=setTimeout(function(){g=!1},b),e())})})}h.on("click"+f,function(){g||e()})})},a.fn.destroyMfpFastClick=function(){a(this).off("touchstart"+f+" click"+f),c&&v.off("touchmove"+f+" touchend"+f)}}(),A()}); /* End */ ; ; /* Start:"a:4:{s:4:"full";s:71:"/local/templates/klausmusic/js/jquery.maskedinput.min.js?16484760114324";s:6:"source";s:56:"/local/templates/klausmusic/js/jquery.maskedinput.min.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ /* jQuery Masked Input Plugin Copyright (c) 2007 - 2015 Josh Bush (digitalbush.com) Licensed under the MIT license (http://digitalbush.com/projects/masked-input-plugin/#license) Version: 1.4.1 */ !function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):jQuery)}(function(a){var b,c=navigator.userAgent,d=/iphone/i.test(c),e=/chrome/i.test(c),f=/android/i.test(c);a.mask={definitions:{9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"},autoclear:!0,dataName:"rawMaskFn",placeholder:"_"},a.fn.extend({caret:function(a,b){var c;if(0!==this.length&&!this.is(":hidden"))return"number"==typeof a?(b="number"==typeof b?b:a,this.each(function(){this.setSelectionRange?this.setSelectionRange(a,b):this.createTextRange&&(c=this.createTextRange(),c.collapse(!0),c.moveEnd("character",b),c.moveStart("character",a),c.select())})):(this[0].setSelectionRange?(a=this[0].selectionStart,b=this[0].selectionEnd):document.selection&&document.selection.createRange&&(c=document.selection.createRange(),a=0-c.duplicate().moveStart("character",-1e5),b=a+c.text.length),{begin:a,end:b})},unmask:function(){return this.trigger("unmask")},mask:function(c,g){var h,i,j,k,l,m,n,o;if(!c&&this.length>0){h=a(this[0]);var p=h.data(a.mask.dataName);return p?p():void 0}return g=a.extend({autoclear:a.mask.autoclear,placeholder:a.mask.placeholder,completed:null},g),i=a.mask.definitions,j=[],k=n=c.length,l=null,a.each(c.split(""),function(a,b){"?"==b?(n--,k=a):i[b]?(j.push(new RegExp(i[b])),null===l&&(l=j.length-1),k>a&&(m=j.length-1)):j.push(null)}),this.trigger("unmask").each(function(){function h(){if(g.completed){for(var a=l;m>=a;a++)if(j[a]&&C[a]===p(a))return;g.completed.call(B)}}function p(a){return g.placeholder.charAt(a=0&&!j[a];);return a}function s(a,b){var c,d;if(!(0>a)){for(c=a,d=q(b);n>c;c++)if(j[c]){if(!(n>d&&j[c].test(C[d])))break;C[c]=C[d],C[d]=p(d),d=q(d)}z(),B.caret(Math.max(l,a))}}function t(a){var b,c,d,e;for(b=a,c=p(a);n>b;b++)if(j[b]){if(d=q(b),e=C[b],C[b]=c,!(n>d&&j[d].test(e)))break;c=e}}function u(){var a=B.val(),b=B.caret();if(o&&o.length&&o.length>a.length){for(A(!0);b.begin>0&&!j[b.begin-1];)b.begin--;if(0===b.begin)for(;b.beging)&&g&&13!==g){if(i.end-i.begin!==0&&(y(i.begin,i.end),s(i.begin,i.end-1)),c=q(i.begin-1),n>c&&(d=String.fromCharCode(g),j[c].test(d))){if(t(c),C[c]=d,z(),e=q(c),f){var k=function(){a.proxy(a.fn.caret,B,e)()};setTimeout(k,0)}else B.caret(e);i.begin<=m&&h()}b.preventDefault()}}}function y(a,b){var c;for(c=a;b>c&&n>c;c++)j[c]&&(C[c]=p(c))}function z(){B.val(C.join(""))}function A(a){var b,c,d,e=B.val(),f=-1;for(b=0,d=0;n>b;b++)if(j[b]){for(C[b]=p(b);d++e.length){y(b+1,n);break}}else C[b]===e.charAt(d)&&d++,k>b&&(f=b);return a?z():k>f+1?g.autoclear||C.join("")===D?(B.val()&&B.val(""),y(0,n)):z():(z(),B.val(B.val().substring(0,f+1))),k?b:l}var B=a(this),C=a.map(c.split(""),function(a,b){return"?"!=a?i[a]?p(b):a:void 0}),D=C.join(""),E=B.val();B.data(a.mask.dataName,function(){return a.map(C,function(a,b){return j[b]&&a!=p(b)?a:null}).join("")}),B.one("unmask",function(){B.off(".mask").removeData(a.mask.dataName)}).on("focus.mask",function(){if(!B.prop("readonly")){clearTimeout(b);var a;E=B.val(),a=A(),b=setTimeout(function(){B.get(0)===document.activeElement&&(z(),a==c.replace("?","").length?B.caret(0,a):B.caret(a))},10)}}).on("blur.mask",v).on("keydown.mask",w).on("keypress.mask",x).on("input.mask paste.mask",function(){B.prop("readonly")||setTimeout(function(){var a=A(!0);B.caret(a),h()},0)}),e&&f&&B.off("input.mask").on("input.mask",u),A()})}})}); /* End */ ; ; /* Start:"a:4:{s:4:"full";s:73:"/local/templates/klausmusic/js/jquery.autocomplete.min.js?164847601113062";s:6:"source";s:57:"/local/templates/klausmusic/js/jquery.autocomplete.min.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ /** * Ajax Autocomplete for jQuery, version 1.2.24 * (c) 2014 Tomas Kirda * * Ajax Autocomplete for jQuery is freely distributable under the terms of an MIT-style license. * For details, see the web site: https://github.com/devbridge/jQuery-Autocomplete */ !function(a){"use strict";"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports&&"function"==typeof require?require("jquery"):jQuery)}(function(a){"use strict";function b(c,d){var e=function(){},f=this,g={ajaxSettings:{},autoSelectFirst:!1,appendTo:document.body,serviceUrl:null,lookup:null,onSelect:null,width:"auto",minChars:1,maxHeight:300,deferRequestBy:0,params:{},formatResult:b.formatResult,delimiter:null,zIndex:9999,type:"GET",noCache:!1,onSearchStart:e,onSearchComplete:e,onSearchError:e,preserveInput:!1,containerClass:"autocomplete-suggestions",tabDisabled:!1,dataType:"text",currentRequest:null,triggerSelectOnValidInput:!0,preventBadQueries:!0,lookupFilter:function(a,b,c){return-1!==a.value.toLowerCase().indexOf(c)},paramName:"query",transformResult:function(b){return"string"==typeof b?a.parseJSON(b):b},showNoSuggestionNotice:!1,noSuggestionNotice:"No results",orientation:"bottom",forceFixPosition:!1};f.element=c,f.el=a(c),f.suggestions=[],f.badQueries=[],f.selectedIndex=-1,f.currentValue=f.element.value,f.intervalId=0,f.cachedResponse={},f.onChangeInterval=null,f.onChange=null,f.isLocal=!1,f.suggestionsContainer=null,f.noSuggestionsContainer=null,f.options=a.extend({},g,d),f.classes={selected:"autocomplete-selected",suggestion:"autocomplete-suggestion"},f.hint=null,f.hintValue="",f.selection=null,f.initialize(),f.setOptions(d)}var c=function(){return{escapeRegExChars:function(a){return a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},createNode:function(a){var b=document.createElement("div");return b.className=a,b.style.position="absolute",b.style.display="none",b}}}(),d={ESC:27,TAB:9,RETURN:13,LEFT:37,UP:38,RIGHT:39,DOWN:40};b.utils=c,a.Autocomplete=b,b.formatResult=function(a,b){var d="("+c.escapeRegExChars(b)+")";return a.value.replace(new RegExp(d,"gi"),"$1").replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/<(\/?strong)>/g,"<$1>")},b.prototype={killerFn:null,initialize:function(){var c,d=this,e="."+d.classes.suggestion,f=d.classes.selected,g=d.options;d.element.setAttribute("autocomplete","off"),d.killerFn=function(b){0===a(b.target).closest("."+d.options.containerClass).length&&(d.killSuggestions(),d.disableKillerFn())},d.noSuggestionsContainer=a('
    ').html(this.options.noSuggestionNotice).get(0),d.suggestionsContainer=b.utils.createNode(g.containerClass),c=a(d.suggestionsContainer),c.appendTo(g.appendTo),"auto"!==g.width&&c.width(g.width),c.on("mouseover.autocomplete",e,function(){d.activate(a(this).data("index"))}),c.on("mouseout.autocomplete",function(){d.selectedIndex=-1,c.children("."+f).removeClass(f)}),c.on("click.autocomplete",e,function(){d.select(a(this).data("index"))}),d.fixPositionCapture=function(){d.visible&&d.fixPosition()},a(window).on("resize.autocomplete",d.fixPositionCapture),d.el.on("keydown.autocomplete",function(a){d.onKeyPress(a)}),d.el.on("keyup.autocomplete",function(a){d.onKeyUp(a)}),d.el.on("blur.autocomplete",function(){d.onBlur()}),d.el.on("focus.autocomplete",function(){d.onFocus()}),d.el.on("change.autocomplete",function(a){d.onKeyUp(a)}),d.el.on("input.autocomplete",function(a){d.onKeyUp(a)})},onFocus:function(){var a=this;a.fixPosition(),0===a.options.minChars&&0===a.el.val().length&&a.onValueChange()},onBlur:function(){this.enableKillerFn()},abortAjax:function(){var a=this;a.currentRequest&&(a.currentRequest.abort(),a.currentRequest=null)},setOptions:function(b){var c=this,d=c.options;a.extend(d,b),c.isLocal=a.isArray(d.lookup),c.isLocal&&(d.lookup=c.verifySuggestionsFormat(d.lookup)),d.orientation=c.validateOrientation(d.orientation,"bottom"),a(c.suggestionsContainer).css({"max-height":d.maxHeight+"px",width:d.width+"px","z-index":d.zIndex})},clearCache:function(){this.cachedResponse={},this.badQueries=[]},clear:function(){this.clearCache(),this.currentValue="",this.suggestions=[]},disable:function(){var a=this;a.disabled=!0,clearInterval(a.onChangeInterval),a.abortAjax()},enable:function(){this.disabled=!1},fixPosition:function(){var b=this,c=a(b.suggestionsContainer),d=c.parent().get(0);if(d===document.body||b.options.forceFixPosition){var e=b.options.orientation,f=c.outerHeight(),g=b.el.outerHeight(),h=b.el.offset(),i={top:h.top,left:h.left};if("auto"===e){var j=a(window).height(),k=a(window).scrollTop(),l=-k+h.top-f,m=k+j-(h.top+g+f);e=Math.max(l,m)===l?"top":"bottom"}if("top"===e?i.top+=-f:i.top+=g,d!==document.body){var n,o=c.css("opacity");b.visible||c.css("opacity",0).show(),n=c.offsetParent().offset(),i.top-=n.top,i.left-=n.left,b.visible||c.css("opacity",o).hide()}"auto"===b.options.width&&(i.width=b.el.outerWidth()-2+"px"),c.css(i)}},enableKillerFn:function(){var b=this;a(document).on("click.autocomplete",b.killerFn)},disableKillerFn:function(){var b=this;a(document).off("click.autocomplete",b.killerFn)},killSuggestions:function(){var a=this;a.stopKillSuggestions(),a.intervalId=window.setInterval(function(){a.visible&&(a.el.val(a.currentValue),a.hide()),a.stopKillSuggestions()},50)},stopKillSuggestions:function(){window.clearInterval(this.intervalId)},isCursorAtEnd:function(){var a,b=this,c=b.el.val().length,d=b.element.selectionStart;return"number"==typeof d?d===c:document.selection?(a=document.selection.createRange(),a.moveStart("character",-c),c===a.text.length):!0},onKeyPress:function(a){var b=this;if(!b.disabled&&!b.visible&&a.which===d.DOWN&&b.currentValue)return void b.suggest();if(!b.disabled&&b.visible){switch(a.which){case d.ESC:b.el.val(b.currentValue),b.hide();break;case d.RIGHT:if(b.hint&&b.options.onHint&&b.isCursorAtEnd()){b.selectHint();break}return;case d.TAB:if(b.hint&&b.options.onHint)return void b.selectHint();if(-1===b.selectedIndex)return void b.hide();if(b.select(b.selectedIndex),b.options.tabDisabled===!1)return;break;case d.RETURN:if(-1===b.selectedIndex)return void b.hide();b.select(b.selectedIndex);break;case d.UP:b.moveUp();break;case d.DOWN:b.moveDown();break;default:return}a.stopImmediatePropagation(),a.preventDefault()}},onKeyUp:function(a){var b=this;if(!b.disabled){switch(a.which){case d.UP:case d.DOWN:return}clearInterval(b.onChangeInterval),b.currentValue!==b.el.val()&&(b.findBestHint(),b.options.deferRequestBy>0?b.onChangeInterval=setInterval(function(){b.onValueChange()},b.options.deferRequestBy):b.onValueChange())}},onValueChange:function(){var b=this,c=b.options,d=b.el.val(),e=b.getQuery(d);return b.selection&&b.currentValue!==e&&(b.selection=null,(c.onInvalidateSelection||a.noop).call(b.element)),clearInterval(b.onChangeInterval),b.currentValue=d,b.selectedIndex=-1,c.triggerSelectOnValidInput&&b.isExactMatch(e)?void b.select(0):void(e.lengthh&&(c.suggestions=c.suggestions.slice(0,h)),c},getSuggestions:function(b){var c,d,e,f,g=this,h=g.options,i=h.serviceUrl;if(h.params[h.paramName]=b,d=h.ignoreParams?null:h.params,h.onSearchStart.call(g.element,h.params)!==!1){if(a.isFunction(h.lookup))return void h.lookup(b,function(a){g.suggestions=a.suggestions,g.suggest(),h.onSearchComplete.call(g.element,b,a.suggestions)});g.isLocal?c=g.getSuggestionsLocal(b):(a.isFunction(i)&&(i=i.call(g.element,b)),e=i+"?"+a.param(d||{}),c=g.cachedResponse[e]),c&&a.isArray(c.suggestions)?(g.suggestions=c.suggestions,g.suggest(),h.onSearchComplete.call(g.element,b,c.suggestions)):g.isBadQuery(b)?h.onSearchComplete.call(g.element,b,[]):(g.abortAjax(),f={url:i,data:d,type:h.type,dataType:h.dataType},a.extend(f,h.ajaxSettings),g.currentRequest=a.ajax(f).done(function(a){var c;g.currentRequest=null,c=h.transformResult(a,b),g.processResponse(c,b,e),h.onSearchComplete.call(g.element,b,c.suggestions)}).fail(function(a,c,d){h.onSearchError.call(g.element,b,a,c,d)}))}},isBadQuery:function(a){if(!this.options.preventBadQueries)return!1;for(var b=this.badQueries,c=b.length;c--;)if(0===a.indexOf(b[c]))return!0;return!1},hide:function(){var b=this,c=a(b.suggestionsContainer);a.isFunction(b.options.onHide)&&b.visible&&b.options.onHide.call(b.element,c),b.visible=!1,b.selectedIndex=-1,clearInterval(b.onChangeInterval),a(b.suggestionsContainer).hide(),b.signalHint(null)},suggest:function(){if(0===this.suggestions.length)return void(this.options.showNoSuggestionNotice?this.noSuggestions():this.hide());var b,c=this,d=c.options,e=d.groupBy,f=d.formatResult,g=c.getQuery(c.currentValue),h=c.classes.suggestion,i=c.classes.selected,j=a(c.suggestionsContainer),k=a(c.noSuggestionsContainer),l=d.beforeRender,m="",n=function(a,c){var d=a.data[e];return b===d?"":(b=d,'
    '+b+"
    ")};return d.triggerSelectOnValidInput&&c.isExactMatch(g)?void c.select(0):(a.each(c.suggestions,function(a,b){e&&(m+=n(b,g,a)),m+='
    '+f(b,g)+"
    "}),this.adjustContainerWidth(),k.detach(),j.html(m),a.isFunction(l)&&l.call(c.element,j),c.fixPosition(),j.show(),d.autoSelectFirst&&(c.selectedIndex=0,j.scrollTop(0),j.children("."+h).first().addClass(i)),c.visible=!0,void c.findBestHint())},noSuggestions:function(){var b=this,c=a(b.suggestionsContainer),d=a(b.noSuggestionsContainer);this.adjustContainerWidth(),d.detach(),c.empty(),c.append(d),b.fixPosition(),c.show(),b.visible=!0},adjustContainerWidth:function(){var b,c=this,d=c.options,e=a(c.suggestionsContainer);"auto"===d.width&&(b=c.el.outerWidth()-2,e.width(b>0?b:300))},findBestHint:function(){var b=this,c=b.el.val().toLowerCase(),d=null;c&&(a.each(b.suggestions,function(a,b){var e=0===b.value.toLowerCase().indexOf(c);return e&&(d=b),!e}),b.signalHint(d))},signalHint:function(b){var c="",d=this;b&&(c=d.currentValue+b.value.substr(d.currentValue.length)),d.hintValue!==c&&(d.hintValue=c,d.hint=b,(this.options.onHint||a.noop)(c))},verifySuggestionsFormat:function(b){return b.length&&"string"==typeof b[0]?a.map(b,function(a){return{value:a,data:null}}):b},validateOrientation:function(b,c){return b=a.trim(b||"").toLowerCase(),-1===a.inArray(b,["auto","bottom","top"])&&(b=c),b},processResponse:function(a,b,c){var d=this,e=d.options;a.suggestions=d.verifySuggestionsFormat(a.suggestions),e.noCache||(d.cachedResponse[c]=a,e.preventBadQueries&&0===a.suggestions.length&&d.badQueries.push(b)),b===d.getQuery(d.currentValue)&&(d.suggestions=a.suggestions,d.suggest())},activate:function(b){var c,d=this,e=d.classes.selected,f=a(d.suggestionsContainer),g=f.find("."+d.classes.suggestion);return f.find("."+e).removeClass(e),d.selectedIndex=b,-1!==d.selectedIndex&&g.length>d.selectedIndex?(c=g.get(d.selectedIndex),a(c).addClass(e),c):null},selectHint:function(){var b=this,c=a.inArray(b.hint,b.suggestions);b.select(c)},select:function(a){var b=this;b.hide(),b.onSelect(a)},moveUp:function(){var b=this;if(-1!==b.selectedIndex)return 0===b.selectedIndex?(a(b.suggestionsContainer).children().first().removeClass(b.classes.selected),b.selectedIndex=-1,b.el.val(b.currentValue),void b.findBestHint()):void b.adjustScroll(b.selectedIndex-1)},moveDown:function(){var a=this;a.selectedIndex!==a.suggestions.length-1&&a.adjustScroll(a.selectedIndex+1)},adjustScroll:function(b){var c=this,d=c.activate(b);if(d){var e,f,g,h=a(d).outerHeight();e=d.offsetTop,f=a(c.suggestionsContainer).scrollTop(),g=f+c.options.maxHeight-h,f>e?a(c.suggestionsContainer).scrollTop(e):e>g&&a(c.suggestionsContainer).scrollTop(e-c.options.maxHeight+h),c.options.preserveInput||c.el.val(c.getValue(c.suggestions[b].value)),c.signalHint(null)}},onSelect:function(b){var c=this,d=c.options.onSelect,e=c.suggestions[b];c.currentValue=c.getValue(e.value),c.currentValue===c.el.val()||c.options.preserveInput||c.el.val(c.currentValue),c.signalHint(null),c.suggestions=[],c.selection=e,a.isFunction(d)&&d.call(c.element,e)},getValue:function(a){var b,c,d=this,e=d.options.delimiter;return e?(b=d.currentValue,c=b.split(e),1===c.length?a:b.substr(0,b.length-c[c.length-1].length)+a):a},dispose:function(){var b=this;b.el.off(".autocomplete").removeData("autocomplete"),b.disableKillerFn(),a(window).off("resize.autocomplete",b.fixPositionCapture),a(b.suggestionsContainer).remove()}},a.fn.autocomplete=a.fn.devbridgeAutocomplete=function(c,d){var e="autocomplete";return 0===arguments.length?this.first().data(e):this.each(function(){var f=a(this),g=f.data(e);"string"==typeof c?g&&"function"==typeof g[c]&&g[c](d):(g&&g.dispose&&g.dispose(),g=new b(this,c),f.data(e,g))})}}); /* End */ ; ; /* Start:"a:4:{s:4:"full";s:62:"/local/templates/klausmusic/js/mbclicker.min.js?16484760111108";s:6:"source";s:47:"/local/templates/klausmusic/js/mbclicker.min.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ $.fn.mbClicker=function(t){var i=$(this),n=navigator.userAgent,o=n.match(/iPad/i)?"touchstart":"mousedown",e="none";t.shadow&&(e="0 0 "+t.size/5+"px "+t.colour),i.unbind().on(o,function(i){var n=$(this),o=n.attr("data-clickpoint"),r=i.clientX+"x"+i.clientY;if(o==r)return!1;n.attr("data-clickpoint",r),i.preventDefault(),i.stopImmediatePropagation(),n.append('
    ');var a=i.offsetX,s=i.offsetY,c=$(".clicked");c.css({position:"absolute",top:s.toString()+"px",left:a.toString()+"px",width:"0",height:"0",border:"0px solid "+t.colour,"box-shadow":e,"border-radius":"100%","box-sizing":"border-box","-webkit-transition":"none",transition:"none","pointer-events":"none","z-index":Number.MAX_VALUE.toString()}),c.animate({top:(s-t.size).toString()+"px",left:(a-t.size).toString()+"px","border-width":t.size.toString()+"px",opacity:"0"},t.speed,function(){$(this).remove()}),t.buttonAnimation&&(n.css({"-webkit-transition":"none",transition:"none"}),n.stop().animate({opacity:"0.8"},.25*t.speed,function(){n.animate({opacity:"1"},.75*t.speed,function(){$(this).removeAttr("style")})}))})}; /* End */ ; ; /* Start:"a:4:{s:4:"full";s:69:"/local/templates/klausmusic/js/jquery.touchwipe.min.js?16484760111552";s:6:"source";s:54:"/local/templates/klausmusic/js/jquery.touchwipe.min.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ /** * jQuery Plugin to obtain touch gestures from iPhone, iPod Touch and iPad, should also work with Android mobile phones (not tested yet!) * Common usage: wipe images (left and right to show the previous or next image) * * @author Andreas Waltl, netCU Internetagentur (http://www.netcu.de) * @version 1.1.1 (9th December 2010) - fix bug (older IE's had problems) * @version 1.1 (1st September 2010) - support wipe up and wipe down * @version 1.0 (15th July 2010) */ (function($){$.fn.touchwipe=function(settings){var config={min_move_x:20,min_move_y:20,wipeLeft:function(){},wipeRight:function(){},wipeUp:function(){},wipeDown:function(){},preventDefaultEvents:true};if(settings)$.extend(config,settings);this.each(function(){var startX;var startY;var isMoving=false;function cancelTouch(){this.removeEventListener('touchmove',onTouchMove);startX=null;isMoving=false}function onTouchMove(e){if(config.preventDefaultEvents){e.preventDefault()}if(isMoving){var x=e.touches[0].pageX;var y=e.touches[0].pageY;var dx=startX-x;var dy=startY-y;if(Math.abs(dx)>=config.min_move_x){cancelTouch();if(dx>0){config.wipeLeft()}else{config.wipeRight()}}else if(Math.abs(dy)>=config.min_move_y){cancelTouch();if(dy>0){config.wipeDown()}else{config.wipeUp()}}}}function onTouchStart(e){if(e.touches.length==1){startX=e.touches[0].pageX;startY=e.touches[0].pageY;isMoving=true;this.addEventListener('touchmove',onTouchMove,false)}}if('ontouchstart'in document.documentElement){this.addEventListener('touchstart',onTouchStart,false)}});return this}})(jQuery); /* End */ ; ; /* Start:"a:4:{s:4:"full";s:51:"/local/templates/klausmusic/js/hl.js?16484760111361";s:6:"source";s:36:"/local/templates/klausmusic/js/hl.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ $(document).ready(function () { if (window.location.href.indexOf("/order") > -1) { var url_string = window.location.href; var url = new URL(url_string); var c = url.searchParams.get("payment"); if (c == 'hl') { $('#ID_PAY_SYSTEM_ID__89').click(); } } $(".ssec").click(function () { var popup7secData = ""; $('body').append(""); var itemid = $(this).parent().find("a.orange_button").attr("data-id"); if(!itemid) itemid = $("a.orange_button").first().attr("data-id"); ajaxurl = 'https://klausmusic.ru/include/add2bas.php'; console.log(ajaxurl); $(".ssec-cta").click(function () { $.ajax({ url: ajaxurl, data: { id : itemid }, context: document.body }).done(function () { var redirurl = "/personal/order/make?payment=hl"; window.location = redirurl; }); }); $(".popup-7seconds-frame-container, .popup-7seconds-frame-box").click(function () { $(".popup-7seconds-frame-container").remove(); }); }); }); /* End */ ; ; /* Start:"a:4:{s:4:"full";s:55:"/local/templates/klausmusic/js/script.js?16484760111957";s:6:"source";s:40:"/local/templates/klausmusic/js/script.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ function Rees_callback() { $('.products-list').each(function(){ var list = $(this), carouselBox = $('.products', list); // Блокировка от повтора инициализции if(list.data('carousel')) return; list.data('carousel', true); // Количество // Карусель carouselBox.jcarousel({ wrap: 'circular' }).jcarouselAutoscroll({ interval: 3000, target: '+=1', autostart: true }); // Вперед\назад кнопки $('.products_prev', list).jcarouselControl({ target: '-=1', carousel: carouselBox }); $('.products_next', list).jcarouselControl({ target: '+=1', carousel: carouselBox }); // Слайд пальцем carouselBox.touchwipe({ wipeLeft: function(){ carouselBox.jcarousel('scroll', '+=1'); }, wipeRight: function(){ carouselBox.jcarousel('scroll', '-=1'); }, // wipeUp: function() { alert("up"); }, // wipeDown: function() { alert("down"); }, min_move_x: 40, min_move_y: 80, preventDefaultEvents: false }); }); } // Area2Darken function RSGoPro_Area2Darken(areaObj, anim, options) { var opt = $.extend( { 'progressLeft': false, 'progressTop': false, }, options); if(!areaObj.hasClass('areadarken')){ areaObj.addClass('areadarken').css({"position":"relative"}).append('
    '); if(anim == 'animashka'){ areaObj.find('.area2darken').append(''); if(opt.progressTop){ areaObj.find('.animashka').css({'top': opt.progressTop}); } } } else { areaObj.removeClass('areadarken').removeAttr('style').find('.area2darken').remove(); } } /* End */ ; ; /* Start:"a:4:{s:4:"full";s:58:"/local/templates/klausmusic/js/settings.js?164847601121547";s:6:"source";s:42:"/local/templates/klausmusic/js/settings.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ $(document).ready(function(){ windowSize(); width_item(); reg(); $( '#sing_in' ).click(); $( window ).bind( 'hashchange', function(){ if( location.hash == "#clubreg" ){ $( 'a#reg' ).click(); } if( location.hash == "#clubsign_in" ){ $.magnificPopup.close(); $( 'a#sing_in' ).click(); } }); $(".slide_carok").click(function(e){ e.preventDefault(); $.post( "/include/car_save.php", { mark: $("input[name='slide_carmark']").val(), model: $("input[name='slide_carmodel']").val() }).done(function( data ) { $(".car_markmod_select").removeClass("active").removeClass("visoverflow"); location.reload(); }); }) $("input[name='slide_carmark']").autocomplete({ serviceUrl: '/include/auto_suggest.php', minChars: 2, appendTo: ".car_markmod_select", showNoSuggestionNotice: true, noSuggestionNotice: "Попробуйте смените раскладку клавиатуры" }); $("input[name='slide_carmodel']").autocomplete({ serviceUrl: '/include/automodel_suggest.php', minChars: 1, params: {mark: $("input[name='slide_carmark']").val()}, appendTo: ".car_markmod_select", showNoSuggestionNotice: true, noSuggestionNotice: "Попробуйте смените раскладку клавиатуры" }); $("input[name='slide_carmark']").blur(function(e){ if(!$(this).val()){ $("input[name='slide_carmodel']").val("").attr("readonly",true); }else{ $("input[name='slide_carmodel']").removeAttr("readonly").autocomplete().setOptions({ params: {mark: $("input[name='slide_carmark']").val()} }); } }).change(function(e){ if(!$(this).val()){ $("input[name='slide_carmodel']").val("").attr("readonly",true); }else{ $("input[name='slide_carmodel']").removeAttr("readonly").autocomplete().setOptions({ params: {mark: $("input[name='slide_carmark']").val()} }); } }).keyup(function(){ $("input[name='slide_carmodel']").val(""); }) $(".car_markmod_select").click(function(){ if(!$(this).hasClass("active")){ $.post( "/include/car_select_data.php").done(function(data){ var obj = jQuery.parseJSON(data); var mark = ""; var model = ""; $.each( obj, function( key, val ) { if(val.mark)mark = val.mark; if(val.model)model = val.model; }); $("input[name='slide_carmark']").val(mark); $("input[name='slide_carmodel']").val(model); if(!mark)$("input[name='slide_carmodel']").attr("readonly",true); $(".car_markmod_select").addClass("active"); setTimeout('if($(".car_markmod_select").hasClass("active"))$(".car_markmod_select").addClass("visoverflow")', 400); }) } }) $(".car_markmod_select").mouseleave(function(){ $(this).removeClass("active").removeClass("visoverflow"); $(".car_markmod_select input").blur(); }) $(".car_markmod_select .autocomplete-suggestions").mouseleave(function(e){ e.stopPropagation(); }) $("#cart").mouseenter(function(){ $(this).addClass("mouseenter"); $.post( "/include/minibasket.php").done(function(data){ if($("#cart").hasClass("mouseenter"))$("#cart .hide_infographic").after(data); $(this).removeClass("mouseenter"); }) }) $("#cart").mouseleave(function(){ $(".mini_basket").parent().parent().remove(); $(this).removeClass("mouseenter"); }) $("#cart").on("click", ".delete a", function(){ var productId = $(this).attr('data-product'); $(".mini_basket").parent().parent().remove(); setTimeout(function(){ $.post( "/include/minibasket.php").done(function(data){ $("#cart .hide_infographic").after(data); updatebasketcount(); updatewishcount(); },100); // REES46 DeleteFromBasket if(typeof(window.r46) != 'undefined') { r46('track', 'remove_from_cart', productId); } //end REES46 DeleteFromBasket }) }); $('body').on('click', '.lb_info_delete a', function(e){ var productId = $(this).attr('data-product'); // REES46 DeleteFromBasket if(typeof(window.r46) != 'undefined') { r46('track', 'remove_from_cart', productId); } //end REES46 DeleteFromBasket }); $(window).on('resize', function(){ windowSize(); width_item(); reg(); }); //alert($(window).width()); /*NAVIGATION*/ $(function () { $('#menu-menu li a').each(function () { var location = window.location.href; var link = this.href; if(location == link) { $(this).addClass('active'); } }); }); $('#anybodyemail').on('click', function(){ newsletter = $('input[name="newsletter"]').val(); if (newsletter == 0) { $('input[name="newsletter"]').css('border-color', '#da2536'); }else { $('input[name="newsletter"]').removeAttr('style'); } console.log(newsletter); return false; }); /*HEAD FOCUS*/ function windowSize(){ var win = $(window).width(); if (win > 1200) { $('.search input').focus(function(){ $(this).data('placeholder',$(this).attr('placeholder')).addClass('slide_input'); $(this).attr('placeholder',''); $('.hide_infographic').hide(); $('.item_infographic').addClass('resize'); $('.search').addClass('open_search'); }); $('.search input').blur(function(){ $(this).attr('placeholder',$(this).data('placeholder')).removeClass('slide_input'); $('.search').removeClass('open_search'); $('.hide_infographic').show(500); setTimeout(function(){ $('.item_infographic').removeClass('resize'); },500) }); } else if(win <= 620) { $('.search input').focus(function(){ $(this).data('placeholder',$(this).attr('placeholder')); $(this).attr('placeholder',''); $('.search').addClass('mobile_search'); $('.head_infographic').hide(); }); $('.search input').blur(function(){ $(this).attr('placeholder',$(this).data('placeholder')); $('.search').removeClass('mobile_search'); $('.head_infographic').fadeIn(1500); setTimeout(function(){$(".title-search-result").html(""); $('.search input').val("");},100); }); } }; /*FORMSSTYLER*/ $('.city').styler(); $('.bx-auth input[type="checkbox"]').styler(); /*BURGER*/ $('.burger_fix').on('click', function(){ $(this).toggleClass('action'); $('#catalog_menu').toggleClass('open'); $('.mask, .super_wrap').toggleClass('open'); $('body, html').toggleClass('fix_scrolls'); }); /*MARGIN SLIDERS*/ function width_item() { var win = $(window).width(); if (win <= 620) { var review_width = $('.review_slider').width(); var width_recommend = (review_width-294)/2; //console.log(review_width); $('.recommend .recommend_item, .review_slider .recommend_item').css({'margin-right': width_recommend, 'margin-left': width_recommend}); }else { $('.recommend .recommend_item, .review_slider .recommend_item').css({'margin-right': '18px', 'margin-left' : '0'}); } }; /*HOVER MASK*/ $('.mask').click(function(){ if($('#catalog_menu').hasClass('open')){ $('.burger_fix').trigger('click'); } }); function updatebasketcount(){ $.post( "/include/getbasketcount.php").done(function(data){ $("#cart .hide_infographic span").html(data); }) } function updatewishcount(){ $.post( "/include/getwishcount.php").done(function(data){ $("#pending .hide_infographic span").html(data); }) } $('body').on('click', '.blue_button, .orange_button, .blue_button_list', function(e){ var blue = $(this); var id = $(this).data("id"); if(blue.hasClass("orange_button--disabled")) return false; if(!id) return true; e.preventDefault(); $.post( "/include/add2bas.php", { id: id }).done(function(data){ if(data.trim()=="1"){ // REES46 AddToBasket if(typeof(window.r46) != 'undefined') { r46('track', 'cart', id); } //end REES46 AddToBasket //ok updatebasketcount(); if(!$(blue).hasClass("blue_button_list"))blue.text("Куплено"); console.log(id); $.magnificPopup.open({ items: { src: '/include/added2bas.php' }, type: 'ajax', ajax: { settings: { data : 'PRODUCT_ID=' + id } }, callbacks: { open: function() { $('body, html').addClass('fix_scroll'); }, ajaxContentAdded: function() { interval = setInterval("$('.autoclose span').text(parseInt($('.autoclose span').text())-1)",1000); timeout = setTimeout("$('.mfp-close').click()", 15000); var box = $('.mfp-content'), content = $('.mag_pop', box), css = { 'margin-top': 0, 'max-height': 'auto', 'overflow': 'none' }, boxHeight = box.height(), contentHeight = content.height(), screenHeight = window.innerHeight; if(screenHeight < boxHeight) { contentHeight = screenHeight;//screenHeight - (boxHeight - contentHeight); boxHeight = screenHeight; css['max-height'] = contentHeight; css['min-height'] = contentHeight; css['overflow'] = 'auto'; } // Центруем box.css({height: boxHeight, 'margin-top': -(boxHeight / 2)}); // Сколл content.css(css); }, close: function() { clearInterval(interval); clearTimeout(timeout); $('body, html').removeClass('fix_scroll'); } } }, 0); }else{ alert("Произошла ошибка"); } }) }) $("body").on("click", ".baspop .hold", function(e){ e.preventDefault(); $(".mfp-close").click(); }) $("body").on("click", ".hold, .labelhold", function(e){ e.preventDefault(); hold = $(this); id = $(this).data("id"); if(!id)return; $.post( "/include/add2wish.php", { id: id }).done(function(data){ if(data.trim()=="1"){ //ok updatewishcount(); if(!$(hold).hasClass("labelhold"))hold.text("Отложено"); }else{ alert("Произошла ошибка"); } }) }) $('#sing_in, #sing_in_bot, #sing_in_club').each(function () { var button = $(this), href = button.attr('data-href') || button.attr('href'); if (!href) return; button.magnificPopup({ items: { src: href }, type: 'inline', callbacks: { open: function () { $('body, html').addClass('fix_scroll'); var box = $('.mfp-content'), content = $('.mag_pop', box), css = { 'margin-top': 0, 'max-height': 'auto', 'overflow': 'none' }, boxHeight = box.height(), contentHeight = content.height(), screenHeight = window.innerHeight; if (screenHeight < boxHeight) { contentHeight = screenHeight;//screenHeight - (boxHeight - contentHeight); boxHeight = screenHeight; css['max-height'] = contentHeight; css['min-height'] = contentHeight; css['overflow'] = 'auto'; } // Центруем box.css({height: boxHeight, 'margin-top': -(boxHeight / 2)}); // Сколл content.css(css); }, close: function () { $(".errortext, .errortextf, .messagetext").css("display", "none"); $('body, html').removeClass('fix_scroll'); } } }); }); function reg() { var win = $(window).width(); if (win <= 700) { $('#reg, #reg_bot, #city_sel').each(function () { var button = $(this), href = button.attr('data-href') || button.attr('href'); if (!href) return; button.magnificPopup({ items: { src: href }, type: 'ajax', callbacks: { open: function () { $('body, html').addClass('fix_scroll'); }, close: function () { $('body, html').removeClass('fix_scroll'); }, ajaxContentAdded: function () { $('.regpop').css({'overflow-y': 'scroll', 'height': $(window).height()}); $('.mfp-wrap').css('overflow-y', 'hidden !important'); var box = $('.mfp-content'), content = $('.mag_pop', box), css = { 'margin-top': 0, 'max-height': 'auto', 'overflow': 'none' }, boxHeight = box.height(), contentHeight = content.height(), screenHeight = window.innerHeight; if (screenHeight < boxHeight) { contentHeight = screenHeight;//screenHeight - (boxHeight - contentHeight); boxHeight = screenHeight; css['max-height'] = contentHeight; css['min-height'] = contentHeight; css['overflow'] = 'auto'; } // Центруем box.css({height: boxHeight, 'margin-top': -(boxHeight / 2)}); // Сколл content.css(css); } } }); }); }else{ $('#reg, #reg_bot, #city_sel').each(function () { var button = $(this), href = button.attr('data-href') || button.attr('href'); if (!href) return; button.magnificPopup({ items: { src: href }, type: 'ajax', callbacks: { open: function () { $('body, html').addClass('fix_scroll'); }, close: function () { $('body, html').removeClass('fix_scroll'); }, ajaxContentAdded: function () { $('.mfp-content').addClass('registrations'); } } }); }); } } $('#intouch').each(function () { var button = $(this), href = button.attr('data-href') || button.attr('href'); if (!href) return; button.magnificPopup({ items: { src: href }, type: 'ajax', callbacks: { open: function () { $('body, html').addClass('fix_scroll'); }, close: function () { $('body, html').removeClass('fix_scroll'); }, ajaxContentAdded: function () { var box = $('.mfp-content'), content = $('.mag_pop', box), css = { 'margin-top': 0, 'max-height': 'auto', 'overflow': 'none' }, boxHeight = box.height(), contentHeight = content.height(), screenHeight = window.innerHeight; if (screenHeight < boxHeight) { contentHeight = screenHeight;//screenHeight - (boxHeight - contentHeight); boxHeight = screenHeight; css['max-height'] = contentHeight; css['min-height'] = contentHeight; css['overflow'] = 'auto'; } // Центруем box.css({height: boxHeight, 'margin-top': -(boxHeight / 2)}); // Сколл content.css(css); } } }); }); $('.calculator').each(function () { var button = $(this), href = button.attr('data-href') || button.attr('href'); if (!href) return; button.magnificPopup({ items: { src: href }, type: 'ajax', callbacks: { open: function () { $('body, html').addClass('fix_scroll'); }, close: function () { $('body, html').removeClass('fix_scroll'); }, ajaxContentAdded: function () { var box = $('.mfp-content'), content = $('.mag_pop', box), css = { 'margin-top': 0, 'max-height': 'auto', 'overflow': 'none' }, boxHeight = box.height(), contentHeight = content.height(), screenHeight = window.innerHeight; if (screenHeight < boxHeight) { contentHeight = screenHeight;//screenHeight - (boxHeight - contentHeight); boxHeight = screenHeight; css['max-height'] = contentHeight; css['min-height'] = contentHeight; css['overflow'] = 'auto'; } // Центруем box.css({height: boxHeight, 'margin-top': -(boxHeight / 2)}); // Сколл content.css(css); } } }); }); $('.bay_one_click, .callmeback, .cheaper, .footer_feedback, .bay_club_price_click').each(function () { var button = $(this), href = button.attr('data-href') || button.attr('href'); if (!href) return; button.magnificPopup({ items: { src: href }, type: 'ajax', callbacks: { open: function () { $('body, html').addClass('fix_scroll'); }, close: function () { $('body, html').removeClass('fix_scroll'); }, ajaxContentAdded: function () { var box = $('.mfp-content'), content = $('.mag_pop', box), css = { 'margin-top': 0, 'max-height': 'auto', 'overflow': 'none' }, boxHeight = box.height(), contentHeight = content.height(), screenHeight = window.innerHeight; if (screenHeight < boxHeight) { contentHeight = screenHeight;//screenHeight - (boxHeight - contentHeight); boxHeight = screenHeight; css['max-height'] = contentHeight; css['min-height'] = contentHeight; css['overflow'] = 'auto'; } // Центруем box.css({height: boxHeight, 'margin-top': -(boxHeight / 2)}); // Сколл content.css(css); } } }); }); /* function disableScrolling(){ var x=window.scrollX; var y=window.scrollY; window.onscroll=function(){window.scrollTo(x, y);}; } function enableScrolling(){ window.onscroll=function(){}; } disableScrolling(); */ });//end ready /* End */ ; ; /* Start:"a:4:{s:4:"full";s:65:"/local/templates/klausmusic/js/settings_catalog.js?16484760113718";s:6:"source";s:50:"/local/templates/klausmusic/js/settings_catalog.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ $(document).ready(function(){ cat_menu_height(); $(window).on('resize', function(){ cat_menu_height(); }); /*CATALOG HIDDEN MENU*/ function cat_menu_height() { var list_height = $('.catalog_list li').height(); var list_str = $('.catalog_list .menu_items').length; var win = $(window).width(); if(win > 770) { $('.catalog_list').addClass('hidden1').css({'height':'0', 'display':'none'}); $('#catalog_menu h2').on('click', function(){ $('.catalog_list.hidden1').toggleClass('open_category'); if($('.catalog_list.hidden1').hasClass('open_category')){ $('.catalog_list.hidden1').css('display', 'block').height((list_str*list_height)+15) }else{ $('.catalog_list.hidden1').height('0') setTimeout(function(){$('.catalog_list.hidden1').css('display', 'none')},600) } $('.mask').toggleClass('fixed'); }) $('.mask').on('click', function(){ $(this).removeClass('fixed'); $('.catalog_list.hidden1').removeClass('open_category').height('0'); }); }else{ $('.catalog_list.hidden1').removeAttr('style'); $('.catalog_list').removeClass('hidden1'); } } /*SORTING*/ //$('.sorting span:first').addClass('active'); $("body").on('click', '.sorting span a', function(){ if(!$(this).hasClass('blocked')){ $('.sorting span').removeClass('active'); $(this).closest('.sorting span').addClass('active'); $('.sorting span').toggleClass('down'); $.cookie('sort', $(this).attr("id"), { path: '/' }); if($(this).parent().hasClass('down')) { $.cookie('sort_order', 'DESC', { path: '/' }); }else{ $.cookie('sort_order', 'ASC', { path: '/' }); } $("#set_filter").click(); $('.sorting span a, .sorting_table, .sorting_list').addClass("blocked"); return false; } }); $("body").on("click",".sorting_table", function(){ if(!$(this).hasClass('blocked')){ $.cookie('view', 'table', { path: '/' }); $("#set_filter").click(); $('.sorting span a, .sorting_table, .sorting_list').addClass("blocked"); return false; } }) $("body").on("click",".sorting_list", function(){ if(!$(this).hasClass('blocked')){ $.cookie('view', 'list', { path: '/' }); $("#set_filter").click(); $('.sorting span a, .sorting_table, .sorting_list').addClass("blocked"); return false; } }) $("body").on("click",".check_comparison", function() { if( $(this).hasClass("compared_item") ) { $(this).removeClass("compared_item"); $.ajax({ type: "GET", url: "/catalog/?action=DELETE_FROM_COMPARE_LIST&id="+$(this).attr("item_id")+"&ajax_action=Y", success: function(response){ $.ajax({ type: "GET", url: "/include/compare.php", success: function(response){ // alert(response); $("#numcompar").text(response); } }) } }); } else { $(this).addClass("compared_item"); $.ajax({ type: "GET", url: "/catalog/compare/?action=ADD_TO_COMPARE_LIST&id="+$(this).attr("item_id")+"&ajax_action=Y", success: function(response){ $.ajax({ type: "GET", url: "/include/compare.php", success: function(response){ // alert(response); $("#numcompar").text(response); } }) } }); } }); $('.wrap_catalog_filter h2').on('click',function(){ // при клике по заголовку спойлера var show = $(this).attr('show'); // проверяем атрибут, в котором записано - отображен спойлер или скрыт if(show == 1){ // если отображен, то прячем $(this).attr('show', 0); $('.filter').slideUp(300); }else{ // если спрятан, то показываем $(this).attr('show', 1); $('.filter').slideDown(300); } }); }); /* End */ ; ; /* Start:"a:4:{s:4:"full";s:79:"/local/components/akis/registration/templates/.default/script.js?16484760142354";s:6:"source";s:64:"/local/components/akis/registration/templates/.default/script.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ $(document).ready(function(e) { $(".regpop .user_type a").click(function(e){ e.preventDefault(); $(".regpop .user_type a").toggleClass("active"); $(".fizik_reg, .urik_reg").toggle(0); $(".regerror").hide(0); }); $(".regpop .reg_ur_step1").click(function(e){ e.preventDefault(); $(".urik_reg_step").hide(0); $(".urik_reg_step1").show(0); }); $(".regpop .reg_ur_step2").click(function(e){ e.preventDefault(); $.post( "/include/checkreg.php", { email: $("#reg_ur_email").val() }).done(function(data){ var errors = ""; if( data == "2" ) errors += "Email указан неверно
    "; if( data == "1" ) errors += "Пользователь с таким email уже существует
    "; if($("#reg_ur_password").val().length<6)errors+="Пароль должен быть не менее 6 символов
    "; if($("#reg_ur_password").val()!=$("#reg_ur_confirm_password").val())errors+="Пароли не совпадают
    "; if(errors){ $(".regerror").html(errors).fadeIn(100); }else{ $(".urik_reg_step").hide(0); $(".urik_reg_step2").show(0); $(".regerror").hide(0); } }) }); $(".regpop .reg_ur_step3").click(function(e){ e.preventDefault(); $(".urik_reg_step").hide(0); $(".urik_reg_step3").show(0); }); $(".regpop #fizik_reg_send, .regpop #urik_reg_send").click(function(e){ e.preventDefault(); var type = "fizik"; if($(this).attr("id")=="urik_reg_send")type = "urik"; $.post( "/include/reg.php", { reginfo: $(".regpop form").filter( ':first' ).serialize(), type: type }).done(function(data){ if(data==1){ $(".regpop .regsuccess").show(0); $(".regpop form, .regpop .user_type, .regpop .regerror").hide(0); setTimeout("window.location.reload()",1000); }else{ $('.mfp-wrap').animate({ scrollTop: 0 }, 400); $(".regpop .regerror").html(data).show(0); } }) }); }); /* End */ ; ; /* Start:"a:4:{s:4:"full";s:87:"/local/components/artems/search.yandex.line/templates/.default/script.js?16484760144019";s:6:"source";s:72:"/local/components/artems/search.yandex.line/templates/.default/script.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ $(function(){ /* * Препоиск */ var searchRowPrototype = $('.search-line-block .title-search-result .search-item-row.prototype').appendTo($('
    ')).removeClass('prototype'), // Функция отображения результата препоиска fnShowSearchResult = function(mData, $form, text){ var action = $form.attr('action'), $result = $form.parents('.search-line-block:first').find('.title-search-result'), url = $('.link-box a', $result), bResult = typeof(mData) != 'string'; // Настраиваем ссылку url.text(bResult?'Все результаты':'Перейти к расширенному поиску').attr('href', action + (action.indexOf('?') < 0? '?':'&') +'q='+ text); // Выводим сообщение if(!bResult) { $('.iblock.text .search-message', $result).text(mData); $('.iblock.result', $result).hide(); $('.iblock.text', $result).show(); } // Вывводим результат else { var newList = $('
    '); $.each(mData, function(k, obProduct){ var row = searchRowPrototype.clone(true); $('a', row).attr('href', obProduct.url); $('.name', row).text(obProduct.name); row.appendTo(newList); }); $('.iblock.text', $result).hide(); $('.iblock.result', $result).html(newList).show(); } $result.show(); }, // Функция препоиска fnOnSearchChange = function(){ var $this = $(this), form = $this.parents('form:first'), preVal = $this.data('val'), curVal = $this.val(), minL = parseInt($this.attr('min')) || 3, srcPage = form.attr('action') || '/search/', requestId = (+new Date) + Math.random(); // Проверяем, что значение реально другое if(preVal == curVal) return; // Записываем новое значение и ID запроса $this.data('rID', requestId); $this.data('val', curVal); // Проверяем длину строки if(curVal.length < minL) { $('.search-line-block .title-search-result').hide(); return; } // Выставляем задержку на запрос, вдруг печатает еще setTimeout(function(){ // Проверяем ID запроса if(requestId != $this.data('rID')) return; // Данные для запроса var data = { AJAX: 'GET_SEARCH_DATA', q: curVal }; // Выполняем AJAX запрос $.ajax({ url: srcPage, data: data, dataType: 'json', error: function(){ // Проверяем ID запроса if(requestId != $this.data('rID')) return; fnShowSearchResult('Ошибка запроса, попробуйте позже.', form, curVal); }, success: function(json){ // Проверяем ID запроса if(requestId != $this.data('rID')) return; if(!json || !json.result) { fnShowSearchResult((json && json.error)? json.error : 'Ошибка поиска, попробуйте позже.', form, curVal); return; } // Проверяем кол-во найденных товаров fnShowSearchResult(json.data.docsTotal? json.data.documents : 'Поиск не дал результа', form, curVal); } }); }, 500); }; // Строка препоиска $('.search-line-block form.ya-search-line-form input[type="search"]') // Подвешиваем прослушку событий .change(fnOnSearchChange).keyup(fnOnSearchChange) // Показываем результаты, если просто было снято блуром .focus(function(){ setTimeout(function(){$('.search-line-block .title-search-result').removeClass('by-blur');}, 250); }) // Скрываем результаты при снятии фокуса .blur(function(){ setTimeout(function(){$('.search-line-block .title-search-result').addClass('by-blur');}, 250); }); }); /* End */ ; ; /* Start:"a:4:{s:4:"full";s:97:"/local/templates/klausmusic/components/bitrix/catalog.compare.list/ajax3/script.js?16484760113120";s:6:"source";s:82:"/local/templates/klausmusic/components/bitrix/catalog.compare.list/ajax3/script.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ (function (window) { if (!!window.JCCatalogCompareList) { return; } window.JCCatalogCompareList = function (params) { this.obCompare = null; this.obAdminPanel = null; this.visual = params.VISUAL; this.visual.LIST = this.visual.ID + '_tbl'; this.visual.ROW = this.visual.ID + '_row_'; this.visual.COUNT = this.visual.ID + '_count'; this.ajax = params.AJAX; this.position = params.POSITION; BX.ready(BX.proxy(this.init, this)); }; window.JCCatalogCompareList.prototype.init = function() { this.obCompare = BX(this.visual.ID); if (!!this.obCompare) { BX.addCustomEvent(window, "OnCompareChange", BX.proxy(this.reload, this)); BX.bindDelegate(this.obCompare, 'click', {tagName : 'a'}, BX.proxy(this.deleteCompare, this)); if (this.position.fixed && this.position.align.vertical === 'top') { this.obAdminPanel = BX('bx-panel'); if (!!this.obAdminPanel) { this.setVerticalAlign(); BX.addCustomEvent(window, 'onTopPanelCollapse', BX.proxy(this.setVerticalAlign, this)); } } } }; window.JCCatalogCompareList.prototype.reload = function() { BX.showWait(this.obCompare); BX.ajax.post( this.ajax.url, this.ajax.params, BX.proxy(this.reloadResult, this) ); }; window.JCCatalogCompareList.prototype.reloadResult = function(result) { BX.closeWait(); this.obCompare.innerHTML = result; BX.style(this.obCompare, 'display', 'block'); }; window.JCCatalogCompareList.prototype.deleteCompare = function() { var target = BX.proxy_context, itemID, url; if (!!target && target.hasAttribute('data-id')) { itemID = parseInt(target.getAttribute('data-id'), 10); if (!isNaN(itemID)) { BX.showWait(this.obCompare); url = this.ajax.url + this.ajax.templates.delete + itemID.toString(); BX.ajax.loadJSON( url, this.ajax.params, BX.proxy(this.deleteCompareResult, this) ); } } }; window.JCCatalogCompareList.prototype.deleteCompareResult = function(result) { var tbl, i, deleteID, cnt, newCount; BX.closeWait(); if (typeof result === 'object') { if (!!result.STATUS && result.STATUS === 'OK' && !!result.ID) { tbl = BX(this.visual.LIST); if (tbl) { if (tbl.rows.length > 1) { deleteID = this.visual.ROW + result.ID; for (i = 0; i < tbl.rows.length; i++) { if (tbl.rows[i].id === deleteID) { tbl.deleteRow(i); } } tbl = null; if (!!result.COUNT) { newCount = parseInt(result.COUNT, 10); if (!isNaN(newCount)) { cnt = BX(this.visual.COUNT); if (!!cnt) { cnt.innerHTML = newCount.toString(); cnt = null; } BX.style(this.obCompare, 'display', (newCount > 0 ? 'block' : 'none')); } } } else { this.reload(); } } } } }; window.JCCatalogCompareList.prototype.setVerticalAlign = function() { var topSize; if (!!this.obCompare && !!this.obAdminPanel) { topSize = parseInt(this.obAdminPanel.offsetHeight, 10); if (isNaN(topSize)) { topSize = 0; } topSize +=5; BX.style(this.obCompare, 'top', topSize.toString()+'px'); } }; })(window); /* End */ ; ; /* Start:"a:4:{s:4:"full";s:76:"/local/components/akis/catalog.menu/templates/inner/script.js?16484760142988";s:6:"source";s:61:"/local/components/akis/catalog.menu/templates/inner/script.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ $(document).ready(function(){ transform(); scoll_resize(); menu_resize(); $(window).on('resize', function(){ transform(); scoll_resize(); menu_resize(); }); function transform(){ var win = $(window).width(); var top = $('header').height(); var win_height = screen.height; var cat_height = (win_height-55); var cat_height_scroll = (win_height-110); console.log(); //if (win <= 770){ // $('.catalog_list').css('height', cat_height); //}else{ // $('.catalog_list').removeAttr('style'); //} $(window).scroll(function(){ var win = $(window).width(); if (win < 620 && $(this).scrollTop() >= top) { $('.wrapper_menu_slider').addClass('scrolling'); $('.search').addClass('scrolling'); $('.head_infographic').addClass('scrolling'); $('.select_block').addClass('scrolling'); $('.burger_fix').addClass('scrolling'); $('#catalog_menu').addClass('scrolling'); //console.log(win); // if($('#catalog_menu').hasClass('scrolling')){ // $('.catalog_list').css('height', cat_height_scroll); // } } else if (win < 620){ $('.wrapper_menu_slider').removeClass('scrolling'); $('.search').removeClass('scrolling'); $('.head_infographic').removeClass('scrolling'); $('.select_block').removeClass('scrolling'); $('.burger_fix').removeClass('scrolling'); // $('#catalog_menu').removeClass('scrolling'); // $('.catalog_list').css('height', cat_height); } }); }; function scoll_resize(){ var win = $(window).width(); if (win > 620){ $('.wrapper_menu_slider').removeClass('scrolling'); $('.search').removeClass('scrolling'); $('.head_infographic').removeClass('scrolling'); $('.select_block').removeClass('scrolling'); $('.burger_fix').removeClass('scrolling'); $('#catalog_menu').removeClass('scrolling'); } } $('.catalog_list > li > a').hover(function(){ $(this).addClass('hover'); if(!$(this).parent().hasClass("menu_level_2")&&!$(this).parent().hasClass("menu_level_3")){ var tmpwidth=926; if($(window).width()<1250)tmpwidth=$(window).width()*3/4; $('.menu_level_2').css("width", Math.ceil($(this).parent("li").children(".menu_level_2").find("ul").length*tmpwidth/3)+"px"); $('.menu_level_2 ul').css("width", Math.ceil(99/$(this).parent("li").children(".menu_level_2").find("ul").length)+"%"); } $('.menu_level_2').hover(function(){ $(this).closest('.catalog_menu_item').find('.level_1').addClass('hover'); },function(){ $(this).closest('.catalog_menu_item').find('.level_1').removeClass('hover'); }); },function(){ $(this).removeClass('hover'); }); function menu_resize(){ var win = $(window).width(); if (win < 1250){ width_l1 = win; width_l2 = $('.catalog_list').width(); width_l3 = (width_l1-width_l2); $('.menu_level_2').css({'width': width_l3, 'margin-left': width_l2}); }else{ $('.menu_level_2').removeAttr('style'); } }; }); /* End */ ; ; /* Start:"a:4:{s:4:"full";s:100:"/local/templates/klausmusic/components/akis/subscribe.anybody/subscribe_home/script.js?1648476012379";s:6:"source";s:86:"/local/templates/klausmusic/components/akis/subscribe.anybody/subscribe_home/script.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ $(document).ready(function(e) { $("#anybodyemail").click(function(e){ e.preventDefault(); if($('input[name="newsletter"]').val()){ $.post( "/include/subscribeanybody.php", { email: $('input[name="newsletter"]').val() }).done(function(data){ if(data=="1"){ alert("Вы успешно подписаны"); }else{ alert(data); } }) } }) }); /* End */ ;; /* /local/templates/klausmusic/js/jquery.cookie.js?16484760113139*/ ; /* /local/templates/klausmusic/js/jquery.jcarousel.min.js?164847601118123*/ ; /* /local/templates/klausmusic/js/jquery.formstyler.min.js?164847601118702*/ ; /* /local/templates/klausmusic/js/jquery.scrollTo.min.js?16484760112445*/ ; /* /local/templates/klausmusic/js/jquery.loupe.min.js?16484760111001*/ ; /* /local/templates/klausmusic/js/jquery.magnific-popup.min.js?164847601121197*/ ; /* /local/templates/klausmusic/js/jquery.maskedinput.min.js?16484760114324*/ ; /* /local/templates/klausmusic/js/jquery.autocomplete.min.js?164847601113062*/ ; /* /local/templates/klausmusic/js/mbclicker.min.js?16484760111108*/ ; /* /local/templates/klausmusic/js/jquery.touchwipe.min.js?16484760111552*/ ; /* /local/templates/klausmusic/js/hl.js?16484760111361*/ ; /* /local/templates/klausmusic/js/script.js?16484760111957*/ ; /* /local/templates/klausmusic/js/settings.js?164847601121547*/ ; /* /local/templates/klausmusic/js/settings_catalog.js?16484760113718*/ ; /* /local/components/akis/registration/templates/.default/script.js?16484760142354*/ ; /* /local/components/artems/search.yandex.line/templates/.default/script.js?16484760144019*/ ; /* /local/templates/klausmusic/components/bitrix/catalog.compare.list/ajax3/script.js?16484760113120*/ ; /* /local/components/akis/catalog.menu/templates/inner/script.js?16484760142988*/ ; /* /local/templates/klausmusic/components/akis/subscribe.anybody/subscribe_home/script.js?1648476012379*/ } /* FILE ARCHIVED ON 06:09:48 Oct 07, 2022 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 11:22:28 Dec 06, 2023. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* playback timings (ms): captures_list: 234.987 exclusion.robots: 0.163 exclusion.robots.policy: 0.155 cdx.remote: 0.056 esindex: 0.007 LoadShardBlock: 212.362 (3) PetaboxLoader3.datanode: 247.436 (5) load_resource: 111.897 PetaboxLoader3.resolve: 27.684 loaddict: 60.333 */