I am new on this field. Here is some code.
window.blockMenuHeaderScroll = false;
$(window).on('touchstart', function(e) {
if ($(e.target).closest('.main').length == 1) {
blockMenuHeaderScroll = true;
}
});
This is part of one javascript code in html tag. I don't know what blockMenuHeaderScroll
mean and tried to look up it here. https://developer.mozilla.org/en-US/docs/Web/API/Window
But can't find it. Why is that?
And I also don't know what is closest('.main').length
mean. Why there is one "." and why ".length"