Skip to content

Instantly share code, notes, and snippets.

View cave2006's full-sized avatar

Sergey Cave Lebedev cave2006

View GitHub Profile
@cave2006
cave2006 / custom.css
Last active August 6, 2024 03:08
Change the default behavior of the "Add to Cart" button to custom
.not-empty-cart {
opacity: 1;
background-color: #CC5134;
padding: 7px 15px;
color: white;
border-radius: 500px;
}
@cave2006
cave2006 / gist:2ea27e023a51f007647af71fb68ba7e7
Created April 10, 2024 04:28
dark mode switcher in status position
<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';
@cave2006
cave2006 / README-ru-RU.md
Created October 18, 2023 04:41 — forked from Septdir/README-ru-RU.md
Joomla Install Script

Установочный скрипт для Joomla

Пример установочного скрипта для Joomla

@cave2006
cave2006 / animated-swipe-icon.markdown
Created October 2, 2023 07:13
Animated Swipe Icon
@cave2006
cave2006 / .markdown
Created August 2, 2023 15:30
Выбрать адрес на карте
@cave2006
cave2006 / bgryolq.markdown
Last active August 2, 2023 12:32
phone mask script
@cave2006
cave2006 / gist:4f030db4709c3e7cd9bcf3a338c94df3
Created April 7, 2023 03:13
[DOC] Отключение стандартных скриптов JS для отображения
Как заменить уведомления о добавление товара в корзину на свое.
<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'); // Делаем свое
@cave2006
cave2006 / custom-joomla-custom-field.md
Created March 11, 2023 03:26 — forked from betweenbrain/custom-joomla-custom-field.md
Developing a custom Joomla custom field plugin

Anatomy of a custom form field

fields
  |
  -- fieldName.php
language
  |
  -- en-GB
    |
 -- en-GB.plg_fields_fieldName.ini
/* хром, сафари */
.element::-webkit-scrollbar { width: 0; }
/* ie 10+ */
.element { -ms-overflow-style: none; }
/* фф (свойство больше не работает, других способов тоже нет)*/
.element { overflow: -moz-scrollbars-none; }
@cave2006
cave2006 / custom-uikit-icons.js
Created November 2, 2022 03:33
код для добавления собственных иконок в custom.js
/* 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) {