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
| WP ACF - группа полей | |
| ============================================= | |
| 1) Вывести картинку логотипа для header | |
| $yak_logo = get_field('slajd_akczii', 10); | |
| $yak_logo_ulr = $yak_logo['sizes']['image350']; | |
| $yak_logo_ulr = $yak_logo['url']; | |
| <img src="<?php echo $yak_slider_akcii_url; ?>" alt="alt"> |
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
| // arrow to up | |
| function trackScroll() { | |
| var scrolled = window.pageYOffset; | |
| var coords = document.documentElement.clientHeight; | |
| if (scrolled > coords) { | |
| goTopBtn.classList.add('back_to_top-show'); | |
| } | |
| if (scrolled < coords) { | |
| goTopBtn.classList.remove('back_to_top-show'); |
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
| [ | |
| { | |
| "name": "Apple", | |
| "count": 100 | |
| }, | |
| { | |
| "name": "Orange", | |
| "count": 200 | |
| }, | |
| { |
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
| Отправка данные form 7 в 1С | |
| ================================== | |
| //Send to 1C | |
| function.php | |
| //Send to 1C form7 id 5 | |
| function send_info_to1c_id5(){ | |
| $url = trim($_POST["url-777"]); |
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
| Удаление все кроме цифр | |
| ====================== | |
| replace(/[^\d]+/g, "") |
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 width gutter | |
| function getWidthGutter(){ | |
| var widthWindow = document.body.clientWidth; | |
| var widthContainer = document.querySelector('.container').offsetWidth | |
| var gutters = document.getElementsByClassName('gutter'); | |
| var guttersWidth = (widthWindow -widthContainer)/2; | |
| alert(widthContainer) | |
| for(var i = 0; i<gutters.length;i++){ | |
| gutters[i].style.width = guttersWidth + 45 + 'px'; | |
| } |
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
| MySQL | |
| ==================== | |
| 1) Скачиваем MySQL Community Downloads | |
| https://dev.mysql.com/downloads/installer/ |
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
| http://manos.malihu.gr/jquery-custom-content-scroller/ |
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
| Telephone mask | |
| ================ | |
| 1. | |
| npm install --save jquery.maskedinput | |
| 2. | |
| 'node_modules/jquery.maskedinput/src/jquery.maskedinput.js', | |
| 3. | |
| $("input[type=tel").mask("8(999) 999-9999") |
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
| 1. Создаем в Contact Form 7 чекбокс | |
| [acceptance agree class:agree default:on invert] | |
| 2. | |
| <script language="javascript"> | |
| jQuery('.agree').prop('checked', false); | |
| </script> | |
| 3. | |
| <style type="text/css"> | |
| .agree {display:none} |