Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="header-menu">
- <a class="header-menu__link" data-menuanchor="what-we-do" href="#whatWeDo">
- <div class="header-menu__text">Чем мы занимаемся?</div>
- </a>
- <a class="header-menu__link" data-menuanchor="work-process" href="#workProcess">
- <div class="header-menu__text">Процесс работы</div>
- </a>
- <a class="header-menu__link" data-menuanchor="why-us" href="#whyUs">
- <div class="header-menu__text">Почему именно мы?</div>
- </a>
- <a class="header-menu__link" data-menuanchor="prices" href="#Prices" id="Pricess">
- <div class="header-menu__text">Прайс</div>
- </a>
- <a class="header-menu__link header-menu__link_order" data-menuanchor="order" href="#Order">
- <div class="header-menu__text">Сделать заказ</div>
- </a>
- </div>
- </div>
- window.onscroll = function() {
- if(document.location.hash == '#Prices')
- {
- document.getElementById('Pricess').style.color = '#f3a7f6';
- console.log('document.location', document.location.hash);
- }
- else {
- document.getElementById('Pricess').style.color = '#fff';
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement