remove unused debug output

This commit is contained in:
Sören Oesterwind 2022-03-28 22:12:04 +02:00
parent 104c52b575
commit 7e8f3f902a

View File

@ -11,7 +11,7 @@ function convertColorSegments(elementId) {
if (raw.children[elm].nodeName == "TR") { if (raw.children[elm].nodeName == "TR") {
const child = raw.children[elm].children[1].children[0] const child = raw.children[elm].children[1].children[0]
let timeVal = parseInt(raw.children[elm].children[0].children[0].value * 1000); let timeVal = parseInt(raw.children[elm].children[0].children[0].value * 1000);
if(Number.isInteger(timeVal)){ if (Number.isInteger(timeVal)) {
segmentData[timeVal] = child.style.color segmentData[timeVal] = child.style.color
} else { } else {
segmentData["START"] = child.style.color segmentData["START"] = child.style.color
@ -129,8 +129,8 @@ $(function () {
temp = temp.replace("#bg-COLOR#", jsonResult.colorSegments[item]); temp = temp.replace("#bg-COLOR#", jsonResult.colorSegments[item]);
temp = temp.replace("timeValue-ID", "timeValue-1C" + currIndex) temp = temp.replace("timeValue-ID", "timeValue-1C" + currIndex)
if(item != "START"){ if (item != "START") {
temp = temp.replace("#VALUE#", item/1000); temp = temp.replace("#VALUE#", item / 1000);
tableEntryDom.innerHTML = temp; tableEntryDom.innerHTML = temp;
tableEntryDom.firstChild.nextSibling.children[0].classList.add("timeDurPicker") tableEntryDom.firstChild.nextSibling.children[0].classList.add("timeDurPicker")
} else { } else {
@ -158,8 +158,8 @@ $(function () {
temp = temp.replace("#bg-COLOR#", jsonResult.textColors[item]); temp = temp.replace("#bg-COLOR#", jsonResult.textColors[item]);
temp = temp.replace("timeValue-ID", "timeValue-1C" + currIndex) temp = temp.replace("timeValue-ID", "timeValue-1C" + currIndex)
if(item != "START"){ if (item != "START") {
temp = temp.replace("#VALUE#", item/1000); temp = temp.replace("#VALUE#", item / 1000);
tableEntryDom.innerHTML = temp; tableEntryDom.innerHTML = temp;
tableEntryDom.firstChild.nextSibling.children[0].classList.add("timeDurPicker") tableEntryDom.firstChild.nextSibling.children[0].classList.add("timeDurPicker")
} else { } else {
@ -199,7 +199,7 @@ $(function () {
$(".deleteRow1").on("click", function removeRowEntry(event) { $(".deleteRow1").on("click", function removeRowEntry(event) {
$(event.target).closest("tr").remove(); $(event.target).closest("tr").remove();
}); });
$('[data-toggle="tooltip"]').tooltip({container: "body"}) $('[data-toggle="tooltip"]').tooltip({ container: "body" })
}) })
$("#copyColors").click(function CopyTextColors(event) { $("#copyColors").click(function CopyTextColors(event) {
@ -228,7 +228,7 @@ $(function () {
// Presets // Presets
$(".pres").click(function (event) { $(".pres").click(function (event) {
currentTime = parseInt(event.currentTarget.value) currentTime = parseInt(event.currentTarget.value)
$("#customValue").data("durationPicker").setValue(currentTime/1000) $("#customValue").data("durationPicker").setValue(currentTime / 1000)
}) })
@ -476,7 +476,7 @@ $(function () {
dateFormat: "H:i d.m.Y", dateFormat: "H:i d.m.Y",
}); });
$(".goTimeGoalCountdown").on("click", function handleCountdownToTime(){ $(".goTimeGoalCountdown").on("click", function handleCountdownToTime() {
const selectTime = flatty.selectedDates[0].getTime() const selectTime = flatty.selectedDates[0].getTime()
const timeDiff = selectTime - new Date().getTime() const timeDiff = selectTime - new Date().getTime()
$(".goTimeGoalCountdown")[0].innerHTML = '<div class="spinner-border-sm spinner-border"></div>' $(".goTimeGoalCountdown")[0].innerHTML = '<div class="spinner-border-sm spinner-border"></div>'
@ -485,7 +485,6 @@ $(function () {
$(".goTimeGoalCountdown")[0].innerHTML = '<i class="bi bi-check2-circle"></i>' $(".goTimeGoalCountdown")[0].innerHTML = '<i class="bi bi-check2-circle"></i>'
}, 200); }, 200);
}) })
console.log( timeDiff)
}) })
}); });
@ -509,22 +508,22 @@ function openNav() {
document.getElementById("navbarToggleExternalContent").style.zIndex = 999999; document.getElementById("navbarToggleExternalContent").style.zIndex = 999999;
document.getElementById("pageCont").style.marginLeft = "0px"; document.getElementById("pageCont").style.marginLeft = "0px";
navStatus = true navStatus = true
} }
function closeNav() { function closeNav() {
document.getElementById("navbarToggleExternalContent").style.width = "0px"; document.getElementById("navbarToggleExternalContent").style.width = "0px";
document.getElementById("navbarToggleExternalContent").style.opacity = "0"; document.getElementById("navbarToggleExternalContent").style.opacity = "0";
document.getElementById("navbarToggleExternalContent").style.display = "none"; document.getElementById("navbarToggleExternalContent").style.display = "none";
document.getElementById("navbarToggleExternalContent").style.zIndex = -999999; document.getElementById("navbarToggleExternalContent").style.zIndex = -999999;
document.getElementById("pageCont").style.marginLeft = "0"; document.getElementById("pageCont").style.marginLeft = "0";
navStatus = false navStatus = false
} }
function toogleNav(){ function toogleNav() {
if(navStatus){ if (navStatus) {
closeNav() closeNav()
}else{ } else {
openNav() openNav()
} }
} }