date fixed, sortIndex dsiplayed
This commit is contained in:
parent
b73db10324
commit
b76e7ec569
|
|
@ -51,16 +51,16 @@
|
||||||
let myDate = auctionDto.startDateUtc;
|
let myDate = auctionDto.startDateUtc;
|
||||||
console.log("dates: " + myDate);
|
console.log("dates: " + myDate);
|
||||||
let fixedDate = new Date(myDate + 'Z');
|
let fixedDate = new Date(myDate + 'Z');
|
||||||
console.log("dates: " + myDate + ", " + localizedDate);
|
console.log("dates: " + myDate + ", " + fixedDate);
|
||||||
let resultDate = new Date(fixedDate);
|
let resultDate = new Date(fixedDate);
|
||||||
console.log("dates: " + myDate + ", " + localizedDate + ", " + resultDate);
|
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 text-center" style="position: absolute; width: calc(100% - 1rem); height: 40px; z-index: 1;"><p><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></p><span>' +
|
'</i></p><span>' +
|
||||||
productToAuctionDto.sortIndex +
|
productToAuctionDto.sortIndex +
|
||||||
|
|
@ -69,10 +69,10 @@
|
||||||
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;"><p><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"> ' +
|
||||||
resultDate +
|
resultDate.toLocaleString() +
|
||||||
'</i></p><span>' +
|
'</i></p><span>' +
|
||||||
productToAuctionDto.sortIndex +
|
"No.: " + productToAuctionDto.sortIndex +
|
||||||
'</span></div>');
|
'</span></div>');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue