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
| function arrEquality(arr, arr2) { | |
| if (arr.length != arr2.length) return false | |
| var on = 0; | |
| for (var i = 0; i < arr.length; i++) { | |
| for (var j = 0; j < arr2.length; j++) { | |
| if (arr[i] === arr2[j]) { | |
| on++ | |
| break | |
| } | |
| } |
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
| $(document).ready(function () { | |
| $('.go-back').on('click', function () { | |
| parent.history.back(); | |
| return false; | |
| }); | |
| }); |
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 fadeTime = 300; | |
| $('.checkout-wrap-desk .quantity__number-desk').change(function () { | |
| updateQuantity(this); | |
| }); | |
| $('.checkout-wrap-desk .product__item-remove').click(function () { | |
| removeItem(this); | |
| }); |
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
| $('.interested-as select').each(function () { | |
| var $this = $(this), | |
| numberOfOptions = $(this).children('option').length; | |
| $this.addClass('select-hidden'); | |
| $this.wrap('<div class="select"></div>'); | |
| $this.after('<div class="select-styled"></div>'); | |
| var $styledSelect = $this.next('div.select-styled'); | |
| $styledSelect.text($this.children('option:selected').text()); | |
| var $list = $('<ul />', { | |
| 'class': 'select-options' |
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
| function PreSaveAction() { | |
| // remove all the zero width spaces ​ from the fields. | |
| $(node).each(function (index, element) { | |
| var exp = new RegExp(String.fromCharCode(8203), "g"); | |
| var editor = $(element); | |
| var txt = editor.html() | |
| txt = txt.replace(exp, ''); | |
| txt = txt.replace(/ /g, ' ') | |
| txt = txt.replace(/ {2,}/g, ' '); | |
| editor.html(txt); |
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
| $('div[data-tab="js-tab-1"]').addClass('active'); | |
| $('.js-tab-1').addClass('active'); | |
| if (window.innerWidth < 768) { | |
| $('.js-tab-1').insertAfter('div[data-tab="js-tab-1"]'); | |
| } | |
| $('.js-tabs-link').on('click', function (e) { | |
| e.preventDefault(); | |
| $('.js-tabs-link').removeClass('active'); |
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
| function heightDetect() { | |
| $(node).css("height", $(window).height()); | |
| }; | |
| heightDetect(); | |
| $(window).resize(function () { | |
| heightDetect(); | |
| }); |
NewerOlder