Gregory Charles
Gregory Charles #GregoryCharles
‘; if (displayText != “Live”) { output = ‘
‘ + displayText + ‘
‘; } widgetDiv.querySelector(“.matchTimer”).innerHTML = output; widgetDiv.querySelector(“.matchInfo”).innerHTML = ‘Scorecard’; } function matchUpcomingCountDown(matchTime, outputDiv) { var currentdate = new Date(); var datetime = “Last Sync: ” + currentdate.getDate() + “/” + (currentdate.getMonth() + 1) + “/” + currentdate.getFullYear() + ” @ ” + currentdate.getHours() + “:” + currentdate.getMinutes() + “:” + currentdate.getSeconds(); timeLeft = get_timeleft(matchTime, currentdate); timeLeftArr = timeLeft.split(“:”); var widgetDiv = document.querySelector(“#” + outputDiv); widgetDiv.querySelector(“.matchDayLeft”).innerHTML = “” + timeLeftArr[0] + “”; widgetDiv.querySelector(“.matchHourLeft”).innerHTML = “” + timeLeftArr[1] + “”; widgetDiv.querySelector(“.matchMinLeft”).innerHTML = “” + timeLeftArr[2] + “”; } function loadUpcomingTimer() { matchTime = “Thu Jan 01 1970 05:30:00 GMT+0530 (IST)”; matchUpcomingCountDown(matchTime, “upcomingTimer” ); console.log(“loadUpcomingTimer”); } loadUpcomingTimer(); // setInterval(loadUpcomingTimer, 30000); var myIndex = 0; // flip(); function flip() { var i; var x = document.getElementsByClassName(“mySlides”); for (i = 0; i x.length) { myIndex = 1 } x[myIndex – 1].style.display = “block”; setTimeout(flip, 5000); // Change image every 2 seconds }