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
/** | |
* Поле выбора количества | |
*/ | |
(function() { | |
const DATA_KEY = 'KEY_SPIN'; | |
const REPEAT_DELAY_1 = 300; | |
const REPEAT_DELAY_2 = 1500; | |
const REPEAT_DELAY_3 = 3000; | |
const REPEAT_SPEED_1 = 200; |
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
<script>/** | |
* Lazy load Yandex Maps API | |
* Отложенная загрузка выражается в том, | |
* что API подгружается при первом мотировании компонента. | |
* Если на странице нет карты, то и API не грузится. | |
* | |
* @author delphinpro <[email protected]> | |
* @copyright copyright © 2018 delphinpro | |
* @license licensed under the MIT license | |
* |
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
/** | |
* Compute scrollbar width | |
* | |
* @author delphinpro <[email protected]> | |
* @copyright copyright © 2018 delphinpro | |
* @license licensed under the MIT license | |
*/ | |
let computedWidth = null; |
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
.map [class*="ymaps-2"][class*="-ground-pane"] { | |
/* Firefox 3.5+ */ | |
filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale"); | |
/* Chrome 19+ & Safari 6+ */ | |
-webkit-filter: grayscale(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
import('./shop.js').then(module => { | |
module.doInit(); | |
}); |
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
export function triplets(str) { | |
// \u202f — неразрывный узкий пробел | |
return str.toString().replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, '$1\u202f'); | |
} |
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 | |
$file = isset($file) ? $file : ''; | |
$cacheable = isset($cacheable) ? intval($cacheable) : 0; // 1 or 0 | |
if (empty($file)) { | |
return; | |
} | |
$filePath = MODX_BASE_PATH . $file; |
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 | |
$e =& $modx->event; | |
switch ($e->name ) { | |
case 'OnBeforeDocFormSave': | |
//$logFile = MODX_BASE_PATH . DIRECTORY_SEPARATOR . 'CfgTv.log'; | |
//file_put_contents($logFile, ''); | |
$list_id = explode(',', $ids); | |
if (!in_array($_POST['id'], $list_id)) return; | |
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
/*== | |
*== Hexagon | |
*== ======================================= ==*/ | |
$hexagon-size: 184px; | |
$sin60: 0.86602540; | |
$hexagon-height: $hexagon-size / $sin60; | |
.hexagon { | |
&, * { transition: 0.3s linear; } |