DmitrMakeev commited on
Commit
4e1d4ee
1 Parent(s): 0cebab8

Update biz_v.html

Browse files
Files changed (1) hide show
  1. biz_v.html +3 -3
biz_v.html CHANGED
@@ -1,3 +1,4 @@
 
1
  <html lang="en">
2
  <head>
3
  <meta charset="UTF-8">
@@ -70,7 +71,6 @@
70
  .then(data => {
71
  console.log('JSON Response:', data);
72
  document.getElementById('responseArea').value = JSON.stringify(data, null, 2);
73
- // Создание выпадающего списка
74
  createDropdown(data);
75
  })
76
  .catch(error => {
@@ -78,6 +78,7 @@
78
  document.getElementById('responseArea').value = 'Error: ' + error.message;
79
  });
80
  });
 
81
  function createDropdown(data) {
82
  const container = document.getElementById('dropdown-container');
83
  const select = document.createElement('select');
@@ -89,7 +90,6 @@
89
  select.appendChild(option);
90
  });
91
  container.appendChild(select);
92
- // Добавление обработчика для кнопки отправки GET-запроса
93
  document.getElementById('sendGetRequestButton').addEventListener('click', function() {
94
  const selectedValue = document.getElementById('dropdown').value;
95
  const token = document.getElementById('tokenInput').value;
@@ -110,4 +110,4 @@
110
  }
111
  </script>
112
  </body>
113
- </html>
 
1
+ <!DOCTYPE html>
2
  <html lang="en">
3
  <head>
4
  <meta charset="UTF-8">
 
71
  .then(data => {
72
  console.log('JSON Response:', data);
73
  document.getElementById('responseArea').value = JSON.stringify(data, null, 2);
 
74
  createDropdown(data);
75
  })
76
  .catch(error => {
 
78
  document.getElementById('responseArea').value = 'Error: ' + error.message;
79
  });
80
  });
81
+
82
  function createDropdown(data) {
83
  const container = document.getElementById('dropdown-container');
84
  const select = document.createElement('select');
 
90
  select.appendChild(option);
91
  });
92
  container.appendChild(select);
 
93
  document.getElementById('sendGetRequestButton').addEventListener('click', function() {
94
  const selectedValue = document.getElementById('dropdown').value;
95
  const token = document.getElementById('tokenInput').value;
 
110
  }
111
  </script>
112
  </body>
113
+ </html>