|
|
|
@ -47,21 +47,33 @@
|
|
|
|
if (widgetPriceElements && widgetPriceElements.length > 0) {
|
|
|
|
if (widgetPriceElements && widgetPriceElements.length > 0) {
|
|
|
|
widgetPriceElements[0].textContent = HUFFormatter.format(productToAuctionDto.currentPrice); // Update the price
|
|
|
|
widgetPriceElements[0].textContent = HUFFormatter.format(productToAuctionDto.currentPrice); // Update the price
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let myDate = auctionDto.startDateUtc;
|
|
|
|
|
|
|
|
console.log("dates: " + myDate);
|
|
|
|
|
|
|
|
let fixedDate = new Date(myDate + 'Z');
|
|
|
|
|
|
|
|
console.log("dates: " + myDate + ", " + fixedDate);
|
|
|
|
|
|
|
|
let resultDate = new Date(fixedDate);
|
|
|
|
|
|
|
|
console.log("dates: " + myDate + ", " + fixedDate + ", " + resultDate);
|
|
|
|
|
|
|
|
|
|
|
|
// Add a new div as the first child
|
|
|
|
// Add a new div as the first child
|
|
|
|
if (isActive) {
|
|
|
|
if (isActive) {
|
|
|
|
console.log("isActive: " + isActive);
|
|
|
|
console.log("isActive: " + isActive);
|
|
|
|
productItem.prepend('<div id="' +
|
|
|
|
productItem.prepend('<div id="' +
|
|
|
|
publicInfoOverlayId +
|
|
|
|
publicInfoOverlayId +
|
|
|
|
'" class="bg-success p-1 text-white fs-6 text-center" style="position: absolute; width: calc(100% - 1rem); height: 40px; z-index: 1;"><i class="fa-solid fa-gavel"> ' +
|
|
|
|
'" class="bg-success p-1 text-white text-center" style="position: absolute; width: calc(100% - 1rem); height: 50px; z-index: 1;"><p class="m-0"><i class="fa-solid fa-gavel"> ' +
|
|
|
|
'LIVE RIGTH NOW' +
|
|
|
|
'LIVE RIGTH NOW' +
|
|
|
|
'</i></div>');
|
|
|
|
'</i></p><span>' +
|
|
|
|
|
|
|
|
productToAuctionDto.sortIndex +
|
|
|
|
|
|
|
|
'</span></div>');
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
console.log("isActive: " + isActive);
|
|
|
|
console.log("isActive: " + isActive);
|
|
|
|
productItem.prepend('<div id="' +
|
|
|
|
productItem.prepend('<div id="' +
|
|
|
|
publicInfoOverlayId +
|
|
|
|
publicInfoOverlayId +
|
|
|
|
'" class="bg-primary p-1 text-white fs-6 text-center" style="position: absolute; width: calc(100% - 1rem); height: 40px; z-index: 1;"><i class="fa-solid fa-gavel"> ' +
|
|
|
|
'" class="bg-primary p-1 text-white text-center" style="position: absolute; width: calc(100% - 1rem); height: 50px; z-index: 1;"><p class="m-0"><i class="fa-solid fa-gavel"> ' +
|
|
|
|
auctionDto.startDateUtc +
|
|
|
|
resultDate.toLocaleString() +
|
|
|
|
'</i></div>');
|
|
|
|
'</i></p><span>' +
|
|
|
|
|
|
|
|
"No.: " + productToAuctionDto.sortIndex +
|
|
|
|
|
|
|
|
'</span></div>');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
|