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).on('keyup', '.numeric', function(e){ | |
| var val = false; | |
| var sKeys = [0, 8, 9, 16, 17, 18, 37, 38, 39, 40, 144]; | |
| var re = /^[0-9]*$/; | |
| var text = String.fromCharCode(e.keyCode); | |
| if(this.value){ | |
| val = this.value; | |
| }else if(this.innerHTML){ |
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
| /** | |
| * либа, базовый набор. | |
| * Принимает входящие параметры. | |
| */ | |
| // Backbone.Model.prototype.attributes.action = 'asdasd'; | |
| var Glib = function(tmp){ | |
| var Lib = 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
| /** | |
| Theme Name: {theme name} | |
| Theme URI: {theme url} | |
| Description: {descr} | |
| Author: {author} | |
| Author URI: {author url} | |
| Version: {version} | |
| **/ |
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
| /** | |
| * trigger to send yandex tag | |
| */ | |
| window.sendyatag(this, data); | |
| window.sendyatag = function(obj, data){ | |
| var tag; | |
| tag = ''; |
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
| <?php | |
| $price = array( | |
| 'elements'=>array( | |
| 0 => array( | |
| 'name'=>'Желоб водосточный 3000', | |
| 't'=>'Оцинковка', | |
| 'trench_width'=>'125/90', | |
| 'price'=>270, |
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 class="container__list"> | |
| <li class="container__list__item">Индивидуальный подход к каждому клиенту</li> | |
| <li class="container__list__item">Быстрота подтверждения ваших заявок</li> | |
| <li class="container__list__item">Отсутствие штрафных санкций, при своевременном отказе от заказа</li> | |
| <li class="container__list__item">Возможность поэтапной оплаты (частичной предоплаты)</li> | |
| </div> |
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
| <?php | |
| $uEmail = $_POST['user']['email']; | |
| $mEmail = get_option('manager_email'); | |
| $headers = 'From: ' . $_POST['user']['name'] . ' <' . $uEmail . '>' . "\r\n"; | |
| add_filter('wp_mail_content_type',create_function('', 'return "text/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
| var tmpRegex = new RegExp("(&page=)[0-9]+", 'ig'); | |
| var url = document.location.href; | |
| newVal = ''; | |
| substrurl = url.replace(tmpRegex, ''); | |
| console.log(substrurl); |
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 closeTr = function(arr) | |
| { | |
| for(var i=0; i<arr.length;i++){ | |
| var items = $(arr[i]).find('td[style*="visibility:hidden"]'); | |
| if(items.length < 2) continue; | |
| arr[i].style.display = 'none'; | |
| } |
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 ( current_user_can( 'administrator' ) ) { | |
| global $wpdb; | |
| echo 'Всего: ' . count($wpdb->queries); | |
| echo "<pre>"; | |
| print_r( $wpdb->queries ); | |
| echo "</pre>"; | |
| } |