(function(d){
var display = d.querySelector('#countdown .display')
var timeLeft = parseInt(display.innerHTML)
var timer = setInterval(function(){
if (--timeLeft >= 0) {
display.innerHTML = timeLeft
} else {
display.innerHTML = timeLeft+22
}
}, 1000)
})(document)
[...Object.values(opinions)].filter((option, index, array) => option.limit <= resultCore && resultCore <= array[index +1]).limit
const frontMenu = (...arrayOfLabel) => Telegraf.Extra.markdown().markup((m) => m.inlineKeyboard(
arrayOfLabel.map((a) => a.map((b) => m.callbackButton(b.name, b.callback))),
));
$(document).ready(function () {
let curr = 1;
$('#btn').on('click', function () {
$(`.dot:nth-child(${curr})`).toggleClass('open');
curr++
});
});
$.ajax({
url: url.to.php.file,
type: 'POST',
data: {
// тут пишите данные в виде массива по которым нужно отфильтровать, что-то...
},
dataType: 'json',
contentType: 'application/json',
json: true
}).done(function(data){
console.log(data);
}).always(function(dataError){
console.log(dataError);
});
<?php
header('Content-Type: application/json');
$resultJson = array("text" => "Hello!");
echo json_encode($resultJson);
?>
form{
width: 450px;
border: 1px solid gray;
margin-left: auto;
margin-right: auto;
position: relative;
margin-top: 10%;
border-radius: 15px;
background-color: white;
opacity: 0.98;
transition: 2s;
}
<div class="block-animation"></div>
.block-animation {
width: 130px;
height: 130px;
background-color: #2196F3;
transition: 3s;
}
.block-animation:hover {
background-color: #3F51B5;
height: 400px;
}
$name = $_POST['name'];
$phone = $_POST['phone'];
mail("адрес почты",
<?php
// Сообщение
$message = "Line 1\r\nLine 2\r\nLine 3";
// На случай если какая-то строка письма длиннее 70 символов мы используем wordwrap()
$message = wordwrap($message, 70, "\r\n");
// Отправляем
mail('caffeinated@example.com', 'My Subject', $message);
?>
let el = document.querySelector('.black')
el.setAttribute('data-id', 'black');