Пример установочного скрипта для 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
.not-empty-cart { | |
opacity: 1; | |
background-color: #CC5134; | |
padding: 7px 15px; | |
color: white; | |
border-radius: 500px; | |
} |
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; } |
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
/* my custom icons */ | |
(function (global, factory) { | |
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : | |
typeof define === 'function' && define.amd ? define('uikiticons', factory) : | |
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.UIkitIcons = factory()); | |
})(this, (function () { 'use strict'; | |
function plugin(UIkit) { | |
if (plugin.installed) { |
NewerOlder