DmitrMakeev commited on
Commit
81cb3f9
1 Parent(s): caf7759

Update ver2.html

Browse files
Files changed (1) hide show
  1. ver2.html +28 -13
ver2.html CHANGED
@@ -19,6 +19,22 @@
19
  margin: 0;
20
  border-bottom: 2px solid #388E3C;
21
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
  #progressBarContainer {
23
  width: 80%;
24
  margin: 20px auto;
@@ -35,18 +51,15 @@
35
  line-height: 30px;
36
  color: white;
37
  }
38
- #apiKeyInput, #messageInput, #minDelayInput, #maxDelayInput, #fileInput, #sendButton {
39
- margin-top: 20px;
40
- padding: 10px;
41
- font-size: 16px;
42
- border: 1px solid #ccc;
43
- border-radius: 5px;
44
- }
45
  #sendButton {
46
  color: white;
47
  background-color: #4CAF50;
48
  border: none;
49
  cursor: pointer;
 
 
 
 
50
  }
51
  #sendButton:hover {
52
  background-color: #388E3C;
@@ -55,10 +68,12 @@
55
  </head>
56
  <body>
57
  <h1>Send Messages</h1>
58
- <input type="text" id="apiKeyInput" placeholder="Enter API Key">
59
- <input type="text" id="messageInput" placeholder="Enter Message">
60
- <input type="number" id="minDelayInput" placeholder="Min Delay (ms)">
61
- <input type="number" id="maxDelayInput" placeholder="Max Delay (ms)">
 
 
62
  <div id="progressBarContainer">
63
  <div id="progressBar">
64
  <div id="progress">0%</div>
@@ -71,8 +86,8 @@
71
  document.getElementById('sendButton').addEventListener('click', function() {
72
  const apiKey = document.getElementById('apiKeyInput').value;
73
  const message = document.getElementById('messageInput').value;
74
- const minDelay = parseInt(document.getElementById('minDelayInput').value) || 1000;
75
- const maxDelay = parseInt(document.getElementById('maxDelayInput').value) || 5000;
76
 
77
  if (!apiKey) {
78
  alert('Please enter your API key.');
 
19
  margin: 0;
20
  border-bottom: 2px solid #388E3C;
21
  }
22
+ .input-row {
23
+ display: flex;
24
+ justify-content: center;
25
+ gap: 10px;
26
+ margin-top: 20px;
27
+ }
28
+ .input-row input, .input-row textarea {
29
+ padding: 10px;
30
+ font-size: 16px;
31
+ border: 1px solid #ccc;
32
+ border-radius: 5px;
33
+ }
34
+ #messageInput {
35
+ width: 80%;
36
+ margin-top: 20px;
37
+ }
38
  #progressBarContainer {
39
  width: 80%;
40
  margin: 20px auto;
 
51
  line-height: 30px;
52
  color: white;
53
  }
 
 
 
 
 
 
 
54
  #sendButton {
55
  color: white;
56
  background-color: #4CAF50;
57
  border: none;
58
  cursor: pointer;
59
+ padding: 10px 20px;
60
+ font-size: 16px;
61
+ border-radius: 5px;
62
+ margin-top: 20px;
63
  }
64
  #sendButton:hover {
65
  background-color: #388E3C;
 
68
  </head>
69
  <body>
70
  <h1>Send Messages</h1>
71
+ <div class="input-row">
72
+ <input type="text" id="apiKeyInput" placeholder="Enter API Key">
73
+ <input type="number" id="minDelayInput" placeholder="Min Delay (ms)" value="500">
74
+ <input type="number" id="maxDelayInput" placeholder="Max Delay (ms)" value="1000">
75
+ </div>
76
+ <textarea id="messageInput" placeholder="Enter Message"></textarea>
77
  <div id="progressBarContainer">
78
  <div id="progressBar">
79
  <div id="progress">0%</div>
 
86
  document.getElementById('sendButton').addEventListener('click', function() {
87
  const apiKey = document.getElementById('apiKeyInput').value;
88
  const message = document.getElementById('messageInput').value;
89
+ const minDelay = parseInt(document.getElementById('minDelayInput').value) || 500;
90
+ const maxDelay = parseInt(document.getElementById('maxDelayInput').value) || 10000;
91
 
92
  if (!apiKey) {
93
  alert('Please enter your API key.');