packages/schema-diff/docs/js/menu.js
File menu.js
has 294 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
document.addEventListener('DOMContentLoaded', function () {
var menuCollapsed = false,
mobileMenu = document.getElementById('mobile-menu');
var localContextInUrl = '';
Function processLogos
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var processLogos = function (entityLogos) {
for (var i = 0; i < entityLogos.length; i++) {
var entityLogo = entityLogos[i];
if (entityLogo) {
var url = entityLogo.getAttribute('data-src');
Function toggleItemMenu
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
toggleItemMenu = function (e) {
var element = $(e.target),
parent = element[0].parentNode,
parentLink,
elementIconChild;
Avoid deeply nested control flow statements. Open
Open
if (linkContextId === 'additional') {
var mainToggler = activeMenu.querySelector(
'.chapter.' + linkContextId + ' div.menu-toggler'
);
if (mainToggler) {
Avoid deeply nested control flow statements. Open
Open
if (toggler) {
toggler.click();
}
Avoid deeply nested control flow statements. Open
Open
if (toggler) {
toggler.click();
}
Avoid deeply nested control flow statements. Open
Open
if (parentUl) {
parentChapterMenu = parentUl.parentNode;
if (parentChapterMenu) {
var toggler = parentChapterMenu.querySelector('.menu-toggler'),
elementIconChild =
Avoid deeply nested control flow statements. Open
Open
if (linkContextId === 'additional') {
var mainToggler = activeMenu.querySelector(
'.chapter.' + linkContextId + ' div.menu-toggler'
);
if (mainToggler) {