Update biz_v.html
Browse files- biz_v.html +12 -22
biz_v.html
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
<title>API Request</title>
|
| 7 |
-
<link rel="stylesheet" href="https://
|
| 8 |
<style>
|
| 9 |
body {
|
| 10 |
font-family: Arial, sans-serif;
|
|
@@ -69,25 +69,15 @@
|
|
| 69 |
<div id="dropdown-container"></div>
|
| 70 |
<button id="sendGetRequestButton">Send GET Request</button>
|
| 71 |
|
| 72 |
-
<script src="https://
|
| 73 |
<script>
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 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;
|
|
@@ -108,7 +98,7 @@
|
|
| 108 |
})
|
| 109 |
.catch(error => {
|
| 110 |
console.error('Error:', error);
|
| 111 |
-
|
| 112 |
});
|
| 113 |
});
|
| 114 |
|
|
@@ -134,11 +124,11 @@
|
|
| 134 |
.then(response => response.json())
|
| 135 |
.then(data => {
|
| 136 |
console.log('GET Response:', data);
|
| 137 |
-
|
| 138 |
})
|
| 139 |
.catch(error => {
|
| 140 |
console.error('Error:', error);
|
| 141 |
-
|
| 142 |
});
|
| 143 |
});
|
| 144 |
}
|
|
|
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
<title>API Request</title>
|
| 7 |
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/notyf/notyf.min.css">
|
| 8 |
<style>
|
| 9 |
body {
|
| 10 |
font-family: Arial, sans-serif;
|
|
|
|
| 69 |
<div id="dropdown-container"></div>
|
| 70 |
<button id="sendGetRequestButton">Send GET Request</button>
|
| 71 |
|
| 72 |
+
<script src="https://cdn.jsdelivr.net/npm/notyf/notyf.min.js"></script>
|
| 73 |
<script>
|
| 74 |
+
const notyf = new Notyf({
|
| 75 |
+
duration: 5000,
|
| 76 |
+
position: {
|
| 77 |
+
x: 'right',
|
| 78 |
+
y: 'top',
|
| 79 |
+
},
|
| 80 |
+
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 81 |
|
| 82 |
document.getElementById('sendRequestButton').addEventListener('click', function() {
|
| 83 |
const token = document.getElementById('tokenInput').value;
|
|
|
|
| 98 |
})
|
| 99 |
.catch(error => {
|
| 100 |
console.error('Error:', error);
|
| 101 |
+
notyf.error('Error: ' + error.message);
|
| 102 |
});
|
| 103 |
});
|
| 104 |
|
|
|
|
| 124 |
.then(response => response.json())
|
| 125 |
.then(data => {
|
| 126 |
console.log('GET Response:', data);
|
| 127 |
+
notyf.success('User data saved successfully');
|
| 128 |
})
|
| 129 |
.catch(error => {
|
| 130 |
console.error('Error:', error);
|
| 131 |
+
notyf.error('Error: ' + error.message);
|
| 132 |
});
|
| 133 |
});
|
| 134 |
}
|