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
| generateToken(length) { | |
| let result = '' | |
| const chars = [ | |
| 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', | |
| 'abcdefghijklmnopqrstuvwxyz', | |
| '0123456789', | |
| ] | |
| for (let i = 0; i < length; i += 1) { | |
| const numSet = Math.floor(Math.random() * chars.length) | |
| const numChar = Math.floor(Math.random() * chars[numSet].length) |
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
| $APPLICATION->ShowProperty('workTitle', ''); // print | |
| /* ... */ | |
| $APPLICATION->SetPageProperty('workTitle', $arSection["NAME"]); // set for print |
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
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <meta name="title" content="SITENAME"> | |
| <meta name="keywords" content="SITENAME, TAGS"> | |
| <meta name="description" content="DESCRIPTION"> | |
| <link rel="image_src" href="images/image-site.jpg"> | |
| <meta name="author" content="SITENAME"> |
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
| { | |
| position: absolute; | |
| left: 50%; | |
| top: 50%; | |
| -webkit-transform: translate(-50%,-50%); | |
| -moz-transform: translate(-50%,-50%); | |
| -ms-transform: translate(-50%,-50%); | |
| transform: translate(-50%,-50%); | |
| min-width: 100%; | |
| min-height: 100%; |
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
| .modal-nav-list { | |
| margin: 0; | |
| padding: 60px 0 0; | |
| list-style: none; | |
| -webkit-columns: 4; | |
| -moz-columns: 4; | |
| columns: 4; | |
| } | |
| .modal-nav-list > li { | |
| margin: 0 0 10px; |
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 getUrlParameter = function getUrlParameter (sParam) { | |
| var sPageURL = decodeURIComponent(window.location.search.substring(1)), | |
| sURLVariables = sPageURL.split('&'), | |
| sParameterName, | |
| i; | |
| for (i = 0; i < sURLVariables.length; i++) { | |
| sParameterName = sURLVariables[i].split('='); | |
| if (sParameterName[0] === sParam) { |
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 eForm = $('form'); | |
| var formData = new FormData(eForm[0]); | |
| $.ajax({ | |
| url: eForm.attr('action'), | |
| type: 'POST', | |
| data: formData, | |
| cache: false, | |
| async: false, | |
| contentType: false, | |
| processData: 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
| if (\Bitrix\Main\Loader::includeModule('iblock')) { | |
| $res = CIBlockSection::GetList( | |
| ['sort'=>'asc'], | |
| ['IBLOCK_ID'=>65, 'ACTIVE'=>'Y', 'DEPTH_LEVEL'=>1], | |
| false, | |
| ['*', 'UF_*'], | |
| false | |
| ); | |
| while($arSection = $res->GetNext()) { | |
| $aMenuLinks[] = [ |
NewerOlder