<!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>
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");
}
}
<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);
}
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)