91 lines
3.7 KiB
Plaintext
91 lines
3.7 KiB
Plaintext
<!DOCTYPE html>
|
|
<html data-bs-theme="light" lang="en">
|
|
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
|
|
<title>@ViewData["Title"] | E-Notaryo PH</title>
|
|
<link rel="stylesheet" href="/css/bootstrap.min.css">
|
|
<link rel="stylesheet" href="/css/Source%20Sans%20Pro.css">
|
|
<link rel="stylesheet" href="/css/Articles-Cards-images.css">
|
|
<link rel="stylesheet" href="/css/Bootstrap-4-Calendar-No-Custom-Code.css">
|
|
<link rel="stylesheet" href="/css/enotaryo.css">
|
|
<link rel="stylesheet" href="/css/enotaryo.compiled.css">
|
|
<link rel="stylesheet" href="/css/EnotaryoPH-Navbar.css">
|
|
<link rel="stylesheet" href="/lib/baguettebox/baguetteBox.min.css">
|
|
<link rel="stylesheet" href="/css/Lightbox-Gallery-baguetteBox.min.css">
|
|
<link rel="stylesheet" href="/css/Navbar-Right-Links-Dark.css">
|
|
@await RenderSectionAsync("Head", required: false)
|
|
</head>
|
|
|
|
<body>
|
|
|
|
@RenderBody()
|
|
|
|
<template id="AlertTemplate">
|
|
<div id="alert-container" class="alert alert-warning alert-dismissible mt-1" role="alert">
|
|
<button class="btn-close" type="button" data-bs-dismiss="alert" aria-label="Close"></button>
|
|
<span id="alert-message" class="message">
|
|
<i id="alert-icon" class="fas fa-exclamation-triangle me-1"></i>
|
|
<strong>Alert</strong> text.
|
|
</span>
|
|
<div class="actions"></div>
|
|
</div>
|
|
</template>
|
|
|
|
<template id="DialogTemplate">
|
|
<div id="dialog-container" class="modal fade show" role="dialog" tabindex="-1" style="display: block;">
|
|
<div class="modal-dialog" role="document">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<h4 class="modal-title"><i class="fas fa-question-circle text-primary me-1 modal__title__icon"></i><span class="modal__title__text">Title</span></h4><button class="btn-close" type="button" aria-label="Close" data-bs-dismiss="modal"></button>
|
|
</div>
|
|
<div class="modal-body"><span class="modal__body-message">This is the confirmation message.</span></div>
|
|
<div class="modal-footer modal__footer"><button class="btn btn-light modal__footer__button-no" type="button" data-bs-dismiss="modal">No</button><button class="btn btn-primary modal__footer__button-yes" type="button">Yes</button></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
<script src="/lib/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
|
|
<script src="/js/bs-init.js"></script>
|
|
<script src="/lib/baguettebox/baguetteBox.min.js"></script>
|
|
<script src="/js/Lightbox-Gallery-baguetteBox.min.js"></script>
|
|
<script src="/js/Lightbox-Gallery.js"></script>
|
|
|
|
@if(User.Identity.IsAuthenticated) {
|
|
<script src="/lib/signalr/signalr.min.js"></script>
|
|
<script>
|
|
|
|
var receiveUserNotificationCallback;
|
|
|
|
function tryParseJson(data) {
|
|
try {
|
|
return JSON.parse(data);
|
|
} catch (ex) {
|
|
console.error('data is not JSON');
|
|
}
|
|
return {};
|
|
}
|
|
|
|
const connection = new signalR.HubConnectionBuilder()
|
|
.withUrl("/notificationHub")
|
|
.build();
|
|
|
|
connection.on("ReceiveUserNotification", (userID, message) => {
|
|
alert(message);
|
|
receiveUserNotificationCallback?.(message);
|
|
});
|
|
|
|
connection.start().then(() => {
|
|
console.log("SignalR Connected.");
|
|
}).catch(err => console.error(err));
|
|
</script>
|
|
}
|
|
@await RenderSectionAsync("Scripts", required: false)
|
|
</body>
|
|
|
|
</html>
|
|
|
|
|
|
|