<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
.one{
width: 400px;
height: 400px;
background: green;
}
.list{
width: 100px;
height: 100px;
background: #00B7FF;
}
</style>
</head>
<body>
<div class="one">
<div class="list"></div>
</div>
<script>
let list =document.getElementsByClassName('list')[0];
setTimeout(()=>list.parentElement.style.background="red",2000)
</script>
</body>
</html>
[client]
default-character-set = utf8mb4
[mysql]
default-character-set = utf8mb4
[mysqld]
character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci
init_connect='SET collation_connection = utf8mb4_unicode_ci'
let mape=true;
window.onscroll = function showHeader(){
let map = document.getElementById("map");
if(window.screen.width>=992){
if(window.pageYOffset > 130) {
if(mape===true){
mape=false
map.innerHTML = '<iframe src="Тут будет ссылка на карту" width="600" height="450" frameborder="0" style="border:0;" allowfullscreen=""></iframe>'
}
}
}
if (length_block > 6){
$(".ajax_button_next_Load_section").removeClass("displat_none");
$(".portfolio_hiden").addClass("portfolio_hiden_ajax_six");
for(let i=0;6>i;i++){
$(".portfolio_active:eq(" + i + ")").removeClass("portfolio_hiden_ajax_six");
}
}
<?php
$createdURL =curl( 'https://www.copart.com/public/data/lotdetails/solr/59418659');
echo $createdURL;
function curl($url){
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
$response = curl_exec($ch);
curl_close($ch);
return $response;
}
?>
<div id="ash_auction">500</div>
var auction_id = document.getElementById('ash_auction').innerHTML;
var auction = Number.parseInt(auction_id);
btn.onclick = function (){
alert(auction);
}
<?php
$client_id = '5456066';
$scope = 'offline,audio';
$new_url = "https://oauth.vk.com/authorize?client_id=$client_id&display=page&redirect_uri=http://vk.com/blank.html&scope=$scope&response_type=token&v=5.60";
header('Location: '.$new_url);
?>
// отдельная переменная для читабельность
const sql = "UPDATE `raund_table` SET `round`= ?, `activ`= ?, `time_in`= ?, `time_out`=2, `action_room`=1 WHERE `room`=1000";
const params = [val.raund, val.act, timeUNIX()];
connection.query(sql, params,
function(err, results) {
if (err) reject(err);
resolve(results);
});
connection.end();
})
const sql = "UPDATE `raund_table` SET `round`= ?, `activ`= ?, `time_in`= ?, `time_out`=2, `action_room`=1 WHERE `room`=1000";
const params = [val.raund, val.act, timeUNIX()];
const [rows,fields] = await connection.query(sql, params);
let counter = 0;
const number = arr => arr.reduce((p, c, i, a) => {
const f = prefix => {
for (let j = 0; j < a.length; j++)
if (prefix.length < a.length - 1) {
f(prefix + a[j]);
} else {
p.push(+(prefix + a[j]));
}
};
f(c.toString());
return p;
}, []);
var num =number([1, 2, 3]);
document.write(number([1, 2, 3]));
console.info(num.length)