Uncategorized

NCAAB Team – BetUS


NCAAB Team – BetUS li’)); var leagueList = []; navElements.forEach(function(e) { leagueList.push(e); }); moreElements.forEach(function(e) { leagueList.push(e); }); /*leagueList.forEach(function(e) { if (e.querySelector(‘a’).title === “NCAAB”) { */ var spanNode = document.createElement(“SPAN”); var aNode = document.createElement(“A”); aNode.href = “/basketball/ncaab/scores”; aNode.target = “_parent”; aNode.title = “Scores”; aNode.innerHTML = “Scores”; spanNode.appendChild(aNode); navSubMenus[0].appendChild(spanNode); var spanNode = document.createElement(“SPAN”); var aNode = document.createElement(“A”); aNode.href = “/basketball/ncaab/standings”; aNode.target = “_parent”; aNode.title = “Standings”; aNode.innerHTML = “Standings”; spanNode.appendChild(aNode); navSubMenus[0].appendChild(spanNode); var spanNode = document.createElement(“SPAN”); var aNode = document.createElement(“A”); aNode.href = “/basketball/ncaab/stats”; aNode.target = “_parent”; aNode.title = “Statistics”; aNode.innerHTML = “Statistics”; spanNode.appendChild(aNode); navSubMenus[0].appendChild(spanNode); var spanNode = document.createElement(“SPAN”); var aNode = document.createElement(“A”); aNode.href = “/basketball/ncaab/teams”; aNode.target = “_parent”; aNode.title = “Teams”; aNode.innerHTML = “Teams”; spanNode.appendChild(aNode); navSubMenus[0].appendChild(spanNode); var spanNode = document.createElement(“SPAN”); var aNode = document.createElement(“A”); aNode.href = “/basketball/ncaab/players”; aNode.target = “_parent”; aNode.title = “Players”; aNode.innerHTML = “Players”; spanNode.appendChild(aNode); navSubMenus[0].appendChild(spanNode); var spanNode = document.createElement(“SPAN”); var aNode = document.createElement(“A”); aNode.href = “/basketball/ncaab/injuries”; aNode.target = “_parent”; aNode.title = “Injuries”; aNode.innerHTML = “Injuries”; spanNode.appendChild(aNode); navSubMenus[0].appendChild(spanNode); var spanNode = document.createElement(“SPAN”); var aNode = document.createElement(“A”); aNode.href = “/basketball/ncaab/transactions”; aNode.target = “_parent”; aNode.title = “Transactions”; aNode.innerHTML = “Transactions”; spanNode.appendChild(aNode); navSubMenus[0].appendChild(spanNode); var spanNode = document.createElement(“SPAN”); var aNode = document.createElement(“A”); aNode.href = “/basketball/ncaab/drafts”; aNode.target = “_parent”; aNode.title = “Drafts”; aNode.innerHTML = “Drafts”; spanNode.appendChild(aNode); navSubMenus[0].appendChild(spanNode); var spanNode = document.createElement(“SPAN”); var aNode = document.createElement(“A”); aNode.href = “/basketball/ncaab/odds”; aNode.target = “_parent”; aNode.title = “Odds”; aNode.innerHTML = “Odds”; spanNode.appendChild(aNode); navSubMenus[0].appendChild(spanNode); /* } });*/ }()); ]]]]]]]]>]]]]]]>]]]]>]]>

NCAAB

Team

“).addClass(“gn-dropdown”).attr(“id”, “teams”).appendTo($(“#submenus-nav-list”)), a = $(““).addClass(“dropbtn”).attr(“onclick”, “switchTeam()”).text(“Teams”).appendTo(li); var nextDiv = $(“”).addClass(GNS.getTeamContentClassName(leagueName)).attr(“id”, “teamDropdown”).appendTo($(“#submenus-nav-list”)); GNS.getTeamlist(apiUrl, sportId, competitionId, languageCode, leagueName, function (response) { if (response) { if (nextDiv) { nextDiv.append(GNS.print_template(response, GNS.getDivisionClass(leagueName))); } } }); } // Get team data (name, logo) if(!isUsingGnsApi) { GNS.getTeam(apiUrl, sportId, competitionId, teamId, languageCode, leagueName, function(teamData) { if (teamData) { var img = $(““).attr(“alt”, “Logo ” + teamData.teamShortName).attr(“title”, teamData.teamFirstName).attr(“src”, teamData.teamLogoUrl).addClass(“club-logo-small”); $(“#team-logo”).append(img); $(“#team-name”).text(teamData.teamFirstName); } }); } else { GNSAPI.getTeamNameAndLogo(apiUrl, apiKey, teamId, languageCode, TEAM_NAME_DEFAULT, TEAM_NAME_DISPLAY, function(teamData) { if (teamData) { var img = $(““).attr(“alt”, “Logo ” + teamData.teamName).attr(“title”, teamData.teamName).attr(“src”, teamData.teamLogoUrl).addClass(“club-logo-small”); $(“#team-logo”).append(img); $(“#team-name”).text(teamData.teamName); } }); } }); function switchTeam(){ document.getElementById(“teamDropdown”).classList.toggle(“show”); } window.onclick = function (event) { if(!event.target.matches(‘.dropbtn’)){ var dropdowns = [].concat(document.getElementById(“teamDropdown”)); dropdowns.forEach(function(d){ if(d.classList.contains(‘show’)){ d.classList.remove(‘show’); } }); } } ]]]]]]]]>]]]]]]>]]]]>]]>
Source