K
K
Konstantin2020-05-03 21:34:14
JavaScript
Konstantin, 2020-05-03 21:34:14

How to implement dynamic links in the menu depending on the screen?

Greetings, there is an unusual task, I do not understand how to implement it.

The site has a menu, if the screen width is more than 720px, then the following link is in the menu:

<ul class="menu">
<li><a href="#slider"></li>
</ul>


And if the screen is less than 720px, then the link in the menu looks like this:

<ul class="menu">
<li><a href="/katalog"></li>
</ul>


In the PC version, a slider will be put forward, in the mobile version, there will simply be a transition to the page.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladislav Viktorovich, 2020-05-03
@gradk

Bootstrap? d-none d-md-block.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question