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
| window.addEventListener('load', function() { | |
| var modalSuccess = document.getElementsByClassName('modal__success')[0] | |
| var forms = document.getElementsByClassName('needs-validation') | |
| var validation = Array.prototype.filter.call(forms, function(form) { | |
| form.addEventListener('submit', function(e) { | |
| if (form.checkValidity() === false) { | |
| form.classList.add('was-validated') | |
| } else { |
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
| jQuery(document).ready(function ($) { | |
| var part = $('.part') | |
| var partHeader = $('.part__header') | |
| var partContent = $('.part__content') | |
| partHeader.on('click', function (e) { | |
| e.preventDefault() | |
| var partClose = function () { |
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
| "downloader_precedence": { | |
| "windows": ["wininet"], | |
| "osx": ["curl", "urllib"], | |
| "linux": ["urllib", "curl", "wget"] | |
| }, |
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
| /* the slides */ | |
| .slick-slide { | |
| margin: 0 10px; | |
| } | |
| /* the parent */ | |
| .slick-list { | |
| margin: 0 -10px; | |
| } |
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 slides to show more than one | |
| $('.compare__items-row').on('init reInit afterChange', function(event, slick, currentSlide, nextSlide) { | |
| var i = (currentSlide ? currentSlide : 0) + 1 | |
| var slidesToShow = slick.slickGetOption('slidesToShow') | |
| var curPage = parseInt((i-1)/slidesToShow) + 1 | |
| var lastPage = parseInt((slick.slideCount-1)/slidesToShow) + 1 | |
| $('.compare__slider-info--current').text(curPage) | |
| $('.compare__slider-info--all').text(lastPage) | |
| }) |
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 readURL = function(input) { | |
| if (input.files && input.files[0]) { | |
| var reader = new FileReader() | |
| reader.onload = function(e) { | |
| $('.photo__img-wrap img').attr('src', e.target.result) | |
| } | |
| reader.readAsDataURL(input.files[0]) | |
| } | |
| } |
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
| /* | |
| Plugins | |
| Perfect Scrollbar: https://github.com/mdbootstrap/perfect-scrollbar | |
| jQuery Mouse Wheel: https://github.com/jquery/jquery-mousewheel | |
| */ | |
| var drag = $('.js-drag') | |
| var ps = new PerfectScrollbar('.js-drag'); | |
| drag.mousewheel(function(event, delta) { |
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
| get-childitem *.jpg | foreach { rename-item $_ $_.Name.Replace("-min", "") } |