Update biz_v.html
Browse files- biz_v.html +22 -3
biz_v.html
CHANGED
|
@@ -69,7 +69,26 @@
|
|
| 69 |
<div id="dropdown-container"></div>
|
| 70 |
<button id="sendGetRequestButton">Send GET Request</button>
|
| 71 |
|
|
|
|
| 72 |
<script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 73 |
document.getElementById('sendRequestButton').addEventListener('click', function() {
|
| 74 |
const token = document.getElementById('tokenInput').value;
|
| 75 |
const minDate = document.getElementById('dateSelect').value;
|
|
@@ -89,7 +108,7 @@
|
|
| 89 |
})
|
| 90 |
.catch(error => {
|
| 91 |
console.error('Error:', error);
|
| 92 |
-
|
| 93 |
});
|
| 94 |
});
|
| 95 |
|
|
@@ -115,11 +134,11 @@
|
|
| 115 |
.then(response => response.json())
|
| 116 |
.then(data => {
|
| 117 |
console.log('GET Response:', data);
|
| 118 |
-
|
| 119 |
})
|
| 120 |
.catch(error => {
|
| 121 |
console.error('Error:', error);
|
| 122 |
-
|
| 123 |
});
|
| 124 |
});
|
| 125 |
}
|
|
|
|
| 69 |
<div id="dropdown-container"></div>
|
| 70 |
<button id="sendGetRequestButton">Send GET Request</button>
|
| 71 |
|
| 72 |
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.js"></script>
|
| 73 |
<script>
|
| 74 |
+
toastr.options = {
|
| 75 |
+
"closeButton": false,
|
| 76 |
+
"debug": false,
|
| 77 |
+
"newestOnTop": false,
|
| 78 |
+
"progressBar": false,
|
| 79 |
+
"positionClass": "toast-top-right",
|
| 80 |
+
"preventDuplicates": false,
|
| 81 |
+
"onclick": null,
|
| 82 |
+
"showDuration": "300",
|
| 83 |
+
"hideDuration": "1000",
|
| 84 |
+
"timeOut": "5000",
|
| 85 |
+
"extendedTimeOut": "1000",
|
| 86 |
+
"showEasing": "swing",
|
| 87 |
+
"hideEasing": "linear",
|
| 88 |
+
"showMethod": "fadeIn",
|
| 89 |
+
"hideMethod": "fadeOut"
|
| 90 |
+
};
|
| 91 |
+
|
| 92 |
document.getElementById('sendRequestButton').addEventListener('click', function() {
|
| 93 |
const token = document.getElementById('tokenInput').value;
|
| 94 |
const minDate = document.getElementById('dateSelect').value;
|
|
|
|
| 108 |
})
|
| 109 |
.catch(error => {
|
| 110 |
console.error('Error:', error);
|
| 111 |
+
toastr.error('Error: ' + error.message);
|
| 112 |
});
|
| 113 |
});
|
| 114 |
|
|
|
|
| 134 |
.then(response => response.json())
|
| 135 |
.then(data => {
|
| 136 |
console.log('GET Response:', data);
|
| 137 |
+
toastr.success('User data saved successfully');
|
| 138 |
})
|
| 139 |
.catch(error => {
|
| 140 |
console.error('Error:', error);
|
| 141 |
+
toastr.error('Error: ' + error.message);
|
| 142 |
});
|
| 143 |
});
|
| 144 |
}
|