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
| const citiesRussia = ['Москва', 'Санкт-Петербург', 'Казань', 'Новосибирск'] | |
| const citiesEurope = ['Берлин', 'Прага', 'Париж'] | |
| const citiesRussiaWithPopulation = { | |
| Moscow: 20, | |
| SaintPetersburg: 8, | |
| Kazan: 5, | |
| Novosibirsk: 3 | |
| } |
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
| <? | |
| use \Bitrix\Main\Data\Cache; | |
| //<ПРостий кеш> | |
| $cache = Cache::createInstance(); // отрматике ексзепляр класу | |
| if ($cache->initCache(7200, "cache_key")) { | |
| $vars = $cache->getVars(); // отримани змінні з кешу | |
| } | |
| elseif ($cache->startDataCache()) { | |
| // некоторые действия... |
So I thought it was about time I made a better version of my most popular pen.
A Pen by JP Nothard on CodePen.
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
| Работа с текстом | |
| Хоткей Описание | |
| ctrl+l Выделить строку. | |
| ctrl+shift+m Выделить текст между двумя парными скобками. | |
| ctrl+shift+a Выделить текст между двумя парными тегами. | |
| ctrl+shift+j Выделить текст с соответствующим отступом. | |
| ctrl+shift+space Выделить по контексту. | |
| ctrl+shift+left Выделить слово слева. | |
| ctrl+shift+right Выделить слово справа. | |
| ctrl+a Выделить весь текст. |
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
| $this->addExternalCss("/bitrix/css/main/bootstrap.css"); | |
| $this->addExternalCss("/bitrix/css/main/font-awesome.css"); |
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
| GIST | |
| [ | |
| { "keys": ["ctrl+k+i"], "command": "gist" }, | |
| { "keys": ["ctrl+k", "ctrl+p"], "command": "gist_private" }, | |
| { "keys": ["ctrl+k", "ctrl+s"], "command": "gist_update_file" }, | |
| { "keys": ["ctrl+k+o"], "command": "gist_list" }, | |
| { "keys": ["ctrl+k", "ctrl+["], "command": "insert_gist_list" }, | |
| { "keys": ["ctrl+k", "ctrl+]"], "command": "gist_add_file" } | |
| ] |
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://itchief.ru/lessons/html-and-css/css-media-queries | |
| // например, проверим, соответствует ли указанный медиа запрос (screen and (max-width: 543px)) устройству | |
| // результат проверки можно получить с помощью свойства matches (true или false) | |
| if (window.matchMedia('screen and (max-width: 543px)').matches) { | |
| // ... действия, если устройство отвечает медиа запросу | |
| } 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
| <? | |
| print_r($_POST); | |
| ?> |
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() { | |
| // bind 'myForm' and provide a simple callback function | |
| $('#myForm').ajaxForm(function() { | |
| alert("Thank you for your comment!"); | |
| }); | |
| }); | |
| jQuery(document).ready(function($) { | |
| //alert("ok"); |
NewerOlder