DmitrMakeev commited on
Commit
7d01bae
1 Parent(s): 54581bc

Update biz_v.html

Browse files
Files changed (1) hide show
  1. biz_v.html +20 -26
biz_v.html CHANGED
@@ -4,9 +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://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.css">
8
- <script src="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.js"></script>
9
-
10
  <style>
11
  body {
12
  font-family: Arial, sans-serif;
@@ -39,16 +37,12 @@
39
  button:hover {
40
  background-color: #388E3C;
41
  }
42
- input, select {
43
  padding: 10px;
44
  font-size: 16px;
45
  border: 1px solid #ccc;
46
  border-radius: 5px;
47
  margin: 10px;
48
- display: block;
49
- width: calc(100% - 42px);
50
- margin: 10px auto;
51
- box-sizing: border-box;
52
  }
53
  </style>
54
  </head>
@@ -75,24 +69,24 @@
75
  <div id="dropdown-container"></div>
76
  <button id="sendGetRequestButton">Send GET Request</button>
77
 
78
-
79
  <script>
80
  toastr.options = {
81
- "closeButton": false,
82
- "debug": false,
83
- "newestOnTop": false,
84
- "progressBar": false,
85
- "positionClass": "toast-top-right",
86
- "preventDuplicates": false,
87
- "onclick": null,
88
- "showDuration": "300",
89
- "hideDuration": "1000",
90
- "timeOut": "5000",
91
- "extendedTimeOut": "1000",
92
- "showEasing": "swing",
93
- "hideEasing": "linear",
94
- "showMethod": "fadeIn",
95
- "hideMethod": "fadeOut"
96
  };
97
 
98
  document.getElementById('sendRequestButton').addEventListener('click', function() {
@@ -140,11 +134,11 @@
140
  .then(response => response.json())
141
  .then(data => {
142
  console.log('GET Response:', data);
143
- toastr.success('User data saved successfully');
144
  })
145
  .catch(error => {
146
  console.error('Error:', error);
147
- toastr.error('Error: ' + error.message);
148
  });
149
  });
150
  }
 
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://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.css">
 
 
8
  <style>
9
  body {
10
  font-family: Arial, sans-serif;
 
37
  button:hover {
38
  background-color: #388E3C;
39
  }
40
+ select {
41
  padding: 10px;
42
  font-size: 16px;
43
  border: 1px solid #ccc;
44
  border-radius: 5px;
45
  margin: 10px;
 
 
 
 
46
  }
47
  </style>
48
  </head>
 
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() {
 
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
  }