PageSourceSearch

https://www.kamenstroy.com/bitrix/templates/Start_Bootstrap_Landing_Page/js/site.js?v2

js kamenstroy.com collected 2026-10-08 08:51:05 UTC 14,830 bytes, 172 lines download raw bytes

1/*!
2 * Lightbox v2.11.1
3 * by Lokesh Dhakar
4 *
5 * More info:
6 * http://lokeshdhakar.com/projects/lightbox2/
7 *
8 * Copyright Lokesh Dhakar
9 * Released under the MIT license
10 * https://github.com/lokesh/lightbox2/blob/master/LICENSE
11 *
12 * @preserve
13 */
14!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],b):"object"==typeof exports?module.exports=b(require("jquery")):a.lightbox=b(a.jQuery)}(this,function(a){function b(b){this.album=[],this.currentImageIndex=void 0,this.init(),this.options=a.extend({},this.constructor.defaults),this.option(b)}return b.defaults={albumLabel:"Image %1 of %2",alwaysShowNavOnTouchDevices:!1,fadeDuration:600,fitImagesInViewport:!0,imageFadeDuration:600,positionFromTop:50,resizeDuration:700,showImageNumberLabel:!0,wrapAround:!1,disableScrolling:!1,sanitizeTitle:!1},b.prototype.option=function(b){a.extend(this.options,b)},b.prototype.imageCountLabel=function(a,b){return this.options.albumLabel.replace(/%1/g,a).replace(/%2/g,b)},b.prototype.init=function(){var b=this;a(document).ready(function(){b.enable(),b.build()})},b.prototype.enable=function(){var b=this;a("body").on("click","a[rel^=lightbox], area[rel^=lightbox], a[data-lightbox], area[data-lightbox]",function(c){return b.start(a(c.currentTarget)),!1})},b.prototype.build=function(){if(!(a("#lightbox").length>0)){var b=this;a('<div id="lightboxOverlay" tabindex="-1" class="lightboxOverlay"></div><div id="lightbox" tabindex="-1" class="lightbox"><div class="lb-outerContainer"><div class="lb-container"><img class="lb-image" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" alt=""/><div class="lb-nav"><a class="lb-prev" aria-label="Previous image" href="" ></a><a class="lb-next" aria-label="Next image" href="" ></a></div><div class="lb-loader"><a class="lb-cancel"></a></div></div></div><div class="lb-dataContainer"><div class="lb-data"><div class="lb-details"><span class="lb-caption"></span><span class="lb-number"></span></div><div class="lb-closeContainer"><a class="lb-close"></a></div></div></div></div>').appendTo(a("body")),this.$lightbox=a("#lightbox"),this.$overlay=a("#lightboxOverlay"),this.$outerContainer=this.$lightbox.find(".lb-outerContainer"),this.$container=this.$lightbox.find(".lb-container"),this.$image=this.$lightbox.find(".lb-image"),this.$nav=this.$lightbox.find(".lb-nav"),this.containerPadding={top:parseInt(this.$container.css("padding-top"),10),right:parseInt(this.$container.css("padding-right"),10),bottom:parseInt(this.$container.css("padding-bottom"),10),left:parseInt(this.$container.css("padding-left"),10)},this.imageBorderWidth={top:parseInt(this.$image.css("border-top-width"),10),right:parseInt(this.$image.css("border-right-width"),10),bottom:parseInt(this.$image.css("border-bottom-width"),10),left:parseInt(this.$image.css("border-left-width"),10)},this.$overlay.hide().on("click",function(){return b.end(),!1}),this.$lightbox.hide().on("click",function(c){"lightbox"===a(c.target).attr("id")&&b.end()}),this.$outerContainer.on("click",function(c){return"lightbox"===a(c.target).attr("id")&&b.end(),!1}),this.$lightbox.find(".lb-prev").on("click",function(){return 0===b.currentImageIndex?b.changeImage(b.album.length-1):b.changeImage(b.currentImageIndex-1),!1}),this.$lightbox.find(".lb-next").on("click",function(){return b.currentImageIndex===b.album.length-1?b.changeImage(0):b.changeImage(b.currentImageIndex+1),!1}),this.$nav.on("mousedown",function(a){3===a.which&&(b.$nav.css("pointer-events","none"),b.$lightbox.one("contextmenu",function(){setTimeout(function(){this.$nav.css("pointer-events","auto")}.bind(b),0)}))}),this.$lightbox.find(".lb-loader, .lb-close").on("click",function(){return b.end(),!1})}},b.prototype.start=function(b){function c(a){d.album.push({alt:a.attr("data-alt"),link:a.attr("href"),title:a.attr("data-title")||a.attr("title")})}var d=this,e=a(window);e.on("resize",a.proxy(this.sizeOverlay,this)),this.sizeOverlay(),this.album=[];var f,g=0,h=b.attr("data-lightbox");if(h){f=a(b.prop("tagName")+'[data-lightbox="'+h+'"]');for(var i=0;i<f.length;i=++i)c(a(f[i])),f[i]===b[0]&&(g=i)}else if("lightbox"===b.attr("rel"))c(b);else{f=a(b.prop("tagName")+'[rel="'+b.attr("rel")+'"]');for(var j=0;j<f.length;j=++j)c(a(f[j])),f[j]===b[0]&&(g=j)}var k=e.scrollTop()+this.options.positionFromTop,l=e.scrollLeft();this.$lightbox.css({top:k+"px",left:l+"px"}).fadeIn(this.options.fadeDuration),this.options.disableScrolling&&a("body").addClass("lb-disable-scrolling"),this.changeImage(g)},b.prototype.changeImage=function(b){var c=this,d=this.album[b].link,e=d.split(".").slice(-1)[0],f=this.$lightbox.find(".lb-image");this.disableKeyboardNav(),this.$overlay.fadeIn(this.options.fadeDuration),a(".lb-loader").fadeIn("slow"),this.$lightbox.find(".lb-image, .lb-nav, .lb-prev, .lb-next, .lb-dataContainer, .lb-numbers, .lb-caption").hide(),this.$outerContainer.addClass("animating");var g=new Image;g.onload=function(){var h,i,j,k,l,m;f.attr({alt:c.album[b].alt,src:d}),a(g),f.width(g.width),f.height(g.height),m=a(window).width(),l=a(window).height(),k=m-c.containerPadding.left-c.containerPadding.right-c.imageBorderWidth.left-c.imageBorderWidth.right-20,j=l-c.containerPadding.top-c.containerPadding.bottom-c.imageBorderWidth.top-c.imageBorderWidth.bottom-c.options.positionFromTop-70,"svg"===e&&(0!==g.width&&0!==g.height||(f.width(k),f.height(j))),c.options.fitImagesInViewport?(c.options.maxWidth&&c.options.maxWidth<k&&(k=c.options.maxWidth),c.options.maxHeight&&c.options.maxHeight<j&&(j=c.options.maxHeight)):(k=c.options.maxWidth||g.width||k,j=c.options.maxHeight||g.height||j),(g.width>k||g.height>j)&&(g.width/k>g.height/j?(i=k,h=parseInt(g.height/(g.width/i),10),f.width(i),f.height(h)):(h=j,i=parseInt(g.width/(g.height/h),10),f.width(i),f.height(h))),c.sizeContainer(f.width(),f.height())},g.src=this.album[b].link,this.currentImageIndex=b},b.prototype.sizeOverlay=function(){var b=this;setTimeout(function(){b.$overlay.width(a(document).width()).height(a(document).height())},0)},b.prototype.sizeContainer=function(a,b){function c(){d.$lightbox.find(".lb-dataContainer").width(g),d.$lightbox.find(".lb-prevLink").height(h),d.$lightbox.find(".lb-nextLink").height(h),d.$overlay.focus(),d.showImage()}var d=this,e=this.$outerContainer.outerWidth(),f=this.$outerContainer.outerHeight(),g=a+this.containerPadding.left+this.containerPadding.right+this.imageBorderWidth.left+this.imageBorderWidth.right,h=b+this.containerPadding.top+this.containerPadding.bottom+this.imageBorderWidth.top+this.imageBorderWidth.bottom;e!==g||f!==h?this.$outerContainer.animate({width:g,height:h},this.options.resizeDuration,"swing",function(){c()}):c()},b.prototype.showImage=function(){this.$lightbox.find(".lb-loader").stop(!0).hide(),this.$lightbox.find(".lb-image").fadeIn(this.options.imageFadeDuration),this.updateNav(),this.updateDetails(),this.preloadNeighboringImages(),this.enableKeyboardNav()},b.prototype.updateNav=function(){var a=!1;try{document.createEvent("TouchEvent"),a=!!this.options.alwaysShowNavOnTouchDevices}catch(a){}this.$lightbox.find(".lb-nav").show(),this.album.length>1&&(this.options.wrapAround?(a&&this.$lightbox.find(".lb-prev, .lb-next").
14css("opacity","1"),this.$lightbox.find(".lb-prev, .lb-next").show()):(this.currentImageIndex>0&&(this.$lightbox.find(".lb-prev").show(),a&&this.$lightbox.find(".lb-prev").css("opacity","1")),this.currentImageIndex<this.album.length-1&&(this.$lightbox.find(".lb-next").show(),a&&this.$lightbox.find(".lb-next").css("opacity","1"))))},b.prototype.updateDetails=function(){var a=this;if(void 0!==this.album[this.currentImageIndex].title&&""!==this.album[this.currentImageIndex].title){var b=this.$lightbox.find(".lb-caption");this.options.sanitizeTitle?b.text(this.album[this.currentImageIndex].title):b.html(this.album[this.currentImageIndex].title),b.fadeIn("fast")}if(this.album.length>1&&this.options.showImageNumberLabel){var c=this.imageCountLabel(this.currentImageIndex+1,this.album.length);this.$lightbox.find(".lb-number").text(c).fadeIn("fast")}else this.$lightbox.find(".lb-number").hide();this.$outerContainer.removeClass("animating"),this.$lightbox.find(".lb-dataContainer").fadeIn(this.options.resizeDuration,function(){return a.sizeOverlay()})},b.prototype.preloadNeighboringImages=function(){if(this.album.length>this.currentImageIndex+1){(new Image).src=this.album[this.currentImageIndex+1].link}if(this.currentImageIndex>0){(new Image).src=this.album[this.currentImageIndex-1].link}},b.prototype.enableKeyboardNav=function(){this.$lightbox.on("keyup.keyboard",a.proxy(this.keyboardAction,this)),this.$overlay.on("keyup.keyboard",a.proxy(this.keyboardAction,this))},b.prototype.disableKeyboardNav=function(){this.$lightbox.off(".keyboard"),this.$overlay.off(".keyboard")},b.prototype.keyboardAction=function(a){var b=a.keyCode;27===b?(a.stopPropagation(),this.end()):37===b?0!==this.currentImageIndex?this.changeImage(this.currentImageIndex-1):this.options.wrapAround&&this.album.length>1&&this.changeImage(this.album.length-1):39===b&&(this.currentImageIndex!==this.album.length-1?this.changeImage(this.currentImageIndex+1):this.options.wrapAround&&this.album.length>1&&this.changeImage(0))},b.prototype.end=function(){this.disableKeyboardNav(),a(window).off("resize",this.sizeOverlay),this.$lightbox.fadeOut(this.options.fadeDuration),this.$overlay.fadeOut(this.options.fadeDuration),this.options.disableScrolling&&a("body").removeClass("lb-disable-scrolling")},new b});
15
16lightbox.option({
17      'albumLabel': "Фото %1 из %2"
18    })
19
20function index_price(){
21	$('.photogallery-controll__btn._right').click();
22}
23
24function akcii_right() {
25	$('.jcarousel-control-next').click();
26}
27
28function nextGalleryItem() {
29  "0px" == $(".item-gallery__longblock").css("left") && (width = $(".item-gallery__photo").width(), $(".item-gallery__longblock").animate({
30    left: -width - 12
31  }, 1000, function () {
32    $(".item-gallery__longblock").css("left", "0px");
33    $(".item-gallery__photo:first").detach().appendTo(".item-gallery__longblock");
34    $(".item-gallery__image:first").detach().appendTo(".item-gallery__overflow");
35  }), $(".item-gallery__photo_active").next().click());
36}
37
38function prevGalleryItem() {
39  "0px" == $(".item-gallery__longblock").css("left") && (width = $(".item-gallery__photo").width(), $(".item-gallery__longblock").css("left", -width - 12), $(".item-gallery__photo:last").detach().prependTo(".item-gallery__longblock"), $(".item-gallery__image:last").detach().prependTo(".item-gallery__overflow"), $(".item-gallery__longblock").animate({
40    left: "0px"
41  }, 1000), $(".item-gallery__overflow").animate({
42    left: "0px"
43  }, 1000), $(".item-gallery__photo_active").prev().click());
44}
45
46function nextGallery() {
47  "0px" == $(".gallery__longblock").css("top") && $(".gallery__longblock").animate({
48    top: "-563px"
49  }, 1000, function () {
50    $(".gallery__longblock").css("top", "0px");
51    $(".gallery__longblock .gallery__item:first").detach().appendTo(".gallery__longblock");
52  });
53}
54
55function openbox(b) {
56  display = document.getElementById(b).style.display;
57  "none" == display ? document.getElementById(b).style.display = "block" : document.getElementById(b).style.display = "none";
58}
59
60function prevGallery() {
61  "0px" == $(".gallery__longblock").css("top") && ($(".gallery__longblock").css("top", "-563px"), $(".gallery__longblock .gallery__item:last").detach().prependTo(".gallery__longblock"), $(".gallery__longblock").animate({
62    top: "0px"
63  }, 1000));
64}
65
66$(function () {
67	
68	$('body').click(function(){
69		$('.mf-ok-text').addClass('none');
70	});
71
72	$('.input-phone').inputmask('+7(999)999-99-99', {
73		/*onincomplete: function () {
74            if (jQuery(this).attr('valid') != 'false') {
75                jQuery(this).attr('pattern', '\+7\s?[\(]{0,1}9[0-9]{2}[\)]{0,1}\s?\d{3}[-]{0,1}\d{2}[-]{0,1}\d{2}');
76                jQuery(this).attr('valid', false);
77            }
78        },
79        oncomplete: function () {
80            if (jQuery(this).attr('valid') != 'true') {
81                jQuery(this).removeAttr('pattern');
82                jQuery(this).removeAttr('valid');
83            }
84        }*/
85	});
86
87	$(".photogallery-controll__btn._left, .photogallery-controll__btn._right").on('click', function() {
88		$(".photogallery__img").lazy({
89		   bind: "event",
90		   delay: 0
91		});
92	});
93	price_width = $('.photogallery__img').width();
94	
95	$('.photogallery-controll__btn._left').click(function(){
96		if ($('.photogallery__move').css('left')!='0px') return;
97		$('.photogallery__img:last').detach().prependTo('.photogallery__move');
98		$('.photogallery__move').css('left',-price_width);
99		$('.photogallery__move').animate({'left':'0px'},500);
100	});
101	$('.photogallery-controll__btn._right').click(function(){
102		if ($('.photogallery__move').css('left')!='0px') return;
103		$('.photogallery__move').animate({'left':-price_width},500,function(){
104			$('.photogallery__img:first').detach().appendTo('.photogallery__move');
105			$('.photogallery__move').css('left','0px');
106		});
107	});
108
109	$('.card__gallery img').click(function(){
110	    $('.card__big-image img').attr('src',$(this).attr('datalink'));
111	});
112
113	$(".button-ckrol").click(function(){
114		var selected = $(this).attr('href');	
115	});	
116    if ($(".nav.navbar-nav.navbar-right li > a").hasClass('selected')) {
117    	$(".nav.navbar-nav.navbar-right li > a.selected").removeAttr( "href");
118    };
119	
120	$('.phone_mask').inputmask('+7 (999) 999-99-99');
121	$(".extend").inputmask({ "mask": "a", "repeat": 40, "greedy": false });
122	
123	$( "body" ).on( "submit", ".feedback-new form,.price_zakazat form", function() {
124		yaCounter20574793.reachGoal('otpravit');
125	});
126
127	//$('.lb').lightBox();
128
129	$(".item-gallery__arrow_left").click(prevGalleryItem);
130	$(".item-gallery__arrow_right").click(nextGalleryItem);
131	$(".item-gallery__image:eq(0)").addClass("item-gallery__image_active");
132	$(".item-gallery__photo:eq(0)").addClass("item-gallery__photo_active");
133	$(".item-gallery__photo").click(function () {
134		$(".item-gallery__photo_active").removeClass("item-gallery__photo_active");
135		$(this).addClass("item-gallery__photo_active");
136		id2 = $(this).index();
137		$(".item-gallery__image_active").removeClass("item-gallery__image_active");
138		$(".item-gallery__image:eq("+id2+")").addClass("item-gallery__image_active");
139	});
140	
141	setInterval(index_price,3000);
142	setInterval(akcii_right,5000);
143	
144	
145	
146	
147	$(document).on('submit', '#resumeForm', function(){
148
149		var dte=$(this).serialize();
150		$.ajax({
151			url: '/bitrix/templates/Start_Bootstrap_Landing_Page/ajax/mail1.php',
152			method: 'post',   
153			data: dte, 
154			success: function(data){
155				$('#resumeForm').trigger("reset");
156				$('#resumeForm').html('<div class="jobFormTitle col-lg-12 col-md-12 col-sm-12 col-xs-12">Заявка отправлена</div>');
157				
158				console.log(data);
159			}
160		});
161		return false;
162	});
163	
164	
165	
166	
167	
168	
169	
170	
171	
172});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.