a(["jquery","get_val"],function(a,b){a(function(){var c=a("html");if(c.hasClass("homestead_page")){var d=a(".section_wrap"),e=".resize_rooms";d.find("section.homestead").each(function(){var c=a(this),d=c.find("nav.rooms"),f=d.find(">a");!function(){function b(){a(window).trigger("resize"+e),c.each(function(){var b=a(this),c=b.find(">span"),d=c.width();b.css("width",""),b.css("width",d+h+"px")})}var c=f.find(">span"),d=parseInt(c.eq(0).css("padding-left"),10),g=parseInt(c.eq(0).css("padding-right"),10),h=d+g;a(window).on("load",a.proxy(setTimeout,null,b,1)),setTimeout(b,1)}(),function(){function c(){var b=a(window).width();i>b&&(b=i),b>j&&(b=j),b-=i,f.css("width",""),f.css("width",Math.floor(b*k/l+g)+"px")}var d=74,g=d+28,h=d+50,i=b("minWidth"),j=b("maxWidth"),k=h-g,l=j-i;a(window).on("resize"+e,c),setTimeout(c,1)}()}),d.find(".columns").each(function(){var b=a(this);!function(){var a=b.attr("data-background");a&&b.css("background-image",'url("'+a+'")')}(),require(["section_block_resize"],function(a){b.each(a)})})}})})}(),function(){function a(){var a=Array.prototype.slice.call(arguments,0);"string"!=typeof a[0]&&a.unshift("pages/homestead_subpage"),window.define.apply(this,a)}a.amd={jQuery:!0},/**
$(window).on('scroll', function (event) {
var scrollValue = $(window).scrollTop();
if (scrollValue > 150) {
$('.navbar').addClass('newclass');
} else{
$('.navbar').removeClass(newclass');
}
});
.photo_bbinput {position:relative;}
.photo_bbinput:before {position:absolute;top:0;left:0;content: "New Text";}
<video width="800" height=600" controls controlsList="nodownload">
<source data-src="/images/home-video.mp4" type="video/mp4">
</video>
<div class="col-md-2 col-md-push-9 social clearfix">
<div class="facebook"><a href="#"><img src="_done_job_/app/img/social/facebook.svg" alt="Фейсбук"></a></div>
<div class="twiter"><a href="#"><img src="_done_job_/app/img/social/twitter.svg" alt="Твитер"></a></div>
<div class="vk"><a href="#"><img src="_done_job_/app/img/social/vk.svg" alt="ВК"></a></div>
</div>
.social > div {float:left;margin-left:5px;}
* Tests if smooth scrolling is allowed. Shuts down everything if not.
*/
function initTest() {
// disable keys for google reader (spacebar conflict)
if (document.URL.indexOf("google.com/reader/view") > -1) {
disableKeyboard = true;
}
// disable everything if the page is blacklisted
if (exclude) {
var domains = exclude.split(/[,\n] ?/);
for (var i = domains.length; i--;) {
if (document.URL.indexOf(domains[i]) > -1) {
removeEvent("mousewheel", wheel);
disableKeyboard = true;
break;
}
}
}
}
function scrollbarWidth() {
var $inner = $('<div style="width:100%; height:200px;"></div>'),
$outer = $('<div style="width:200px;height:150px;position:absolute;top:0;left:0;visibility:hidden;overflow:hidden;"></div>').append($inner),
inner = $inner[0],
outer = $outer[0];
$('body').append(outer);
var width1 = inner.offsetWidth;
$outer.css('overflow', 'scroll');
var width2 = outer.clientWidth;
$outer.remove();
return (width1 - width2);
};
http://www.eurogazstroy.ru/bitrix/cache/js/s1/euro/template_0edfc10eb291a57b138ae73bdf2fb41e/template_0edfc10eb291a57b138ae73bdf2fb41e.js?