mirror of
https://bitbucket.org/bellord13/kit.git
synced 2026-11-13 19:06:11 +03:00
fix
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
<script type="text/javascript" src="../assets/core/core.plugins.config.js"></script>
|
||||
<script type="text/javascript" src="../assets/core/core.js"></script>
|
||||
<script>
|
||||
|
||||
console.log('exec 1');
|
||||
kit.exec('jquery', function () {
|
||||
console.log('exec 3');
|
||||
}).then(function(){
|
||||
console.log('exec 4');
|
||||
});
|
||||
console.log('exec 2');
|
||||
|
||||
|
||||
console.log('ready 1');
|
||||
kit.ready('menu', function () {
|
||||
console.log('ready 3');
|
||||
}).then(function(){
|
||||
console.log('ready 4');
|
||||
});
|
||||
console.log('ready 2');
|
||||
|
||||
|
||||
console.log('loaded 1');
|
||||
kit.loaded('Tooltip', function () {
|
||||
console.log('loaded 3');
|
||||
}).then(function(){
|
||||
console.log('loaded 4');
|
||||
});
|
||||
console.log('loaded 2');
|
||||
|
||||
|
||||
console.log('define 1');
|
||||
kit.loaded().then(function(){
|
||||
kit.define('Popover', function (Popover) {
|
||||
console.log('define 3', Popover);
|
||||
}).then(function(){
|
||||
console.log('define 4');
|
||||
});
|
||||
});
|
||||
console.log('define 2');
|
||||
|
||||
|
||||
(new Promise(function(resolve, reject){
|
||||
console.log('Promise 1');
|
||||
resolve();
|
||||
})).then(function(){
|
||||
console.log('Promise 3');
|
||||
});
|
||||
console.log('Promise 2');
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<div class="kit-wrapper">
|
||||
<div class="kit-logger"></div>
|
||||
</div>
|
||||
<?php
|
||||
echo str_repeat('<div></div>', 100000);
|
||||
+15
-8
@@ -1,6 +1,10 @@
|
||||
<?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php");?>
|
||||
<?
|
||||
if(\Bitrix\Main\Loader::includeModule('wt.core')) {
|
||||
<?php
|
||||
|
||||
use Bitrix\Main\Loader;
|
||||
|
||||
require($_SERVER['DOCUMENT_ROOT']. '/bitrix/modules/main/include/prolog_before.php');?>
|
||||
<?php
|
||||
if(Loader::includeModule('wt.core')) {
|
||||
app()->service()->assets()->setPlugins([
|
||||
'kit:config',
|
||||
'kit:flex-kit',
|
||||
@@ -12,11 +16,14 @@ if(\Bitrix\Main\Loader::includeModule('wt.core')) {
|
||||
'kit:theme',
|
||||
])->render();
|
||||
}
|
||||
/**
|
||||
* @global CMain $APPLICATION
|
||||
*/
|
||||
$APPLICATION->ShowHead();
|
||||
?>
|
||||
<div class="kit-wrapper">
|
||||
<div class="flex-list" style="--col-count: 3">
|
||||
<div class="flex-list-item"><?
|
||||
<div class="flex-list-item"><?php
|
||||
service()->templater()->render('kit:input', [
|
||||
'TYPE' => 'text',
|
||||
'HINT' => '',
|
||||
@@ -25,7 +32,7 @@ $APPLICATION->ShowHead();
|
||||
'LABEL' => 'value = дв ковычки',
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="flex-list-item"><?
|
||||
<div class="flex-list-item"><?php
|
||||
service()->templater()->render('kit:input', [
|
||||
'TYPE' => 'text',
|
||||
'HINT' => '',
|
||||
@@ -34,7 +41,7 @@ $APPLICATION->ShowHead();
|
||||
'LABEL' => 'value = одинарные ковычки',
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="flex-list-item"><?
|
||||
<div class="flex-list-item"><?php
|
||||
service()->templater()->render('kit:input', [
|
||||
'TYPE' => 'text',
|
||||
'HINT' => '',
|
||||
@@ -43,7 +50,7 @@ $APPLICATION->ShowHead();
|
||||
'LABEL' => 'value = спецсимволы',
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="flex-list-item"><?
|
||||
<div class="flex-list-item"><?php
|
||||
service()->templater()->render('kit:input', [
|
||||
'TYPE' => 'text',
|
||||
'HINT' => '',
|
||||
@@ -52,7 +59,7 @@ $APPLICATION->ShowHead();
|
||||
'LABEL' => 'value = лев пр слеши, лев пр стрелки, дв од кав',
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="flex-list-item"><?
|
||||
<div class="flex-list-item"><?php
|
||||
service()->templater()->render('kit:input', [
|
||||
'TYPE' => 'text',
|
||||
'HINT' => '',
|
||||
|
||||
Reference in New Issue
Block a user