World Cup 2018 Schedule

return FootballWidget.prototype.changeFixturesLink = function(eventSlug) Widget.prototype.changeFixturesLink.call(this, eventSlug); if (eventSlug == featured) this.widget.querySelector(.keeda_widget_all_fixtures).style.display = none; this.widget.querySelector(.keeda_widget_all_fixtures a).setAttribute(href, /football/schedule); else if (true === true) if (this.widget.querySelector(.keeda_widget_all_fixtures)) this.widget.querySelector(.keeda_widget_all_fixtures).style.display = none; FootballWidget.prototype.fetchAndPopulateData = function(eventSlug, eventName, matchDay) this.selectedEventName = eventName; this.selectedEventSlug = eventSlug; if(!this.isScoreCarousel) this.pointsTable.style.display = none; this.pointsTable.innerHTML = ; this.showTabMenu(matches); if (this.selectedEventSlug == international-football) this.tabLayout.style.display = none; Widget.prototype.fetchAndPopulateData.call(this, eventSlug, eventName, matchDay); FootballWidget.prototype.updateDateStringOnDayChange = function() var date = new Date(); var dateString = date.getDate() + – + (date.getMonth() + 1) + – + date.getFullYear(); if (dateString != this.currentDateString) var dateElements = this.matchListing.getElementsByClassName(keeda_widget_info football) for (var i = 0; i

; var firstParse = true; for (var i = 0; i

; if(skippedMatches === matches.length) matchListingHTML =

a[value] ? 1 : -1; ); data[key] = clippingMechanism (data, key); setTrackingCookie(COOKIE_NAME, JSON.stringify(data)); function trackSport(identifier) track(COOKIE_NAME, sport, identifier); function trackEvent(identifier) track(COOKIE_NAME, event, identifier); function trackTeam(identifier) track(COOKIE_NAME, team, identifier); return getTrackingCookie: getTrackingCookie, setTrackingCookie: setTrackingCookie, trackSport: trackSport, trackEvent: trackEvent, trackTeam: trackTeam ; )(); var hpAlgoCookie = SKTrackingModule.getTrackingCookie(HP_ALGO, null); if (!hpAlgoCookie) var hpAlgoCookieRange = [false, hp_algo_1]; var hpAlgoCookie = hpAlgoCookieRange[Math.floor(Math.random() * hpAlgoCookieRange.length)]; SKTrackingModule.setTrackingCookie(HP_ALGO, hpAlgoCookie);

FootballWidget.prototype.createScoreElement = function(score1, score2, matchStatus) if (matchStatus == live matchStatus == post) return

+ self.createTeamDivElement(teamOneInfo) + self.createTeamDivElement(teamTwoInfo) +

+ self.createTeamDivElement(teamOneInfo) + self.createTeamDivElement(teamTwoInfo) + scoreElement + self.createMatchTimeElement(matches[i].datetimeISO, matchStatus, matches[i].postponed) +

; else var matchDaySlug = matches[i][matchday_slug]; matchDaySlug = matchDaySlug.replace(/[- _]+/g, ); matchDaySlug = matchDaySlug.charAt(0).toUpperCase() + matchDaySlug.slice(1); matchHTML =

= (this.cardSize * (this.cardLength-1) + 110)) this.scrollRightButton.style.display = none; this.scrollLeftButton.style.display = block; else if(scrollAmount == 0) this.scrollLeftButton.style.display = none; this.scrollRightButton.style.display = block; else this.scrollRightButton.style.display = block; this.scrollLeftButton.style.display = block; function scrollTo(element, to, duration) var start = element.scrollLeft, change = to – start, currentTime = 0, increment = 20; var animateScroll = function() currentTime += increment; var val = Math.easeInOutQuad(currentTime, start, change, duration); $(.keeda_widget_match_listing).scrollLeft = val; if(currentTime

; ; FootballWidget.prototype.createWidgetInfo = function(info, matchStatus, datetime, isPostponed) var matchInfo = ; if (matchStatus == live) matchInfo =

; else var scoreElementOne = liveMatchElement.querySelectorAll(.keeda_widget_score.football)[0] var scoreElementTwo = liveMatchElement.querySelectorAll(.keeda_widget_score.football)[1]; scoreElementOne.innerHTML = data.match_localteam_score; scoreElementTwo.innerHTML = data.match_visitorteam_score; var matchId = liveMatchElement.getAttribute(data-match-id); if (!liveMatchElement.querySelector(.keeda_football_match_link).getAttribute(href)) liveMatchElement.querySelector(.keeda_football_match_link).setAttribute(href, /live-football-score/ + matchId); FootballWidget.prototype.loadEventData = function(target) Widget.prototype.loadEventData.call(this, target); ; FootballWidget.prototype.toggleMenu = function() Widget.prototype.toggleMenu.call(this); FootballWidget.prototype.openDropDownMenu = function() Widget.prototype.openDropDownMenu.call(this); FootballWidget.prototype.closeDropDownMenu = function() Widget.prototype.closeDropDownMenu.call(this); FootballWidget.prototype.searchDropDownList = function(event) Widget.prototype.searchDropDownList.call(this, event); FootballWidget.prototype.fetchPointsTable = function(cb) var pointsTableAPI = ntentAPIBase + this.selectedEventSlug + /table; this.getRequest(pointsTableAPI, cb); FootballWidget.prototype.reformatWidgetInfoToLocalTime = function() if(this.isScoreCarousel) return; var widgetElements = this.widget.querySelectorAll(.keeda_football_match_list.pre); for (var i = 0; i

10000) this.rotation = this.unitOfRotation; Widget.prototype.showLoader = function() var self = this; self.loader.style.display = block; self.loaderIntervalId = window.setInterval(function callAnimateSpinners() self.animateSpinners(); , 50); Widget.prototype.hideLoader = function() this.loader.style.display = none; var fixtureElement = $all(.keeda_widget_all_fixtures); for(var i=0; i

+ pointsTable[i].overall_position +

else if (matchStatus == post) matchInfo =

else return ; FootballWidget.prototype.createLeagueTitleElement = function(leagueTitle, leagueSlug) return

; matchListingHTML = matchListingHTML + matchHTML; if(this.isScoreCarousel) this.widget.querySelector(.keeda_widget).style.width = (190 * (matches.length) + 110) + px ; console.log( (190 * (matches.length) + 110)); this.cardLength = matches.length; var nextMatchDaySlug = matchListing.tournament_matches[0].next_matchday_slug; if(nextMatchDaySlug && this.isScoreCarousel) nextMatchDaySlug = nextMatchDaySlug.replace(/[- _]+/g, ); nextMatchDaySlug = nextMatchDaySlug.charAt(0).toUpperCase() + nextMatchDaySlug.slice(1); matchListingHTML +=

= CLIPPING_SIZE) item[value] = CLIPPING_SIZE.toString(); var clipAll = true; else item[value] = item[value].toString(); return value: item, clipAll: clipAll ; function clippingMechanism(data, key) if (data[key].length

+ data.match_status.replace(/(\d+$)/, $1\) +

Our site uses cookies to deliver a better experience. Please click accept to agree with the use of all cookies. You can change thecookie settings here.

containerMetricsRight) document.querySelector(.pn-Advancer_Left).style.display = none; document.querySelector(.pn-Advancer_Right).style.display = inline-block; document.querySelector(.pn-ProductNav).style.maxWidth = 1063 return right; else document.querySelector(.pn-ProductNav).style.maxWidth = 1090 return none;

+ self.createWidgetInfo(info, matchStatus, matches[i].datetimeISO, matches[i].postponed) +

= 12 ? PM : AM; hours = hours % 12; hours = hours ? hours : 12; // the hour 0 should be 12 minutes = minutes

; if (true === true && 1) this.widget.style.width = 702 this.widget.querySelector(.keeda_widget_tab_content.pointstable table).style.width = 661 FootballWidget.prototype.toggleTabMenu = function() if (this.matchContainer.className.match(/active/g)) this.showTabMenu(points); else this.showTabMenu(matches); FootballWidget.prototype.showTabMenu = function(menuType) if (menuType == matches) this.pointsTable.style.display = none; this.matchContainer.style.display = block; this.pointsTable.className = this.pointsTable.className.replace(/active/g, ); this.pointsTab.className = this.pointsTab.className.replace(/selected/g, ); this.matchContainer.className += active; this.matchesTab.className += selected; this.matchDayMenu.style.display = block; else if (menuType == points) this.pointsTable.style.display = block; this.matchContainer.style.display = none; this.matchContainer.className = this.matchContainer.className.replace(/active/g, ); this.matchesTab.className = this.matchesTab.className.replace(/selected/g, ); this.pointsTable.className += active; this.pointsTab.className += selected; this.matchDayMenu.style.display = none; FootballWidget.prototype.populateMatchListing = function(matchListing) Widget.prototype.populateMatchListing.call(this, matchListing); var self = this; var matchListingHTML = ; var prevMatchDaySlug = matchListing.tournament_matches[0].prev_matchday_slug; if(prevMatchDaySlug && this.isScoreCarousel) prevMatchDaySlug = prevMatchDaySlug.replace(/[- _]+/g, ); prevMatchDaySlug = prevMatchDaySlug.charAt(0).toUpperCase() + prevMatchDaySlug.slice(1); matchListingHTML =

else if (matchStatus == pre) var matchTime; if(!this.isScoreCarousel) matchTime = this.getReadableHumanDate(datetime); else matchTime = Starts + this.getReadableHumanDate(datetime) + , + this.formatAMPM(datetime); matchInfo =

contentMetricsLeft && containerMetricsRight

= (this.cardSize * this.cardLength – stCardOffset)) this.scrollLeft = this.cardSize * (this.cardLength-1) + 150; this.scrollRightButton.style.display = none; function onScroll(event) var scrollAmount = this.widget.querySelector(.keeda_widget_match_listing).scrollLeft; $(.keeda_widget_match_listing).scrollLeft = scrollAmount; if( scrollAmount + 1100

; if(!this.isScoreCarousel) if (teamInfo.team == one) return

; if(nextMatchDaySlug && this.isScoreCarousel) matchListingHTML +=

0 ) widgetDropDowns[i].parentElement.style.height = (widgetDropDowns[i].offsetHeight + 80) + else this.closeDropDownMenu(); Widget.prototype.openDropDownMenu = function() if(this.dropDownDisable) return; var targetElement = this.menu; var targetClass = targetElement.className; var matchListingElement = this.widget.getElementsByClassName(keeda_widget_match_listing)[0]; var arrowElement = this.menu.getElementsByClassName(keeda_widget_drop_down_arrow)[0]; targetElement.className = targetElement.className + expanded; arrowElement.className = arrowElement.className + open; // document.getElementsByClassName(keeda_widget_match_listing)[0].style.display = none; this.widget.getElementsByClassName(keeda_widget_drop_down_menu_listing)[0].style.display = block; if(!this.isScoreCarousel) this.widget.getElementsByClassName(keeda_widget_drop_down_menu)[0].style.display = none; this.widget.getElementsByClassName(keeda_widget_search_box)[0].style.display = block; = 27 + this.widget.getElementsByClassName(keeda_widget_header)[0].clientHeight + //focus only on desktop site if(window.screen.availWidth

World Cup 2018 Schedule

0) item = item[0]; var incrementResponse = incrementTrackingLogic(item); item = incrementResponse[value]; if (incrementResponse[clipAll]) data[key].forEach(function(item) item[value] = parseInt(item[value] / 2).toString(); ); else data = initializeJSONDataStructure(data, key, identifier); data[key].sort(function(a, b) return b[value]

= DATASET_SIZE * 2) return data[key].slice(0, DATASET_SIZE); else return data[key]; function track(cname, key, identifier) var data = getTrackingCookie(cname, ); data = JSON.parse(data); if (!data.hasOwnProperty(key)) data = initializeJSONDataStructure(data, key, identifier); else var item = data[key].filter(function(item) return == identifier; ); if (item.length

return matchInfo; FootballWidget.prototype.createMatchTimeElement = function(datetime, matchStatus, isPostponed) if (isPostponed) return

teamTwoInfo[score]) teamOneInfo[bold] = true; else if (teamOneInfo[score]

parseInt(matches[i].vt_agg_score)) teamOneInfo.short_name += *; else if (parseInt(matches[i].lt_agg_score)

768) this.widget.querySelector(.keeda_widget_search_box input).focus(); Widget.prototype.closeDropDownMenu = function() if(this.dropDownDisable) return; this.widget.querySelector(.keeda_widget_search_box input).value = ; var targetElement = this.menu; var targetClass = targetElement.className; var matchListingElement = this.widget.getElementsByClassName(keeda_widget_match_listing)[0]; var arrowElement = this.menu.getElementsByClassName(keeda_widget_drop_down_arrow)[0]; targetElement.className = targetElement.className.replace( expanded, ); arrowElement.className = arrowElement.className.replace( open, ); // document.getElementsByClassName(keeda_widget_match_listing)[0].style.display = block; this.widget.getElementsByClassName(keeda_widget_search_box)[0].style.display = none; if(!this.isScoreCarousel) this.widget.getElementsByClassName(keeda_widget_drop_down_menu)[0].style.display = block; else this.widget.getElementsByClassName(keeda_widget_drop_down_menu)[0].style.display = inline-block; this.widget.getElementsByClassName(keeda_widget_drop_down_menu_listing)[0].style.display = none; this.widget.getElementsByClassName(keeda_widget_drop_down_menu_listing)[0].parentElement.style.height = unset; Widget.prototype.searchDropDownList = function(event) var searchString = event.target.value; var dropDownElements = this.dropDownListing.getElementsByClassName(keeda_widget_drop_down_menu_list); var activeElementHTML = this.widget.getElementsByClassName(keeda_widget_menu_title)[0].innerHTML; for (var i = 0; i

; this.matchListing.innerHTML = matchListingHTML; this.initInitialScroll(); this.updateLiveScoresAndPreLiveScores(); this.reformatWidgetInfoToLocalTime(); else this.hideLoader(); this.matchListing.innerHTML = No matches found; FootballWidget.prototype.showLeagueMenuItems = function(matchDayString) this.leagueMenuItems.style.display = block; this.leagueMenuItems.querySelector(.keeda_football_match_day_text).innerHTML = matchDayString; FootballWidget.prototype.hideLeagueMenuItems = function(matchDayString) this.leagueMenuItems.style.display = none; FootballWidget.prototype.createTeamDivElement = function(teamInfo) var teamShortName = teamInfo.short_name; if (teamInfo.bold == true) teamShortName =

if(!this.isScoreCarousel) if (this.selectedEventSlug != featured && matchListing.tournament_matches) this.currentMatchDay = matchListing.tournament_matches[0].matchday_slug; this.showLeagueMenuItems(matchListing.tournament_matches[0].matchday); if (matchListing.tournament_matches[0].prev_matchday_slug) this.previousMatchDay = matchListing.tournament_matches[0].prev_matchday_slug; this.widget.querySelector(.keeda_football_previous_match_day).style.display = inline-block; else this.widget.querySelector(.keeda_football_previous_match_day).style.display = none; if (matchListing.tournament_matches[0].next_matchday_slug) this.nextMatchDay = matchListing.tournament_matches[0].next_matchday_slug; this.widget.querySelector(.keeda_football_next_match_day).style.display = inline-block; else this.widget.querySelector(.keeda_football_next_match_day).style.display = none; if (matchListing.tournament_matches[0].has_table === false) this.tabLayout.style.display = none; else this.tabLayout.style.display = block; else this.currentMatchDay = ; this.hideLeagueMenuItems(); this.previousMatchDay = ; this.nextMatchDay = ; if (matchListing.tournament_matches) var tournaments = matchListing.tournament_matches; for (var j = 0; j

else if (currentMatchStatus == post) liveMatchElement.querySelector(.keeda_widget_info.football).innerHTML = data.match_status; if(!this.isScoreCarousel) var scoreElement = liveMatchElement.querySelector(.keeda_widget_score.football); if (scoreElement) scoreElement.innerHTML = score; else var teamGroupElement = liveMatchElement.querySelector(.keeda_widget_team_group); teamGroupElement.innerHTML = teamGroupElement.innerHTML +

+ // self.createResultInfo(matchStatus, matches[i][in_play], matches[i][status]) + self.createWidgetInfo(info, matchStatus, matches[i].datetimeISO, matches[i].postponed) +

Be the first to comment

Leave a Reply