Пример установочного скрипта для Joomla
This file contains 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
<button type="button" class="header-item-content dms-button" style="border: none;"> | |
<span class="header-item-icon"> | |
<span style="margin: 3px; font-size: 1.2rem; transition: all .6s ease;">🌓</span> | |
</span> | |
<span class="header-item-text">Dark Mode Switcher</span> | |
</button> | |
<script> | |
(() => { | |
'use strict'; |
This file contains 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> | |
document.addEventListener('onRadicalMartDisplayAfterSetConfig', function (event) { | |
console.log(event.detail) | |
window.RadicalMartDisplay.cart.notification_addShow = false; // Отключаем стандартное поведение | |
}); | |
document.addEventListener('onRadicalMartCartAfterAddProduct', function(event) { | |
if (!event.detail.error) { | |
alert('PRODUCT ADD'); // Делаем свое |
This file contains 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
/* хром, сафари */ | |
.element::-webkit-scrollbar { width: 0; } | |
/* ie 10+ */ | |
.element { -ms-overflow-style: none; } | |
/* фф (свойство больше не работает, других способов тоже нет)*/ | |
.element { overflow: -moz-scrollbars-none; } |
NewerOlder