$arr = [
['first_name', '=', 'last_name'],
['updated_at', '>', 'created_at']
];
$users = DB::table('users')->whereColumn($arr)->get();
$(window).resize(
debounce(function () {
let resizeWidth = $(window).width();
let img_count = 6;
if (resizeWidth > 560) {
for (let i = 1; i <= img_count; i++) {
$('#img-' + i).attr("href", "../css/images/image-" + i + "-1000.jpg");
$('#img-' + i + ' > .block-8_container_images_border__image').attr("src", "../css/images/image-" + i + "-500.jpg");
}
}
}, 500))
function debounce(func, wait, immediate = false) {
let timeout;
return function () {
let context = this, args = arguments;
let later = function () {
timeout = null;
if (!immediate) func.apply(context, args);
};
let callNow = immediate && !timeout;
clearTimeout(timeout);
timeout = setTimeout(later, wait);
if (callNow) func.apply(context, args);
};
};
async getUser(userId) {
return await instance.get('...')
}
if (ask !== null || ask !== '') {
for (let i = 0; i < ask; i++) {
setTimeout(() => {
drowCircle(i);
}, i * 100);
}
}
$(".header .search .button").click(function(event) {
event.preventDefault();
alert('Нажатая кнопка' + $(this).text());
});
<? for($i = 0; $i < 4; $i++) { ?>
<div class="plyr__video-embed" id="player<?=$i?>">
<?= $sabak->video ?>
</div>
<? } ?>
a[0].style = "color:red";
Header set Access-Control-Allow-Origin "*"
в файл .htaccess var_export($var, true)
, а потом не инклудить готовым массивом?)