51 lines
1.7 KiB
Plaintext
51 lines
1.7 KiB
Plaintext
@using Nop.Core;
|
|
@using Nop.Core.Domain.Seo;
|
|
@using Nop.Core.Infrastructure;
|
|
@using Nop.Web.Framework;
|
|
@using Nop.Web.Framework.UI;
|
|
@using Nop.Services.Configuration;
|
|
|
|
@{
|
|
|
|
ISettingService _settingContext = EngineContext.Current.Resolve<ISettingService>();
|
|
IStoreContext _storeContext = EngineContext.Current.Resolve<IStoreContext>();
|
|
|
|
NopHtml.AddScriptParts(ResourceLocation.Head, "~/Plugins/Misc.AuctionPlugin/Content/Js/signalr.js");
|
|
NopHtml.AddScriptParts(ResourceLocation.Footer, "~/Plugins/Misc.AuctionPlugin/Content/Js/MgMessageHandler.js");
|
|
NopHtml.AddScriptParts(ResourceLocation.Footer, "~/Plugins/Misc.AuctionPlugin/Content/Js/LiveAnnouncement.js");
|
|
NopHtml.AddCssFileParts("~/Plugins/Misc.AuctionPlugin/Content/Css/toastr.min.css");
|
|
NopHtml.AddScriptParts(ResourceLocation.Footer, "~/Plugins/Misc.AuctionPlugin/Content/Js/toastr.js");
|
|
|
|
}
|
|
|
|
@* <button id="showToast">Show Toast</button> *@
|
|
|
|
@* <script>
|
|
// Basic Toastr Test
|
|
$(document).ready(function () {
|
|
toastr.options = {
|
|
"closeButton": true,
|
|
"debug": false,
|
|
"newestOnTop": false,
|
|
"progressBar": true,
|
|
"positionClass": "toast-bottom-right",
|
|
"preventDuplicates": false,
|
|
"showDuration": "300",
|
|
"hideDuration": "1000",
|
|
"timeOut": "50000",
|
|
"extendedTimeOut": "1000",
|
|
"showEasing": "swing",
|
|
"hideEasing": "linear",
|
|
"showMethod": "fadeIn",
|
|
"hideMethod": "fadeOut"
|
|
};
|
|
|
|
// Show toast on button click
|
|
$('#showToast').click(function () {
|
|
toastr.warning('This is a test notification!');
|
|
});
|
|
});
|
|
</script> *@
|
|
|
|
<div class="announcementPage">
|
|
</div> |