EOS/Scripts/master_menu.min.js
Nidhi Bhargava f0c1ab20e1 code push
2025-09-04 16:25:07 +05:30

71 lines
12 KiB
JavaScript

var data = [{ "PageId": "AuditLog_ExportAuditLog", "PageUrl": "/AuditLog/ExportAuditLog", "IsShow": true },{ "PageId": "AuditLog_AuditLog", "PageUrl": "/AuditLog/AuditLog", "IsShow": true },{ "PageId": "AuditLog_ShowAuditLog", "PageUrl": "/AuditLog/ShowAuditLog", "IsShow": true }, { "PageId": "BSSNSS_RoughCellTracker", "PageUrl": "/BSSNSS/RoughCellTracker", "IsShow": true }, { "PageId": "BSSNSS_CapacityReport", "PageUrl": "/BSSNSS/CapacityReport", "IsShow": true }, { "PageId": "BSSNSS_NPR", "PageUrl": "/BSSNSS/NPR", "IsShow": true }, { "PageId": "BSSNSS_NetworkKpiDashboard", "PageUrl": "/BSSNSS/NetworkKpiDashboard", "IsShow": true }, { "PageId": "BSSNSS_Show1X_Cell_Level", "PageUrl": "/BSSNSS/Show1X_Cell_Level", "IsShow": true }, { "PageId": "BSSNSS_IXKpiBscWise_NBH", "PageUrl": "/BSSNSS/IXKpiBscWise_NBH", "IsShow": true }, { "PageId": "BSSNSS_IXKpiBscWise_24Hrs", "PageUrl": "/BSSNSS/IXKpiBscWise_24Hrs", "IsShow": true }, { "PageId": "BSSNSS_FortnightBssReport", "PageUrl": "/BSSNSS/FortnightBssReport", "IsShow": true }, { "PageId": "BSSNSS_IXvoiceKpiCellLevel_24Hrs", "PageUrl": "/BSSNSS/IXvoiceKpiCellLevel_24Hrs", "IsShow": true }, { "PageId": "BSSNSS_WOR_SUMMARY", "PageUrl": "/BSSNSS/WOR_SUMMARY", "IsShow": true }, { "PageId": "BSSNSS_BtsWiseUtilization", "PageUrl": "/BSSNSS/BtsWiseUtilization", "IsShow": true }, { "PageId": "BSSNSS_FALCON_Dashboard", "PageUrl": "/BSSNSS/FALCON_Dashboard", "IsShow": true }, { "PageId": "BSSNSS_Do_CellReport", "PageUrl": "/BSSNSS/Do_CellReport", "IsShow": true }, { "PageId": "BSSNSS_IXvoiceKpiCellLevel_BBH", "PageUrl": "/BSSNSS/IXvoiceKpiCellLevel_BBH", "IsShow": true }, { "PageId": "BSSNSS__1X_BSS_LevelReport", "PageUrl": "/BSSNSS/_1X_BSS_LevelReport", "IsShow": true }, { "PageId": "BSSNSS_Do_BssbReport", "PageUrl": "/BSSNSS/Do_BssbReport", "IsShow": true }, { "PageId": "BSSNSS_CellWiseUtilization", "PageUrl": "/BSSNSS/CellWiseUtilization", "IsShow": true }, { "PageId": "BSSNSS_Show1X_BSS_Level", "PageUrl": "/BSSNSS/Show1X_BSS_Level", "IsShow": true }, { "PageId": "BSSNSS_HSD_COUNT_FOR_PAN_INDIA", "PageUrl": "/BSSNSS/HSD_COUNT_FOR_PAN_INDIA", "IsShow": true }, { "PageId": "BSSNSS_IXKpiBscWise_BBH", "PageUrl": "/BSSNSS/IXKpiBscWise_BBH", "IsShow": true }, { "PageId": "BSSNSS_ShowDo_Rev_B_Cell_Level", "PageUrl": "/BSSNSS/ShowDo_Rev_B_Cell_Level", "IsShow": true }, { "PageId": "BSSNSS_HSDeKpiCellLevel_24Hrs", "PageUrl": "/BSSNSS/HSDeKpiCellLevel_24Hrs", "IsShow": true }, { "PageId": "BSSNSS_HSDKpiBscWise_NBH", "PageUrl": "/BSSNSS/HSDKpiBscWise_NBH", "IsShow": true }, { "PageId": "BSSNSS_HSDKpiCellLevel_BBH", "PageUrl": "/BSSNSS/HSDKpiCellLevel_BBH", "IsShow": true }, { "PageId": "BSSNSS_ShowDo_Bssb", "PageUrl": "/BSSNSS/ShowDo_Bssb", "IsShow": true }, { "PageId": "BSSNSS_HSDKpiBscWise_24Hrs", "PageUrl": "/BSSNSS/HSDKpiBscWise_24Hrs", "IsShow": true }, { "PageId": "BSSNSS_MTTRReportAndPresentation", "PageUrl": "/BSSNSS/MTTRReportAndPresentation", "IsShow": true }, { "PageId": "BSSNSS_Do_Rev_B_Cell_LevelReport", "PageUrl": "/BSSNSS/Do_Rev_B_Cell_LevelReport", "IsShow": true }, { "PageId": "BSSNSS_MttrReport", "PageUrl": "/BSSNSS/MttrReport", "IsShow": true }, { "PageId": "BSSNSS_DailyBssReport", "PageUrl": "/BSSNSS/DailyBssReport", "IsShow": true }, { "PageId": "BSSNSS_CompleteOnnetMou", "PageUrl": "/BSSNSS/CompleteOnnetMou", "IsShow": true }, { "PageId": "BSSNSS_FinalOnnetMou", "PageUrl": "/BSSNSS/FinalOnnetMou", "IsShow": true }, { "PageId": "BSSNSS_ShowDo_Cell", "PageUrl": "/BSSNSS/ShowDo_Cell", "IsShow": true }, { "PageId": "BSSNSS_SitesLessThan10PercentUtilized", "PageUrl": "/BSSNSS/SitesLessThan10PercentUtilized", "IsShow": true }, { "PageId": "BSSNSS_POI_CONTRIBUTION", "PageUrl": "/BSSNSS/POI_CONTRIBUTION", "IsShow": true }, { "PageId": "BSSNSS_VOICE_COUNT_FOR_PAN_INDIA", "PageUrl": "/BSSNSS/VOICE_COUNT_FOR_PAN_INDIA", "IsShow": true }, { "PageId": "BSSNSS_VoiceUtilization", "PageUrl": "/BSSNSS/VoiceUtilization", "IsShow": true }, { "PageId": "BSSNSS_POI", "PageUrl": "/BSSNSS/POI", "IsShow": true }, { "PageId": "BSSNSS_GisReport", "PageUrl": "/BSSNSS/GisReport", "IsShow": true }, { "PageId": "BSSNSS_MonthlyBssReport", "PageUrl": "/BSSNSS/MonthlyBssReport", "IsShow": true }, { "PageId": "BSSNSS_RoughCellTrackerSummary", "PageUrl": "/BSSNSS/RoughCellTrackerSummary", "IsShow": true }, { "PageId": "BSSNSS_OutageAnalysisReportWithTrending", "PageUrl": "/BSSNSS/OutageAnalysisReportWithTrending", "IsShow": true }, { "PageId": "BSSNSS__1X_Cell_LevelReport", "PageUrl": "/BSSNSS/_1X_Cell_LevelReport", "IsShow": true }, { "PageId": "BSSNSS_IXvoiceKpiCellLevel_NBH", "PageUrl": "/BSSNSS/IXvoiceKpiCellLevel_NBH", "IsShow": true }, { "PageId": "BSSNSS_HSDKpiCellLevel_NBH", "PageUrl": "/BSSNSS/HSDKpiCellLevel_NBH", "IsShow": true }, { "PageId": "BSSNSS_UtilizationReport", "PageUrl": "/BSSNSS/UtilizationReport", "IsShow": true }, { "PageId": "BSSNSS_WeeklyBssReport", "PageUrl": "/BSSNSS/WeeklyBssReport", "IsShow": true }, { "PageId": "BSSNSS_TownWiseReport", "PageUrl": "/BSSNSS/TownWiseReport", "IsShow": true }, { "PageId": "BSSNSS_HSDKpiBscWise_BBH", "PageUrl": "/BSSNSS/HSDKpiBscWise_BBH", "IsShow": true }, { "PageId": "Home_Index", "PageUrl": "/Home/Index", "IsShow": true }, { "PageId": "Home_About", "PageUrl": "/Home/About", "IsShow": true }, { "PageId": "Home_Contact", "PageUrl": "/Home/Contact", "IsShow": true }, { "PageId": "FileProcessing_ShowInfraHeaweiData", "PageUrl": "/FileProcessing/ShowInfraHeaweiData", "IsShow": true }, { "PageId": "FileProcessing_NSSFiles", "PageUrl": "/FileProcessing/NSSFiles", "IsShow": true }, { "PageId": "FileProcessing_ShowTTSLInroaming", "PageUrl": "/FileProcessing/ShowTTSLInroaming", "IsShow": true }, { "PageId": "FileProcessing_ShowBSSHeaweiData", "PageUrl": "/FileProcessing/ShowBSSHeaweiData", "IsShow": true }, { "PageId": "FileProcessing_ShowBSSHuaweiData", "PageUrl": "/FileProcessing/ShowBSSHuaweiData", "IsShow": true }, { "PageId": "FileProcessing_ShowCDRInroaming", "PageUrl": "/FileProcessing/ShowCDRInroaming", "IsShow": true }, { "PageId": "FileProcessing_PDSNFiles", "PageUrl": "/FileProcessing/PDSNFiles", "IsShow": true }, { "PageId": "FileProcessing_ShowInfraHuaweiData", "PageUrl": "/FileProcessing/ShowInfraHuaweiData", "IsShow": true }, { "PageId": "FileProcessing_ShowICRoutroaming", "PageUrl": "/FileProcessing/ShowICRoutroaming", "IsShow": true }, { "PageId": "FileProcessing_ShowBSSZteData", "PageUrl": "/FileProcessing/ShowBSSZteData", "IsShow": true }, { "PageId": "FileProcessing_BSSFiles", "PageUrl": "/FileProcessing/BSSFiles", "IsShow": true }, { "PageId": "FileProcessing_ShowCDRBasedReport", "PageUrl": "/FileProcessing/ShowCDRBasedReport", "IsShow": true }, { "PageId": "FileProcessing_InfraFiles", "PageUrl": "/FileProcessing/InfraFiles", "IsShow": true }, { "PageId": "FileProcessing_ShowInfraZteData", "PageUrl": "/FileProcessing/ShowInfraZteData", "IsShow": true }, { "PageId": "Infra_CurrentAlarms", "PageUrl": "/Infra/CurrentAlarms", "IsShow": true }, { "PageId": "Infra_Dashboard", "PageUrl": "/Infra/Dashboard", "IsShow": true }, { "PageId": "Infra_GeoView", "PageUrl": "/Infra/GeoView", "IsShow": true }, { "PageId": "Infra_ShowCurrentAlarms", "PageUrl": "/Infra/ShowCurrentAlarms", "IsShow": true }, { "PageId": "PDSN_ICROutroamingReport", "PageUrl": "/PDSN/ICROutroamingReport", "IsShow": true }, { "PageId": "PDSN_ShowDataUsage", "PageUrl": "/PDSN/ShowDataUsage", "IsShow": true }, { "PageId": "PDSN_ShowCDRDataUsageReportGB", "PageUrl": "/PDSN/ShowCDRDataUsageReportGB", "IsShow": true }, { "PageId": "PDSN_ShowICRuniqueUsersReport", "PageUrl": "/PDSN/ShowICRuniqueUsersReport", "IsShow": true }, { "PageId": "PDSN_ShowCDRbasedUniqueUsersAndData", "PageUrl": "/PDSN/ShowCDRbasedUniqueUsersAndData", "IsShow": true }, { "PageId": "PDSN_ShowIcrDataUsageReport", "PageUrl": "/PDSN/ShowIcrDataUsageReport", "IsShow": true }, { "PageId": "PDSN_CdrInternationalRoamingReport", "PageUrl": "/PDSN/CdrInternationalRoamingReport", "IsShow": true }, { "PageId": "PDSN_CDRbasedReport", "PageUrl": "/PDSN/CDRbasedReport", "IsShow": true }, { "PageId": "PDSN_ShowTTSL1Xtraffic", "PageUrl": "/PDSN/ShowTTSL1Xtraffic", "IsShow": true }, { "PageId": "PDSN_ShowTTSL1XuniqueUsers", "PageUrl": "/PDSN/ShowTTSL1XuniqueUsers", "IsShow": true }, { "PageId": "PDSN_ShowCDRuniqueUsersReport", "PageUrl": "/PDSN/ShowCDRuniqueUsersReport", "IsShow": true }, { "PageId": "PDSN_TtslInRoamingReport", "PageUrl": "/PDSN/TtslInRoamingReport", "IsShow": true }, { "PageId": "PDSN_ShowCDRDataUsageReport", "PageUrl": "/PDSN/ShowCDRDataUsageReport", "IsShow": true }, { "PageId": "Circle_Circle", "PageUrl": "/Circle/Circle", "IsShow": true }, { "PageId": "Circle_ShowCirclePermission", "PageUrl": "/Circle/ShowCirclePermission", "IsShow": true }, { "PageId": "Circle_ShowCircle", "PageUrl": "/Circle/ShowCircle", "IsShow": true }, { "PageId": "Shared__Layout", "PageUrl": "/Shared/_Layout", "IsShow": true }, { "PageId": "Shared__LogOnPartial", "PageUrl": "/Shared/_LogOnPartial", "IsShow": true }, { "PageId": "Shared_Error", "PageUrl": "/Shared/Error", "IsShow": true }, { "PageId": "User_ChangePassword", "PageUrl": "/User/ChangePassword", "IsShow": true }, { "PageId": "User_ChangePasswordSuccess", "PageUrl": "/User/ChangePasswordSuccess", "IsShow": true }, { "PageId": "ProcessLog_ProcessLog", "PageUrl": "/ProcessLog/ProcessLog", "IsShow": true }, { "PageId": "ProcessLog_ShowProcessLog", "PageUrl": "/ProcessLog/ShowProcessLog", "IsShow": true }];
function checkRegex(valueToCheck, valueToCheckFrom) {
var valueRegEx = new RegExp(valueToCheck);
return valueRegEx.test(valueToCheckFrom)
}
function hideItems() {
var listItems = $('nav.cbp-hrmenu ul li');
listItems.each(function (idx, li) {
var listItem = $(li);
var hyperLink = listItem.find('a').first()[0].href;
var checkForSubDropdownItems = checkRegex('http://localhost:64263/?currtime', hyperLink);
if (hyperLink === "http://localhost:64263/#" || hyperLink === "#" || checkForSubDropdownItems) {
} else {
$.each(data, function (i, ojb) {
var pageUrl, regexExp;
pageUrl = ojb.PageUrl;
regexExp = checkRegex(pageUrl, hyperLink);
if (regexExp && ojb.IsShow) {
listItem.show();
return false;
}
if (regexExp && !ojb.IsShow) {
listItem.hide();
}
if (i === data.length - 1) {
var listItemsDaddy, listItemsDaddyVisibleChild, h4Element;
listItem.show();
listItemsDaddy = listItem.parent();
listItemsDaddyVisibleChild = listItemsDaddy.find('li:visible');
h4Element = $(listItemsDaddy).prev();
if (listItemsDaddyVisibleChild.length !== 0) {
h4Element.show();
} else {
h4Element.hide();
}
}
});
}
});
}
function hideEmptyHeading() {
var headings = $('nav.cbp-hrmenu h4');
$.each(headings, function (i, heading) {
var headingSibling = $(heading).next();
if (headingSibling.length === 0) {
$(heading).hide();
} else {
$(heading).show();
}
});
}
var cbpHorizontalMenu = (function () { var b = $("#cbp-hrmenu > ul > li"), g = b.children("a").filter(function () { return $(this).siblings().length; }); c = $("body"), d = -1; function f() { g.on("click", a); b.on("click", function (h) { h.stopPropagation() }) } function a(j) { if (d !== -1) { b.eq(d).removeClass("cbp-hropen") } var i = $(j.currentTarget).parent("li"), h = i.index(); if (d === h) { i.removeClass("cbp-hropen"); d = -1 } else { i.addClass("cbp-hropen"); d = h; c.off("click").on("click", e); }; hideItems(); hideEmptyHeading(); return false } function e(h) { b.eq(d).removeClass("cbp-hropen"); d = -1 } return { init: f } })();
$(document).ready(function () {
hideItems();
hideEmptyHeading();
});