Added login and warranty along with toaster

This commit is contained in:
2023-04-20 10:20:36 +05:30
parent 7b54670c3a
commit a92277bb70
11 changed files with 1710 additions and 296 deletions
+38
View File
@@ -29,6 +29,7 @@
<link rel="stylesheet" href="./dist/css/style.css">
<link rel="stylesheet" href="./dist/css/fontawesome.all.min.css">
<link rel="stylesheet" href="./dist/css/fontawesome.min.css">
<link rel="stylesheet" href="./dist/toaster/toastr.css" />
<title>Anwi</title>
<style>
@@ -366,6 +367,8 @@
<script src="./dist/js/axios.min.js"></script>
<script src="./dist/js/footer.js"></script>
<script src="./dist/js/cookies.min.js"></script>
<script src="./dist/js/auth/apiservice.js"></script>
<script src="./dist/toaster/toastr.js"></script>
<script src="./dist/js/fontawesome.all.js"></script>
<script src="./dist/js/fontawesome.min.js"></script>
<script src="./dist/js/vendor/modernizr-3.11.7.min.js"></script>
@@ -386,6 +389,41 @@
<script>
$(document).ready(function() {
let Newuser =window.localStorage.getItem('isaccountCreated');
let Loginstatus =window.localStorage.getItem('Isloggedintoaster')
if(Newuser == 'true'){
toasteropts()
Command: toastr["success"]("Account Created Successfully");
window.localStorage.removeItem('isaccountCreated')
return
}
if(Loginstatus == 'true'){
toasteropts()
Command: toastr["success"]("Logged In Successfully");
window.localStorage.removeItem('Isloggedintoaster')
return
}
function toasteropts(){
toastr.options = {
"closeButton": true,
"debug": false,
"newestOnTop": true,
"progressBar": true,
"positionClass": "toast-top-center",
"preventDuplicates": true,
"onclick": null,
"showDuration": "300",
"hideDuration": "1000",
"timeOut": "5000",
"extendedTimeOut": "1000",
"showEasing": "swing",
"hideEasing": "linear",
"showMethod": "fadeIn",
"hideMethod": "fadeOut"
}
}
});
$(".slick-prev").addClass("btn text-white");
$(".slick-next").addClass("btn text-white");