em: function(less, fontsize, basefontsize){
if (less.functions.functionRegistry.get('ispixel')){
basefontsize = (basefontsize) ? basefontsize.value : 16
return fontsize.value/basefontsize+'em';
}
}
.block {
font-size: em(16px);
}
<option disabled selected>Выберите клинику</option>
block {
flex-shrink: 0
}
var lineObjects = [];
function createPAtch(max) {
// ...
var randPosX=Math.floor(Math.random()*window.innerWidth);
var randPosY=Math.floor(Math.random()*window.innerHeight);
lineObjects.push({ x: randPosX, y: randPosY });
// ...
}
fetch('/api.php', {
method: 'POST',
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json'
},
body: JSON.stringify({
action: 'auth',
payload: {
email: ...,
password: ...
}
})
});
<?php
require_once 'auth.class.php';
if ($_POST['action'] === 'auth') {
Auth::isAuth($_POST['payload']);
}
<div class="block"></div>
'use strict';
const block = document.querySelector('.block');
const replaced = block.outerHTML.replace(/div/g, 'span');
block.outerHTML = replaced;