Sha256: 9181a54e3ef2e70405736a6b6fffbf8b2688da2a4311ced601c8970559f2229b
Contents?: true
Size: 531 Bytes
Versions: 6
Compression:
Stored size: 531 Bytes
Contents
//Calculate the width of the browser's vertical scrollbar (if any) for use in sizing table overflow wrappers //Adapted from this SO answer: <https://stackoverflow.com/a/57748743> $('body').css('--scrollbar-width', window.innerWidth - document.documentElement.clientWidth + 'px'); //Hide the navigation bar when clicking on the main page contents in mobile view mode $('main').click(function() { if ($('.navtoggle').is(':visible') === true && $('.collapse').is(':visible') === true) { $('.navtoggle a').trigger('click'); } });
Version data entries
6 entries across 6 versions & 1 rubygems