Commit bdd78b5c authored by supriya kotturu's avatar supriya kotturu
Browse files

changed the list elements which contained <a> tag to buttons with team...

changed the list elements which contained <a> tag to buttons with team numbers. didnt use the FST and OHD arrays declared
parent 7113ae20
Pipeline #13243 passed with stage
in 16 seconds
......@@ -2,9 +2,14 @@ var FST = ['Techtitans','Dynamic-Developers','DestinyShooters','Ajax','ConnectTe
var OHD = ['team-01','team-02','team-03','team-04','team-05','team-06','team-07','team-08','team-09'];
function genLi(){
var ul = document.getElementsByClassName("flex-column pl-2 nav");
for(var i = 1 i <= FST.length; i++){
var li = document.createElement("li");
li.innerHTML = " <a class="nav-link py-0 list-group-item-action" href="FST[i]/index.html" target="_blank">Team i</a>";
for(var i = 00; i <= 29; i++){
//adding the team numbers instead of team names
//for creating buttons with team name:i<=FST.length
var li = document.createElement("li");
//li.innerHTML = " <a class="nav-link py-0 list-group-item-action" href="FST[i] /index.html" target="_blank">Team i</a>"; ------------for anchor tag
li.innerHTML="<button type='button'>team-"+i+"</button>";
// creates a list of buttons with team-no
li.setAttribute("class", "nav-link py-0 list-group-item-action");
ul.appendChild(li);
}
}
\ No newline at end of file
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment