class Draw {
    constructor(h, w, id) {
        this.h = h;
        this.w = w;
    }
    create(elem) {
        let createConvas = document.querySelector('div');
        createConvas.innerHTML = `<canvas width=${this.w} height=${this.h}></canvas>`;
        this.ctx = createConvas.querySelector("canvas").getContext("2d");
        return createConvas;
    }
}
class Rect extends Draw {
    constructor(elem, x, y, w, h) {
        super(elem, x, w, h);
        this.y = y;
    }
    create(elem) {
    	super.create(elem);
        this.ctx.fillRect(20, 20, 150, 100);
    }
}
let rect = new Rect(300, 300, '24');
rect.create();      
  
  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>'
}
      
    
  }
}      window.scrollBy({
  top: -10,
  left: 0,
  behavior: 'smooth'
}); //button.onclick = () => {
    let input = document.querySelector('.u-1').value;
    arr1.push(input);
    div.innerHTML = arr1;
}let input = document.querySelector('.u-1');
button.onclick = () => {
    arr1.push(input.value);
    div.innerHTML = arr1;
}