1$(function() { 2 $('.align-items').Align(); 3 $(window).resize(function () { $('.align-items').trigger('align'); }); 4 5 $(document).trigger('bx.ready', null); 6 7 $(".pushy-btn").pushy(); 8 9}); 10 11$(window).bind('load', function(e, parent) { 12 $(document).trigger('bx.load', null); 13}); 14 15$(document).bind('bx.load', function(e, parent) { 16 var parent = parent || document.body, 17 jparent = $(parent); 18 $('.align-items', jparent).trigger('align'); 19}); 20 21$(document).bind('bx.ready', function(e, parent) { 22 var parent = parent || document.body, 23 jparent = $(parent); 24 25 $('.fancy', jparent).fancybox({ 26 prevEffect : 'none', 27 nextEffect : 'none', 28 closeBtn : true, 29 arrows : true, 30 nextClick : true, 31 overlayOpacity: 0.3, 32 padding: 0, 33 helpers : { 34 media : {}, 35 thumbs : {width : 50,height : 50}, 36 title: null, 37 overlay: {css: {background : 'rgba(0, 0, 0, 0.3)'}} 38 } 39 }); 40 41 $(".input-phone", jparent).mask("+7 (999) 999-99-99"); 42 $(".long-text", jparent).sigmaHidelong(); 43 $(".ajax-area", jparent).ajaxArea(); 44 $(".tabs-control", jparent).tabs(); 45 $(".tabs-view", jparent).TabView(); 46 47 $('.form-table select', jparent).styler(); 48/* 49 $('input[type="checkbox"],select', jparent).styler({onFormStyled: function() { 50 $("input.input-color").each(function() { 51 var value = this.getAttribute('data-bgcolor'); 52 if(value && value.length) { 53 if(value.match( /^[a-z0-9]{6}$/i )) 54 value = '#' + value; 55 this.parentNode.style.backgroundColor = value; 56 } 57 }); 58 }}); 59*/ 60 $(".lazy-load", jparent).lazyload({effect: "fadeIn", effectspeed: 800}); 61 $(".kerz-list", jparent).kerz(); 62 $(".tooltip", jparent).tooltipster({ 63 theme: 'tooltipster-shadow', 64 contentAsHTML: true, 65 side: 'bottom', 66 triggerClose: { 67 click: true, 68 scroll: true 69 }, 70 maxWidth: 200 71 }); 72 73 $('.mobile-block', jparent).each(function() { 74 var that = $(this), 75 title = that.find('> .i-block-title'), 76 content = that.find('> .i-block-content'); 77 if(title.length && content.length) { 78 title.click(function() { 79 if(that.hasClass('mb-opened')) 80 that.removeClass('mb-opened'); 81 else 82 that.addClass('mb-opened'); 83 return false; 84 }); 85 } 86 }); 87 88 $('input.input-plus-minus', jparent).each(function() 89 { 90 var obj = this, 91 div = document.createElement('div'), 92 plus = document.createElement('a'), 93 minus = document.createElement('a'), 94 step = obj.getAttribute('data-step') || 1, value; 95 96 if(step < 1) step = 1; 97 step = parseInt(step); 98 99 div.className = 'input-plus-minus'; 100 plus.className = 'input-inc-plus'; 101 minus.className = 'input-inc-minus'; 102 103 plus.innerHTML = '<span>+</span>'; 104 minus.innerHTML = '<span>-</span>'; 105 plus.href = 'javascript:;'; 106 minus.href = 'javascript:;'; 107 108 obj.parentNode.insertBefore(div, obj); 109 obj.className = obj.className.replace("plus-minus", ""); 110 div.appendChild(obj.parentNode.removeChild(obj)); 111 div.appendChild(plus); 112 div.appendChild(minus); 113 114 obj.onkeypress = function(e) { 115 var chr = null; 116 e = e || event; 117 if (e.which == null) { 118 if (e.keyCode < 32) return null; 119 chr = String.fromCharCode(e.keyCode); 120 } 121 if (e.which != 0 && e.charCode != 0) { 122 if (e.which < 32) return null; 123 chr = String.fromCharCode(e.which); 124 } 125 if (e.ctrlKey || e.altKey || chr == null) return; 126 if (chr < '0' || chr > '9') { 127 e.stopPropagation(); 128 return false; 129 } 130 } 131 var oninput = function(e) { 132 value = parseInt((+this.value)); 133 if(isNaN(value)) { 134 value = parseInt(this.value.replace(/[^\d]/g, '')); 135 if(isNaN(value)) value = 0; 136 setValue(value, e); 137 } 138 }; 139 var fixValue = function(value) { 140 if(value < step) 141 value = step; 142 if(value % step > 0) { 143 value = (parseInt(value / step) + 1) * step; 144 } 145 return value; 146 }; 147 var getValue = function() { 148 value = parseInt(obj.value); 149 return isNaN(value) ? 0 : value; 150 } 151 var setValue = function(value, e) { 152 var value = fixValue(value); 153 if(obj.value != value) { 154 obj.value = fixValue(value); 155 $(obj).trigger('change'); 156 e = (e || event); 157 if(e) 158 e.stopPropagation(); 159 } 160 return false; 161 } 162 obj.oninput = oninput; 163 obj.onpropertychange = function() { 164 event.propertyName == "value" && oninput.apply(this, [event]); 165 } 166 obj.onblur = function() { 167 setValue(getValue()); 168 }; 169 plus.onclick = function(e) { 170 return setValue(getValue()+step, e); 171 }; 172 minus.onclick = function(e) { 173 return setValue(getValue()-step, e); 174 }; 175 176 setValue(getValue()); 177 }); 178 179 $('a[data-href]', jparent).click(function () { 180 elementClick = $('#'+this.getAttribute("data-href")); 181 if(!elementClick.length) return true; 182 destination = elementClick.offset().top; 183 $('body,html').animate({scrollTop: destination}, 1100); 184 return false;
185 }); 186}); 187 188$(function() { 189 return; 190 var lookup1 = document.getElementById('container'), 191 lookup2 = document.getElementById('pageFooter'), 192 posLookup1 = null, posLookup2 = null, wsize = null, 193 _chekupSticky = function() { 194 var scrollTop = $.sigma.getBodyScrollTop(); 195 if(scrollTop + wsize.height > posLookup2.top) { 196 $(document.body).removeClass('sticky-header'); 197 $(document.body).addClass('hidden-header'); 198 } 199 else if(scrollTop > posLookup1.top+10) { 200 $(document.body).addClass('sticky-header'); 201 $(document.body).removeClass('hidden-header'); 202 } 203 else { 204 $(document.body).removeClass('sticky-header'); 205 $(document.body).removeClass('hidden-header'); 206 } 207 }, 208 _chekupPosition = function() { 209 posLookup1 = $.sigma.getPosition(lookup1); 210 posLookup2 = $.sigma.getPosition(lookup2); 211 wsize = $.sigma.getClientSize(); 212 }; 213 if(lookup1 && lookup2) { 214 $(window).bind('resize scroll load', function() { _chekupPosition(); _chekupSticky(); }); 215 $(document).ready(function() { _chekupPosition(); _chekupSticky(); }); 216 } 217});
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.