A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
`; let titles=[]; for(let i=0; i
${title[i]}
`; container1.insertAdjacentHTML('beforeend',html); } else if((title[i].charAt(0).toUpperCase())=='A'){ let html=`${title[i]}
`; container2.insertAdjacentHTML('afterend',html); } else if((title[i].charAt(0).toUpperCase())=='B'){ // console.log(b.sort()) let html=`${title[i]}
`; container3.insertAdjacentHTML('afterend',html); } else if((title[i].charAt(0).toUpperCase())=='C'){ let html=`${title[i]}
`; container4.insertAdjacentHTML('afterend',html); } else if((title[i].charAt(0).toUpperCase())=='D'){ let html=`${title[i]}
`; container5.insertAdjacentHTML('afterend',html); } else if((title[i].charAt(0).toUpperCase())=='E'){ let html=`${title[i]}
`; container6.insertAdjacentHTML('afterend',html); } else if((title[i].charAt(0).toUpperCase())=='F'){ let html=`${title[i]}
`; container7.insertAdjacentHTML('afterend',html); } else if((title[i].charAt(0).toUpperCase())=='G'){ let html=`${title[i]}
`; container8.insertAdjacentHTML('afterend',html); } else if((title[i].charAt(0).toUpperCase())=='H'){ let html=`${title[i]}
`; container9.insertAdjacentHTML('afterend',html); } else if((title[i].charAt(0).toUpperCase())=='I'){ let html=`${title[i]}
`; container10.insertAdjacentHTML('afterend',html); } else if((title[i].charAt(0).toUpperCase())=='J'){ let html=`${title[i]}
`; container11.insertAdjacentHTML('afterend',html); } else if((title[i].charAt(0).toUpperCase())=='K'){ let html=`${title[i]}
`; container12.insertAdjacentHTML('afterend',html); } else if((title[i].charAt(0).toUpperCase())=='L'){ let html=`${title[i]}
`; container13.insertAdjacentHTML('afterend',html); } else if((title[i].charAt(0).toUpperCase())=='M'){ let html=`${title[i]}
`; container14.insertAdjacentHTML('afterend',html); } else if((title[i].charAt(0).toUpperCase())=='N'){ let html=`${title[i]}
`; container15.insertAdjacentHTML('afterend',html); } else if((title[i].charAt(0).toUpperCase())=='O'){ let html=`${title[i]}
`; container16.insertAdjacentHTML('afterend',html); } else if((title[i].charAt(0).toUpperCase())=='P'){ let html=`${title[i]}
`; container17.insertAdjacentHTML('afterend',html); } else if((title[i].charAt(0).toUpperCase())=='Q'){ let html=`${title[i]}
`; container18.insertAdjacentHTML('afterend',html); } else if((title[i].charAt(0).toUpperCase())=='R'){ let html=`${title[i]}
`; container19.insertAdjacentHTML('afterend',html); } else if((title[i].charAt(0).toUpperCase())=='S'){ let html=`${title[i]}
`; container20.insertAdjacentHTML('afterend',html); } else if((title[i].charAt(0).toUpperCase())=='T'){ let html=`${title[i]}
`; container21.insertAdjacentHTML('afterend',html); } else if((title[i].charAt(0).toUpperCase())=='U'){ let html=`${title[i]}
`; container22.insertAdjacentHTML('afterend',html); } else if((title[i].charAt(0).toUpperCase())=='V'){ let html=`${title[i]}
`; container23.insertAdjacentHTML('afterend',html); } else if((title[i].charAt(0).toUpperCase())=='W'){ let html=`${title[i]}
`; container24.insertAdjacentHTML('afterend',html); } else if((title[i].charAt(0).toUpperCase())=='X'){ let html=`${title[i]}
`; container25.insertAdjacentHTML('afterend',html); } else if((title[i].charAt(0).toUpperCase())=='Y'){ let html=`${title[i]}
`; container26.insertAdjacentHTML('afterend',html); } else if((title[i].charAt(0).toUpperCase())=='Z'){ let html=`${title[i]}
`; container27.insertAdjacentHTML('afterend',html); }else{ let html=`${title[i]}
`; container1.insertAdjacentHTML('beforeend',html); } } } opt(optimalTitle); function changeOpt(){ var x = document.getElementById("gameTypes").selectedIndex; const y=document.getElementById("gameTypes").options[x].selected = true; const val =document.getElementsByTagName("option")[x].value; console.log(val) if(val == "optimal"){ document.getElementById("topTitle").innerHTML=gameData.optimal.mainTitle; document.getElementById("subTitle").innerHTML = gameData.optimal.subTitle; opt(optimalTitle); } else if(val == "photo"){ document.getElementById("topTitle").innerHTML=gameData.photo.mainTitle; document.getElementById("subTitle").innerHTML = gameData.photo.subTitle; opt(photoTitle); } else if(val == "freestyle"){ document.getElementById("topTitle").innerHTML=gameData.freeStyle.mainTitle; document.getElementById("subTitle").innerHTML = gameData.freeStyle.subTitle; opt(freestyleTitle); } else if(val == "highlights"){ document.getElementById("topTitle").innerHTML=gameData.highLights.mainTitle; document.getElementById("subTitle").innerHTML = gameData.highLights.subTitle; let html1 =`A
B
C
D
E
F
R
S
T
W
X
${highLight[i]}
`; contain1.insertAdjacentHTML('afterend',html); } else if((highLight[i].charAt(0))=='A'){ let html=`${highLight[i]}
`; contain2.insertAdjacentHTML('afterend',html); } else if((highLight[i].charAt(0))=='B'){ // console.log(b.sort()) let html=`${highLight[i]}
`; contain3.insertAdjacentHTML('afterend',html); } else if((highLight[i].charAt(0))=='C'){ let html=`${highLight[i]}
`; contain4.insertAdjacentHTML('afterend',html); } else if((highLight[i].charAt(0))=='D'){ let html=`${highLight[i]}
`; contain5.insertAdjacentHTML('afterend',html); } else if((highLight[i].charAt(0))=='E'){ let html=`${highLight[i]}
`; contain6.insertAdjacentHTML('afterend',html); } else if((highLight[i].charAt(0))=='F'){ let html=`${highLight[i]}
`; contain7.insertAdjacentHTML('afterend',html); } else if((highLight[i].charAt(0))=='G'){ let html=`${highLight[i]}
`; contain8.insertAdjacentHTML('afterend',html); } else if((highLight[i].charAt(0))=='H'){ let html=`${highLight[i]}
`; contain9.insertAdjacentHTML('afterend',html); } else if((highLight[i].charAt(0))=='I'){ let html=`${highLight[i]}
`; contain10.insertAdjacentHTML('afterend',html); } else if((highLight[i].charAt(0))=='J'){ let html=`${highLight[i]}
`; contain11.insertAdjacentHTML('afterend',html); } else if((highLight[i].charAt(0))=='K'){ let html=`${highLight[i]}
`; contain12.insertAdjacentHTML('afterend',html); } else if((highLight[i].charAt(0))=='L'){ let html=`${highLight[i]}
`; contain13.insertAdjacentHTML('afterend',html); } else if((highLight[i].charAt(0))=='M'){ let html=`${highLight[i]}
`; contain14.insertAdjacentHTML('afterend',html); } else if((highLight[i].charAt(0))=='N'){ let html=`${highLight[i]}
`; contain15.insertAdjacentHTML('afterend',html); } // else if((highLight[i].charAt(0))=='O'){ // let html=` //${highLight[i]}
`; // contain16.insertAdjacentHTML('afterend',html); // } else if((highLight[i].charAt(0))=='P'){ let html=`${highLight[i]}
`; contain17.insertAdjacentHTML('afterend',html); } // else if((highLight[i].charAt(0))=='Q'){ // let html=` //${highLight[i]}
`; // contain18.insertAdjacentHTML('afterend',html); // } else if((highLight[i].charAt(0))=='R'){ let html=`${highLight[i]}
`; contain19.insertAdjacentHTML('afterend',html); } else if((highLight[i].charAt(0))=='S'){ let html=`${highLight[i]}
`; contain20.insertAdjacentHTML('afterend',html); } else if((highLight[i].charAt(0))=='T'){ let html=`${highLight[i]}
`; contain21.insertAdjacentHTML('afterend',html); } // else if((highLight[i].charAt(0))=='U'){ // let html=` //${highLight[i]}
`; // contain22.insertAdjacentHTML('afterend',html); // } // else if((highLight[i].charAt(0))=='V'){ // let html=` //${highLight[i]}
`; // contain23.insertAdjacentHTML('afterend',html); // } else if((highLight[i].charAt(0))=='W'){ let html=`${highLight[i]}
`; contain24.insertAdjacentHTML('afterend',html); } else if((highLight[i].charAt(0))=='X'){ let html=`${highLight[i]}
`; contain25.insertAdjacentHTML('afterend',html); } // else if((highLight[i].charAt(0))=='Y'){ // let html=` //${highLight[i]}
`; // contain26.insertAdjacentHTML('afterend',html); // } // else if((highLight[i].charAt(0))=='Z'){ // let html=` //${highLight[i]}
`; // contain27.insertAdjacentHTML('afterend',html); // } } } else if(val == "optimal-application-settings"){ const appSettings =appsettingTitle.sort(); document.getElementById("topTitle").innerHTML=gameData.appSetting.mainTitle; document.getElementById("subTitle").innerHTML = gameData.appSetting.subTitle; let html2 =`A
C
D
F
K
M
O
R
S
T
V
${appSettings[i]}
`; contain1.insertAdjacentHTML('afterend',html); } else if((appSettings[i].charAt(0))=='A'){ let html=`${appSettings[i]}
`; contain2.insertAdjacentHTML('afterend',html); } // else if((highLight[i].charAt(0))=='B'){ // // console.log(b.sort()) // let html=` //${highLight[i]}
`; // contain3.insertAdjacentHTML('afterend',html); // } else if((appSettings[i].charAt(0))=='C'){ let html=`${appSettings[i]}
`; contain4.insertAdjacentHTML('afterend',html); } else if((appSettings[i].charAt(0))=='D'){ let html=`${appSettings[i]}
`; contain5.insertAdjacentHTML('afterend',html); } // else if((highLight[i].charAt(0))=='E'){ // let html=` //${highLight[i]}
`; // contain6.insertAdjacentHTML('afterend',html); // } else if((appSettings[i].charAt(0))=='F'){ let html=`${appSettings[i]}
`; contain7.insertAdjacentHTML('afterend',html); } // else if((highLight[i].charAt(0))=='G'){ // let html=` //${highLight[i]}
`; // contain8.insertAdjacentHTML('afterend',html); // } // else if((highLight[i].charAt(0))=='H'){ // let html=` //${highLight[i]}
`; // contain9.insertAdjacentHTML('afterend',html); // } // else if((highLight[i].charAt(0))=='I'){ // let html=` //${highLight[i]}
`; // contain10.insertAdjacentHTML('afterend',html); // } // else if((highLight[i].charAt(0))=='J'){ // let html=` //${highLight[i]}
`; // contain11.insertAdjacentHTML('afterend',html); // } else if((appSettings[i].charAt(0))=='K'){ let html=`${appSettings[i]}
`; contain12.insertAdjacentHTML('afterend',html); } // else if((highLight[i].charAt(0))=='L'){ // let html=` //${highLight[i]}
`; // contain13.insertAdjacentHTML('afterend',html); // } else if((appSettings[i].charAt(0))=='M'){ let html=`${appSettings[i]}
`; contain14.insertAdjacentHTML('afterend',html); } else if((appSettings[i].charAt(0))=='N'){ let html=`${appSettings[i]}
`; contain15.insertAdjacentHTML('afterend',html); } else if((appSettings[i].charAt(0))=='O'){ let html=`${appSettings[i]}
`; contain16.insertAdjacentHTML('afterend',html); } else if((appSettings[i].charAt(0))=='P'){ let html=`${appSettings[i]}
`; contain17.insertAdjacentHTML('afterend',html); } // else if((highLight[i].charAt(0))=='Q'){ // let html=` //${highLight[i]}
`; // contain18.insertAdjacentHTML('afterend',html); // } else if((appSettings[i].charAt(0))=='R'){ let html=`${appSettings[i]}
`; contain19.insertAdjacentHTML('afterend',html); } else if((appSettings[i].charAt(0))=='S'){ let html=`${appSettings[i]}
`; contain20.insertAdjacentHTML('afterend',html); } else if((appSettings[i].charAt(0))=='T'){ let html=`${appSettings[i]}
`; contain21.insertAdjacentHTML('afterend',html); } // else if((highLight[i].charAt(0))=='U'){ // let html=` //${highLight[i]}
`; // contain22.insertAdjacentHTML('afterend',html); // } else if((appSettings[i].charAt(0))=='V'){ let html=`${appSettings[i]}
`; contain23.insertAdjacentHTML('afterend',html); } // else if((highLight[i].charAt(0))=='W'){ // let html=` //${highLight[i]}
`; // contain24.insertAdjacentHTML('afterend',html); // } // else if((highLight[i].charAt(0))=='X'){ // let html=` //${highLight[i]}
`; // contain25.insertAdjacentHTML('afterend',html); // } // else if((highLight[i].charAt(0))=='Y'){ // let html=` //${highLight[i]}
`; // contain26.insertAdjacentHTML('afterend',html); // } // else if((highLight[i].charAt(0))=='Z'){ // let html=` //${highLight[i]}
`; // contain27.insertAdjacentHTML('afterend',html); } } }