remove unused debug output
This commit is contained in:
parent
104c52b575
commit
7e8f3f902a
@ -11,7 +11,7 @@ function convertColorSegments(elementId) {
|
||||
if (raw.children[elm].nodeName == "TR") {
|
||||
const child = raw.children[elm].children[1].children[0]
|
||||
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
|
||||
} else {
|
||||
segmentData["START"] = child.style.color
|
||||
@ -129,8 +129,8 @@ $(function () {
|
||||
temp = temp.replace("#bg-COLOR#", jsonResult.colorSegments[item]);
|
||||
temp = temp.replace("timeValue-ID", "timeValue-1C" + currIndex)
|
||||
|
||||
if(item != "START"){
|
||||
temp = temp.replace("#VALUE#", item/1000);
|
||||
if (item != "START") {
|
||||
temp = temp.replace("#VALUE#", item / 1000);
|
||||
tableEntryDom.innerHTML = temp;
|
||||
tableEntryDom.firstChild.nextSibling.children[0].classList.add("timeDurPicker")
|
||||
} else {
|
||||
@ -158,8 +158,8 @@ $(function () {
|
||||
temp = temp.replace("#bg-COLOR#", jsonResult.textColors[item]);
|
||||
temp = temp.replace("timeValue-ID", "timeValue-1C" + currIndex)
|
||||
|
||||
if(item != "START"){
|
||||
temp = temp.replace("#VALUE#", item/1000);
|
||||
if (item != "START") {
|
||||
temp = temp.replace("#VALUE#", item / 1000);
|
||||
tableEntryDom.innerHTML = temp;
|
||||
tableEntryDom.firstChild.nextSibling.children[0].classList.add("timeDurPicker")
|
||||
} else {
|
||||
@ -199,7 +199,7 @@ $(function () {
|
||||
$(".deleteRow1").on("click", function removeRowEntry(event) {
|
||||
$(event.target).closest("tr").remove();
|
||||
});
|
||||
$('[data-toggle="tooltip"]').tooltip({container: "body"})
|
||||
$('[data-toggle="tooltip"]').tooltip({ container: "body" })
|
||||
})
|
||||
|
||||
$("#copyColors").click(function CopyTextColors(event) {
|
||||
@ -228,7 +228,7 @@ $(function () {
|
||||
// Presets
|
||||
$(".pres").click(function (event) {
|
||||
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",
|
||||
});
|
||||
|
||||
$(".goTimeGoalCountdown").on("click", function handleCountdownToTime(){
|
||||
$(".goTimeGoalCountdown").on("click", function handleCountdownToTime() {
|
||||
const selectTime = flatty.selectedDates[0].getTime()
|
||||
const timeDiff = selectTime - new Date().getTime()
|
||||
$(".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>'
|
||||
}, 200);
|
||||
})
|
||||
console.log( timeDiff)
|
||||
})
|
||||
});
|
||||
|
||||
@ -509,22 +508,22 @@ function openNav() {
|
||||
document.getElementById("navbarToggleExternalContent").style.zIndex = 999999;
|
||||
document.getElementById("pageCont").style.marginLeft = "0px";
|
||||
navStatus = true
|
||||
}
|
||||
}
|
||||
|
||||
function closeNav() {
|
||||
function closeNav() {
|
||||
document.getElementById("navbarToggleExternalContent").style.width = "0px";
|
||||
document.getElementById("navbarToggleExternalContent").style.opacity = "0";
|
||||
document.getElementById("navbarToggleExternalContent").style.display = "none";
|
||||
document.getElementById("navbarToggleExternalContent").style.zIndex = -999999;
|
||||
document.getElementById("pageCont").style.marginLeft = "0";
|
||||
navStatus = false
|
||||
}
|
||||
}
|
||||
|
||||
function toogleNav(){
|
||||
if(navStatus){
|
||||
function toogleNav() {
|
||||
if (navStatus) {
|
||||
closeNav()
|
||||
}else{
|
||||
} else {
|
||||
openNav()
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user