Message from JavaScript discussions

October 2020

— Yes


Hi guys, i realize a function to block the scrolling when the hamburger menu is collapsed but when click the icon I can't change overflow from 'hidden' to 'auto'

— function lockScroll() {

$("button[aria-expanded='false']").click(function () {
$('body').css('overflow', 'hidden');

$("button[aria-expanded!='false']").click(function () {
$('body').css('overflow', 'auto !important');


Message permanent page

— zo on anything to dive in self-documented code

— zo?

— Editor command, type zo

— Vim?

— I see

— It's just for folding?

— Probably fine, but with TS you don't really care about that, since you usually jump directly to the relevant function, you don't ever need to look at an entire file

Message permanent page

— Ye, mouse programming, probably fine

— Dont have to look at the entire file, just folding