mirror of
https://github.com/cyclotruc/gitingest.git
synced 2026-04-28 12:49:29 +00:00
Add include/exclude selector (wip)
This commit is contained in:
parent
3073ddee68
commit
813e7e8abc
7 changed files with 189 additions and 72 deletions
|
|
@ -38,12 +38,23 @@ function handleSubmit(event, showLoading = false) {
|
|||
if (!submitButton) return;
|
||||
|
||||
const formData = new FormData(form);
|
||||
|
||||
// Update file size
|
||||
const slider = document.getElementById('file_size');
|
||||
if (slider) {
|
||||
formData.delete('max_file_size');
|
||||
formData.append('max_file_size', slider.value);
|
||||
}
|
||||
|
||||
// Update pattern type and pattern
|
||||
const patternType = document.getElementById('pattern_type');
|
||||
const pattern = document.getElementById('pattern');
|
||||
if (patternType && pattern) {
|
||||
formData.delete('pattern_type');
|
||||
formData.delete('pattern');
|
||||
formData.append('pattern_type', patternType.value);
|
||||
formData.append('pattern', pattern.value);
|
||||
}
|
||||
|
||||
const originalContent = submitButton.innerHTML;
|
||||
const currentStars = document.getElementById('github-stars')?.textContent;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue