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
| <? | |
| $newsId = getElem(449)["PROP"]["PRESS_NEWS"]["VALUE"]; | |
| $pressIblocks = IBLOCK_POSTS; | |
| $arFilter = Array("IBLOCK_ID" => $pressIblocks, "ACTIVE" => "Y", "ID" => $newsId, "PROPERTY_".showPost() => "Y"); | |
| $res = CIBlockElement::GetList(Array("id" => $newsId), $arFilter, false, ["nPageSize" => 1], array()); | |
| $news = []; | |
| while($ob = $res->Fetch()) | |
| { | |
| $news[] = $ob; | |
| } |
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 id="myPreloader" class="wrap-myLoader cansel"> | |
| <div class="myLoader"></div> | |
| </div> | |
| beforeSend: function() { | |
| $('#myPreloader').removeClass('cansel'); | |
| }, |
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
| <? | |
| require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php"); | |
| $APPLICATION->SetTitle("Тестовый"); | |
| ?> | |
| <div class="popups__inner active"> | |
| <div class="popup popup__callback"> | |
| <div class="close_popup">x</div> | |
| <h3>Обратная связь</h3> |
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
| // Русский алфавит | |
| $ru = array( | |
| 'А', 'Б', 'В', 'Г', 'Д', 'Е', 'Ж', 'З', 'И', 'К', 'Л', 'М', | |
| 'Н', 'О', 'П', 'Р', 'С', 'Т', 'У', 'Ф', 'Х', 'Ц', 'Ч', 'Ш', | |
| 'Э', 'Ю', 'Я' | |
| ); | |
| // Английский алфавит | |
| $en = array( |
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('click', '.load-more-items', function(){ | |
| let navPar = '#'+$(this).parent().parent().attr('id'); | |
| var targetContainer = $(navPar+' .items-list'), | |
| url = $(navPar+' .load-more-items').attr('data-url'); | |
| if (url !== undefined) { | |
| $.ajax({ | |
| type: 'GET', | |
| url: url, |
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
| data-skip-moving битрикс | |
| Все современные поисковые системы обращают внимание на скорость загрузки страниц. Большие css и javascript файлы, размещенные в начале страницы, замедляют её загрузку. | |
| Для того, чтобы перенести все файлы в конец страницы, в битриксе имеется специальная настройка: | |
| Настройки – Настройки модулей - Главный модуль - Переместить весь Javascript в конец страницы | |
| data-skip-moving='true' | |
| Установка этой галочки перенесет все скрипты к закрывающему тегу </body>. |
NewerOlder