livescreen broken
This commit is contained in:
parent
cc07f53cfe
commit
f0951f2ec1
Binary file not shown.
|
After Width: | Height: | Size: 7.8 KiB |
|
|
@ -29,8 +29,7 @@
|
||||||
},
|
},
|
||||||
bidNotification: function (data) {
|
bidNotification: function (data) {
|
||||||
|
|
||||||
var audio = new Audio('../Plugins/Misc.AuctionPlugin/Content/ding.mp3');
|
|
||||||
audio.play();
|
|
||||||
console.log(data);
|
console.log(data);
|
||||||
var myObject = JSON.parse(data);
|
var myObject = JSON.parse(data);
|
||||||
console.log(myObject);
|
console.log(myObject);
|
||||||
|
|
@ -47,6 +46,8 @@
|
||||||
|
|
||||||
if (publicProductBidBox)
|
if (publicProductBidBox)
|
||||||
{
|
{
|
||||||
|
var audio = new Audio('../Plugins/Misc.AuctionPlugin/Content/ding.mp3');
|
||||||
|
audio.play();
|
||||||
refreshPublicBidBox(myObject);
|
refreshPublicBidBox(myObject);
|
||||||
}
|
}
|
||||||
if (publicInfo) {
|
if (publicInfo) {
|
||||||
|
|
@ -55,7 +56,9 @@
|
||||||
}
|
}
|
||||||
if (liveScreen)
|
if (liveScreen)
|
||||||
{
|
{
|
||||||
reloadOnUpdate();
|
var audio = new Audio('../../Plugins/Misc.AuctionPlugin/Content/ding.mp3');
|
||||||
|
audio.play();
|
||||||
|
updateOnBid();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
toastr.success(`<div class="item bidToast"><p>${myObject.currentPrice}</p><p>${myObject.productName}</p></div>`, "New bid arrived", {
|
toastr.success(`<div class="item bidToast"><p>${myObject.currentPrice}</p><p>${myObject.productName}</p></div>`, "New bid arrived", {
|
||||||
|
|
|
||||||
|
|
@ -133,6 +133,9 @@
|
||||||
<None Update="Content\ding.mp3">
|
<None Update="Content\ding.mp3">
|
||||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
</None>
|
</None>
|
||||||
|
<None Update="Content\Images\logo.png">
|
||||||
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
|
</None>
|
||||||
<None Update="Content\Images\wallpaper.jpg">
|
<None Update="Content\Images\wallpaper.jpg">
|
||||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
</None>
|
</None>
|
||||||
|
|
|
||||||
|
|
@ -11,13 +11,17 @@
|
||||||
//page title
|
//page title
|
||||||
|
|
||||||
}
|
}
|
||||||
|
<style>
|
||||||
|
body{
|
||||||
|
overflow-y: hidden !important;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@{
|
@{
|
||||||
if (Model.IsAnyItemActive)
|
if (Model.IsAnyItemActive)
|
||||||
{
|
{
|
||||||
<div class="row py-3">
|
<div class="row py-3">
|
||||||
<!-- Item Image -->
|
<!-- Item Image -->
|
||||||
<div class="col-lg-4 col-md-6 mb-4" style="height: calc(100vh - 100px);">
|
<div class="col-lg-4 col-md-6 mb-4" style="height: calc(100vh - 300px);">
|
||||||
<div class="card border-0">
|
<div class="card border-0">
|
||||||
<img src="@Model.ActiveProductDetails.DefaultPictureModel.FullSizeImageUrl" class="card-img-top img-fluid" alt="Auction Item Image">
|
<img src="@Model.ActiveProductDetails.DefaultPictureModel.FullSizeImageUrl" class="card-img-top img-fluid" alt="Auction Item Image">
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -42,7 +46,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- Item Details -->
|
<!-- Item Details -->
|
||||||
<div class="col-lg-8 col-md-6" style="height: calc(100vh - 100px);">
|
<div class="col-lg-8 col-md-6" style="height: calc(100vh - 300px);">
|
||||||
<div class="card border-0 bg-transparent h-100">
|
<div class="card border-0 bg-transparent h-100">
|
||||||
<div class="card-header border-0 bg-transparent">
|
<div class="card-header border-0 bg-transparent">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
@ -101,8 +105,10 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row" style="height:100px; position: fixed; bottom:0px;">
|
<div class="row" style="height:300px;">
|
||||||
LOGO
|
<col-12 class="text-center">
|
||||||
|
<img style="height: 250px; !important" src="../../Plugins/Misc.AuctionPlugin/Content/Images/logo.png" class="img-fluid rounded mx-auto p-5 d-block" />
|
||||||
|
</col-12>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
@ -174,6 +180,13 @@
|
||||||
function reloadOnUpdate() {
|
function reloadOnUpdate() {
|
||||||
location.reload();
|
location.reload();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function updateOnBid(data) {
|
||||||
|
console.log(data);
|
||||||
|
let auctionDto = data.auctionDto;
|
||||||
|
let productToAuction = auctionDto.productToAuctionDtos[0];
|
||||||
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue