This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //автовысота textarea начало | |
| var textArea = document.querySelectorAll('.control textarea'); | |
| for (var i = 0; i < textArea.length; i++) { | |
| textArea[i].addEventListener('input', function () { | |
| this.style.height = (this.scrollHeight) + "px"; | |
| }) | |
| } | |
| //автовысота textarea конец |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var ie11Styles = [ | |
| 'msTextCombineHorizontal']; | |
| var s = document.body.style, | |
| brwoser = null, | |
| property; | |
| for (var i = 0; i < ie11Styles.length; i++) { | |
| property = ie11Styles[i]; | |
| if (s[property] != undefined) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script> | |
| var i = new Image; | |
| i.onload = i.onerror = function () { | |
| document.documentElement.classList.add(i.height == 1 ? "webp" : "no-webp") | |
| }; | |
| i.src = "data:image/webp;base64,UklGRhoAAABXRUJQVlA4TA0AAAAvAAAAEAcQERGIiP4HAA=="; | |
| </script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if(window.devicePixelRatio >= 1.2){ | |
| var serviceThumb = document.querySelectorAll('.service__thumb[data-2x]'); | |
| for(var i = 0; i < serviceThumb.length; i++){ | |
| var attr = serviceThumb[i].getAttribute('data-2x'); | |
| if(attr){ | |
| serviceThumb[i].style.cssText += 'background-image: url(' + attr + ')'; | |
| } | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| html, body { | |
| height: 100%; | |
| position: relative; | |
| font-family: $font; | |
| font-size: 16px; | |
| color: $txt-color; | |
| overflow-X: hidden; | |
| -webkit-overflow-scrolling: touch; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /*============================== Start Smooth scroll to the section js ==============================*/ | |
| $('.nav-list').click(function(e) { | |
| e.preventDefault(); | |
| var currentList = $(this).attr('href'); | |
| var currentListOffset = $(currentList).offset().top; | |
| $('html, body').animate({ | |
| scrollTop: currentListOffset - 50 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /*============================== Start Slick Carousel html ==============================*/ | |
| <div class="carousel_wrap"> | |
| <div class="carousel_item_wrap"> | |
| <div class="carousel_item"> | |
| // Content | |
| </div> | |
| </div> | |
| <div class="carousel_item_wrap"> | |
| <div class="carousel_item"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /*============================== Start Yandex Carts html ==============================*/ | |
| <div class="maps"> | |
| <div id="map" class="map"></div> | |
| </div> | |
| <script src="https://api-maps.yandex.ru/2.1/?lang=ru_RU" type="text/javascript"></script> | |
| /*============================== Start Yandex Carts html ==============================*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://codepen.io/baudoin/pen/HdliD |
NewerOlder