R
R
Raheb Wataniar2017-11-27 21:35:12
linux
Raheb Wataniar, 2017-11-27 21:35:12

Why does the dropdown navigation take me back to the top of the HTML document when I click on the burger menu?

I have the following problem, when I click on Burger , the dropdown menu takes me back to the beginning of the HTML document. How to decide?
I want the menu to drop out as well, but there was no this bug (defect in the code) with raising to the top of the page.
linvinenko.esy.es/demo

The code was written for linvinenko.esy.es , there was no idea of ​​a fixed menu, and therefore it is possible that when you click on a link, it acts as an anchor with IDs in the menu.
This is my guess.

The whole project is on GitHub

https://github.com/Pholish/Fixed-Menu

Answer the question

In order to leave comments, you need to log in

6 answer(s)
K
ky0, 2019-09-11
@ky0

Data does not arrive - so there are no points on the graph.

I
iddqda, 2019-09-12
@iddqda

Look at the chart at the bottom left. There is a very strange dimension - hundredths of a percent of the CPU load
Probably the custom multiplier for the CPU metric is incorrectly set and in fact these are not hundredths of a cent, but whole cents.
In this case, the graph is empty when the load exceeds 80%, and when the load decreases, the data reappears.
those. the server stupidly does not have time to respond to the agent, the agent returns nothing, nothing gets on the chart.
Try the Timeout parameter in the zabbix_server.conf config

### Option: Timeout
# Specifies how long we wait for agent, SNMP device or external check (in seconds).
#
# Mandatory: no
# Range: 1-30
# Default:
# Timeout=3

E
ekzkgz, 2019-09-12
@ekzkgz

If this traffic is received from routers, then you need to disable batch processing in the host settings (use bulk requests)

Z
zoozag, 2017-11-27
@Pholish

event.preventDefault()

S
Stalker_RED, 2017-11-27
@Stalker_RED

you have a hamburger inside <a href="#">. Here is the transition to the beginning and it works.

S
Stepan Davashenevquestion, 2017-11-28
@nezabor

in script on click doreturn false;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question