let block = false;
$(document).scroll(function () {
if (!block && isScrolledIntoView(".contact-start-popup")) {
block = true;
MicroModal.show('poster-popup');
}
});
$response = json_decode($response, true);
var_dump($response);
$arResult = json_decode($response, true);
var_dump($arResult);
$t1 = (new DateTimeImmutable('1900-01-01T00:00:00'))->getTimestamp();
$t2 = (new DateTimeImmutable('1950-01-01T00:00:00'))->getTimestamp();
$t = rand($t1, $t2);
print (new DateTimeImmutable())->setTimestamp($t)->format(DateTimeInterface::RFC3339);
// 1915-10-14T19:08:14+00:00
a = [1,2,3,5,7,8,3,2,5,7,6,3,1,5,4,2,3,4,4,5,6,2,1,3,4,1,2,3,2,3,4,1,4,2,2,3,4,1,2,3,4]
b = {}
for(x of a){
if(b[x]){
b[x] = b[x]+1;
}
else{
b[x] = 1;
}
}
let maxKey, maxValue = 0;
for(const [key, value] of Object.entries(b)) {
if(value > maxValue) {
maxValue = value;
maxKey = key;
}
}
console.log(`Ключ ${maxKey} имеет больше всего повторений - ${maxValue}`);
rm -rf /var/www/mysite.com/*
cd /var/www/mysite.com
git clone {myrepourl} .
cp .env.example .env
nano .env
composer install