<template>
  <section class="banner-W1254H100Or90">
    <div class="section-wrapper">
      <div class="banner-desktop">
        <div id="adfox_167049468415926104" />
        <div id="adfox_163290332500362611" />
      </div>

      <div class="banner-mobile">
        <div id="adfox_167048915771772664" />
        <div id="adfox_16323873072892801"></div>
      </div>
    </div>
  </section>
</template>

<script>
export default {
  watch: {
    $route (to, from) {
      // eslint-disable-next-line no-undef
      Ya.adfoxCode.reload('adfox_167049468415926104')
      // eslint-disable-next-line no-undef
      Ya.adfoxCode.reload('adfox_16323873072892801')
      // eslint-disable-next-line no-undef
      Ya.adfoxCode.reload('adfox_163290332500362611')
      // eslint-disable-next-line no-undef
      Ya.adfoxCode.reload('adfox_16323873072892801')
    }
  },
  mounted () {
    window.yaContextCb.push(() => {
      // eslint-disable-next-line no-undef
      Ya.adfoxCode.create({
        ownerId: 720777,
        containerId: 'adfox_167049468415926104',
        params: {
          p1: 'cwoji',
          p2: 'hyrh'
        }
      })
      // eslint-disable-next-line no-undef
      Ya.adfoxCode.create({
        ownerId: 279920,
        containerId: 'adfox_163290332500362611',
        params: {
          pp: 'g',
          ps: 'dbpj',
          p2: 'hekb'
        }
      })
      // eslint-disable-next-line no-undef
      Ya.adfoxCode.create({
        ownerId: 720777,
        containerId: 'adfox_167048915771772664',
        params: {
          p1: 'cwoih',
          p2: 'hyrh'
        }
      })
      // eslint-disable-next-line no-undef
      Ya.adfoxCode.create({
        ownerId: 279920,
        containerId: 'adfox_16323873072892801',
        params: {
          pp: 'g',
          ps: 'dbpj',
          p2: 'hduj'
        }
      })
    })
  }
}
</script>

<style lang='less'>
.banner-desktop {
  display: block;
}
.banner-mobile {
  display: none;
}

@media all and (max-width: 576px) {
  .banner-desktop {
    display: none;
  }
  .banner-mobile {
    display: block;
  }
}

.banner-W1254H100Or90 {
  width: 100%;
  margin-bottom: 30px;

  .section-wrapper {
    min-height: auto;
    text-align: center;
    position: relative;
    // background-color: darkred;
    // &::after {
    //   content: "Растяжка 4";
    //   position: absolute;
    // }
  }
}
</style>
