Skip to content

Instantly share code, notes, and snippets.

View AlekVolsk's full-sized avatar

AlekVolsk AlekVolsk

View GitHub Profile
@Septdir
Septdir / uk-number.css
Created February 25, 2019 14:41
UIkit3 number
[input-number] input,
[input-number] input:focus,
[input-number] input:hover,
[input-number] input:active {
-webkit-appearance: textfield;
-moz-appearance: textfield;
appearance: textfield;
padding-right: 42px;
box-sizing: border-box;
}
@Septdir
Septdir / joomla-ajax.js
Last active April 5, 2020 17:14
Ajax request for joomla
let request = new XMLHttpRequest(),
requestUrl = '', // Указываем url запроса
formData = new FormData(); // Перадаем <form> или просто добавляем ниже через append что нужно
request.open('POST', requestUrl);
request.send(formData);
request.onreadystatechange = function () {
if (this.readyState === 4 && this.status === 200) {
let response = false;
try {
<?php
function vd(...$args)
{
print_r('<pre style="margin:0;padding:20px;font:14px/1.6 Consolas,monospace;' .
'background-color:#eee;color:#333">===<br>');
foreach ($args as $i => $context) {
if ($i > 0) {
print_r('<br>===<br><br>');
}