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
| <!-- HTML --> | |
| <div class="accordion-container"> | |
| <a href="#" class="accordion-toggle">Heading 1</a> | |
| <div class="accordion-content"> | |
| Content 1 | |
| </div> | |
| </div> | |
| <div class="accordion-container"> | |
| <a href="#" class="accordion-toggle">Heading 2</a> | |
| <div class="accordion-content"> |
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 audio = new Audio('http://cdn-cis.jivosite.com/sounds/agent_message.mp3'); | |
| document.onreadystatechange = function(){ | |
| if(document.readyState === 'complete'){ | |
| // Ваш скрипт | |
| setTimeout(function() { | |
| jivo_api.open(); | |
| audio.play(); | |
| }, 30000); | |
| } | |
| } |
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 | |
| define("VARS_DIR", __DIR__ ."/"); | |
| $ned[0]="-"; | |
| $ned[1]="ПН"; | |
| $ned[2]="ВТ"; | |
| $ned[3]="СР"; | |
| $ned[4]="ЧТ"; | |
| $ned[5]="ПТ"; | |
| $ned[6]="СБ"; |
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
| <!-- до скрипта долже быть подклчен jquery --> | |
| <script> | |
| $(document).ready(function() { | |
| $('a[href^="#"]').click(function() { | |
| event.preventDefault(); | |
| var target = $(this).attr('href'), | |
| top = $(target).offset().top; | |
| // console.log(target); | |
| $('body,html').animate({scrollTop: top}, 1500); | |
| }); |
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://money.yandex.ru/to/41001562906632 или напрямую lucky-devil.ru/pay | |
| // Спасибо) | |
| // Если нужна помощь напиши мне lucky-devil.ru/contacts/ | |
| // ТАК ЖЕ ИМЕЕТСЯ ВЕРСИЯ ДЛЯ КРОСДОМЕННОГО РЕШЕНИЯ. | |
| // битрикс обновляется и временами надо поддрихтовать данный код. | |
| $queryNotice = 'https://ВАШЛОГИН-В-БИТРИКС.bitrix24.ru/rest/НОМЕР-ПОЛЬЗОВАТЕЛЯ-СОЗДАВШЕГО-ВЕБХУК/КОД-ИЗ-ВЕБХУКА/im.message.add'; |
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 | |
| function get_currencies() { | |
| $xml = simplexml_load_file('http://cbr.ru/scripts/XML_daily.asp'); | |
| $currencies = array(); | |
| foreach ($xml->xpath('//Valute') as $valute) { | |
| $currencies[(string)$valute->CharCode] = (float)str_replace(',', '.', $valute->Value); | |
| } | |
| return $currencies; | |
| } |
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
| <? | |
| /** | |
| * Write data to log file. | |
| * | |
| * @param mixed $data | |
| * @param string $title | |
| * | |
| * @return bool | |
| */ | |
| function writeToLog($data, $title = '') { |
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
| необхкодимы установленные крипто про и ViPNet | |
| cd C:\Program Files\Crypto Pro\CSP | |
| csptest.exe -sfsign -sign -detached -add -in "C:\путь_до_файла.pdf" -out "C:\путь_до_файла.pdf.sig" -my электронная@почта |
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
| <? | |
| define('ROOT', $_SERVER['DOCUMENT_ROOT']); | |
| require_once(ROOT.'/bitrix/crest.php'); // берется отсюда https://dev.1c-bitrix.ru/rest_help/rest_sum/crest.php | |
| foreach ($_FILES as $key=>$value) { | |
| $result = CRest::call( | |
| 'disk.folder.uploadfile', | |
| [ | |
| 'id' => $folderId, // id папки берите нужный сами | |
| 'data' => [ |