menu.js 5.41 KB
const menu_all_wide = document.getElementById('menu_alldata_wide');
const menu_analysis_wide = document.getElementById('div_con1');
const menu_all_nwide = document.getElementsByClassName('menu_alldata_nwide')[0];
const menu_analysis_nwide = document.getElementsByClassName('menu_analysis_nwide')[0];

const menu_analysis_menu1_wide = document.getElementById('menu_analysis_menu1_wide');
const menu_analysis_menu1_nwide = document.getElementsByClassName('menu_analysis_menu1_nwide')[0];
const menu_analysis_menu2_wide = document.getElementById('menu_analysis_menu2_wide');
const menu_analysis_menu2_nwide = document.getElementsByClassName('menu_analysis_menu2_nwide')[0];
const menu_analysis_menu3_wide = document.getElementById('menu_analysis_menu3_wide');
const menu_analysis_menu3_nwide = document.getElementsByClassName('menu_analysis_menu3_nwide')[0];
const menu_analysis_menu4_wide = document.getElementById('menu_analysis_menu4_wide');
const menu_analysis_menu4_nwide = document.getElementsByClassName('menu_analysis_menu4_nwide')[0];
const menu_analysis_menu5_wide = document.getElementById('menu_analysis_menu5_wide');
const menu_analysis_menu5_nwide = document.getElementsByClassName('menu_analysis_menu5_nwide')[0];
const menu_analysis_menu6_wide = document.getElementById('menu_analysis_menu6_wide');
const menu_analysis_menu6_nwide = document.getElementsByClassName('menu_analysis_menu6_nwide')[0];

function menu_all(){
	menu_all_wide.style="display:inline";
	menu_analysis_wide.style="display:none";
	menu_all_nwide.style="color:#4e73df";
	menu_analysis_nwide.style="color:#5a5c69";
}

function menu_analysis(){
	menu_all_wide.style="display:none";
	menu_analysis_wide.style="display:inline";
	menu_all_nwide.style="color:#5a5c69";
	menu_analysis_nwide.style="color:#4e73df";
}

function menu_analysis_menu1(){
	menu_analysis_menu1_wide.style="display:inline";
	menu_analysis_menu1_nwide.style="color:#4e73df";
	menu_analysis_menu2_wide.style="display:none";
	menu_analysis_menu2_nwide.style="color:#5a5c69";
	menu_analysis_menu3_wide.style="display:none";
	menu_analysis_menu3_nwide.style="color:#5a5c69";
	menu_analysis_menu4_wide.style="display:none";
	menu_analysis_menu4_nwide.style="color:#5a5c69";
	menu_analysis_menu5_wide.style="display:none";
	menu_analysis_menu5_nwide.style="color:#5a5c69";
	menu_analysis_menu6_wide.style="display:none";
	menu_analysis_menu6_nwide.style="color:#5a5c69";
}

function menu_analysis_menu2(){
	menu_analysis_menu1_wide.style="display:none";
	menu_analysis_menu1_nwide.style="color:#5a5c69";
	menu_analysis_menu2_wide.style="display:inline";
	menu_analysis_menu2_nwide.style="color:#4e73df";
	menu_analysis_menu3_wide.style="display:none";
	menu_analysis_menu3_nwide.style="color:#5a5c69";
	menu_analysis_menu4_wide.style="display:none";
	menu_analysis_menu4_nwide.style="color:#5a5c69";
	menu_analysis_menu5_wide.style="display:none";
	menu_analysis_menu5_nwide.style="color:#5a5c69";
	menu_analysis_menu6_wide.style="display:none";
	menu_analysis_menu6_nwide.style="color:#5a5c69";
}

function menu_analysis_menu3(){
	menu_analysis_menu1_wide.style="display:none";
	menu_analysis_menu1_nwide.style="color:#5a5c69";
	menu_analysis_menu2_wide.style="display:none";
	menu_analysis_menu2_nwide.style="color:#5a5c69";
	menu_analysis_menu3_wide.style="display:inline";
	menu_analysis_menu3_nwide.style="color:#4e73df";
	menu_analysis_menu4_wide.style="display:none";
	menu_analysis_menu4_nwide.style="color:#5a5c69";
	menu_analysis_menu5_wide.style="display:none";
	menu_analysis_menu5_nwide.style="color:#5a5c69";
	menu_analysis_menu6_wide.style="display:none";
	menu_analysis_menu6_nwide.style="color:#5a5c69";
}

function menu_analysis_menu4(){
	menu_analysis_menu1_wide.style="display:none";
	menu_analysis_menu1_nwide.style="color:#5a5c69";
	menu_analysis_menu2_wide.style="display:none";
	menu_analysis_menu2_nwide.style="color:#5a5c69";
	menu_analysis_menu3_wide.style="display:none";
	menu_analysis_menu3_nwide.style="color:#5a5c69";
	menu_analysis_menu4_wide.style="display:inline";
	menu_analysis_menu4_nwide.style="color:#4e73df";
	menu_analysis_menu5_wide.style="display:none";
	menu_analysis_menu5_nwide.style="color:#5a5c69";
	menu_analysis_menu6_wide.style="display:none";
	menu_analysis_menu6_nwide.style="color:#5a5c69";
}

function menu_analysis_menu5(){
	menu_analysis_menu1_wide.style="display:none";
	menu_analysis_menu1_nwide.style="color:#5a5c69";
	menu_analysis_menu2_wide.style="display:none";
	menu_analysis_menu2_nwide.style="color:#5a5c69";
	menu_analysis_menu3_wide.style="display:none";
	menu_analysis_menu3_nwide.style="color:#5a5c69";
	menu_analysis_menu4_wide.style="display:none";
	menu_analysis_menu4_nwide.style="color:#5a5c69";
	menu_analysis_menu5_wide.style="display:inline";
	menu_analysis_menu5_nwide.style="color:#4e73df";
	menu_analysis_menu6_wide.style="display:none";
	menu_analysis_menu6_nwide.style="color:#5a5c69";
}

function menu_analysis_menu6(){
	menu_analysis_menu1_wide.style="display:none";
	menu_analysis_menu1_nwide.style="color:#5a5c69";
	menu_analysis_menu2_wide.style="display:none";
	menu_analysis_menu2_nwide.style="color:#5a5c69";
	menu_analysis_menu3_wide.style="display:none";
	menu_analysis_menu3_nwide.style="color:#5a5c69";
	menu_analysis_menu4_wide.style="display:none";
	menu_analysis_menu4_nwide.style="color:#5a5c69";
	menu_analysis_menu5_wide.style="display:none";
	menu_analysis_menu5_nwide.style="color:#5a5c69";
	menu_analysis_menu6_wide.style="display:inline";
	menu_analysis_menu6_nwide.style="color:#4e73df";
}