mirror of
https://bitbucket.org/bellord13/kit.git
synced 2026-11-13 19:06:11 +03:00
46 lines
1.4 KiB
PHP
46 lines
1.4 KiB
PHP
<?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php");?>
|
|
<?
|
|
if(\Bitrix\Main\Loader::includeModule('wt.core')) {
|
|
app()->service()->assets()->setPlugins([
|
|
'kit:config',
|
|
'kit:flex-kit',
|
|
'kit:core',
|
|
'kit:bsCore',
|
|
'kit:collapse',
|
|
'kit:site',
|
|
'kit:toolkit',
|
|
'kit:theme',
|
|
])->render();
|
|
}
|
|
$APPLICATION->ShowHead();
|
|
|
|
?>
|
|
<script>
|
|
kit.ready(['bsToastService', 'testing', 'date', ], function () {
|
|
|
|
var unit = new kit.testing.Unit();
|
|
unit.logger.info('Тест bootstrap.Toast 5.1.3');
|
|
unit.logger.info('Тест service.toast');
|
|
unit.logger.notice(' ');
|
|
|
|
var audio = new Audio('https://issue.megapolis-it.ru/local/media/new_message_tone.mp3');
|
|
kit.service.toast.onShow.push(function (toast, node) {
|
|
unit.logger.info(toast.data.title, toast.data);
|
|
audio.play();
|
|
});
|
|
|
|
var intervalId = setInterval(function(){
|
|
kit.service.toast.info('Новая заявка', 'Заявка от Пупкина на дальний склад. Очень срочно! Нужно еще вчера...', kit.date('H:i:s'));
|
|
//stop();
|
|
}, 5000);
|
|
|
|
|
|
var stop = function(){
|
|
clearInterval(intervalId);
|
|
};
|
|
});
|
|
</script>
|
|
|
|
<div class="kit-wrapper">
|
|
<div class="kit-logger"></div>
|
|
</div>
|