Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
hung319 authored Jan 14, 2025
1 parent ecb6148 commit 3bdab3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@
<h1>Tải ảnh NSFW</h1>
<div class="input-group">
<label for="imageCount">Số lượng ảnh tải xuống:</label>
<input type="number" id="imageCount" value="50" min="1" max="100">
<input type="number" id="imageCount" value="50" min="1">
</div>

<div class="input-group">
Expand Down Expand Up @@ -317,7 +317,7 @@ <h1>Tải ảnh NSFW</h1>
};

document.getElementById('downloadBtn').addEventListener('click', async () => {
const imageCount = parseInt(document.getElementById('imageCount').value) || 50;
const imageCount = Math.max(parseInt(document.getElementById('imageCount').value), 1);
const downloadBtn = document.getElementById('downloadBtn');
const loadingAnimation = document.getElementById('loadingAnimation');
const status = document.getElementById('status');
Expand Down

0 comments on commit 3bdab3a

Please sign in to comment.