Compare commits

..

No commits in common. "3a5fe7792f3a48af04601d48a10198e9d4d5ae45" and "dbb70fd2010a053634df881e9d1a961df9c2aa22" have entirely different histories.

3 changed files with 509 additions and 530 deletions

View File

@ -58,7 +58,7 @@
{
var audio = new Audio('../../Plugins/Misc.AuctionPlugin/Content/ding.mp3');
audio.play();
updateOnBid(myObject);
updateOnBid();
}
else {
toastr.success(`<div class="item bidToast"><p>${myObject.currentPrice}</p><p>${myObject.productName}</p></div>`, "New bid arrived", {

View File

@ -25,8 +25,8 @@
<div class="card border-0">
<img src="@Model.ActiveProductDetails.DefaultPictureModel.FullSizeImageUrl" class="card-img-top img-fluid" alt="Auction Item Image">
</div>
<div class="card border-0 bg-transparent">
<div class="card-body" style="max-height:250px; overflow-y: hidden !important;">
<div class="card bg-transparent">
<div class="card-body">
<h5 class="card-title mb-3">Bid History</h5>
<div class="table-responsive bg-transparent">
<table id="bidHistoryTable" class="table-responsive bg-transparent">
@ -82,7 +82,7 @@
</div>
<div>
<span>Actual licit step</span>
<span id="liveScreenLicitStep">@($"{Model.LicitStep:c}")</span>
<span>@($"{Model.LicitStep:c}")</span>
</div>
</li>
@ -96,7 +96,7 @@
</div>
<div class="card-footer h-50 border-0 align-items-center text-center bg-transparent">
<span>Current state price</span>
<h3 id="liveScreenCurrentPrice" style="font-size: 72px;">
<h3 style="font-size: 72px;">
@($"{Model.CurrentPrice:c}")
</h3>
@ -167,13 +167,13 @@
var row = table.insertRow();
var cell1 = row.insertCell();
cell1.textContent = "#";
cell1.textContent = tableRow.Id;
var cell2 = row.insertCell();
cell2.textContent = HUFFormatter.format(tableRow.BidPrice);
cell2.textContent = tableRow.BidPrice;
var cell3 = row.insertCell();
cell3.textContent = "###";
cell3.textContent = tableRow.CustomerId;
}
@ -185,27 +185,6 @@
console.log(data);
let auctionDto = data.auctionDto;
let productToAuction = auctionDto.productToAuctionDtos[0];
var liveScreenLicitStep = document.getElementById("liveScreenLicitStep");
if(liveScreenLicitStep) {
liveScreenLicitStep.textContent = data.nextStepAmount;
}
var liveScreenCurrentPrice = document.getElementById("liveScreenCurrentPrice");
if (liveScreenCurrentPrice) {
liveScreenCurrentPrice.textContent= HUFFormatter.format(productToAuction.currentPrice);
}
console.log(productToAuction);
var table = document.getElementById("bidHistoryTable");
var row = table.insertRow(1);
var cell1 = row.insertCell();
cell1.textContent = "#";
var cell2 = row.insertCell();
cell2.textContent = HUFFormatter.format(productToAuction.currentPrice);
var cell3 = row.insertCell();
cell3.textContent = "###";
}
</script>

File diff suppressed because it is too large Load Diff