burask commited on
Commit
dc45f34
·
verified ·
1 Parent(s): fc9a410

Update templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +22 -9
templates/index.html CHANGED
@@ -61,15 +61,18 @@
61
 
62
  <div class="container">
63
  <h2 class="text-center mb-4">🎙️ Ses Dosyasını Metne Dönüştür</h2>
64
- <form method="POST" enctype="multipart/form-data">
65
- <div class="mb-3">
66
- <label for="file" class="form-label">Ses Dosyası Seç (.mp3)</label>
67
- <input class="form-control" type="file" name="file" id="file" required>
68
- </div>
69
- <div class="d-grid">
70
- <button type="submit" class="btn btn-primary btn-lg">Yükle ve Dönüştür</button>
71
- </div>
72
- </form>
 
 
 
73
 
74
  {% if metin %}
75
  <div class="output-box mt-1">
@@ -85,6 +88,16 @@
85
  {% endif %}
86
 
87
  </div>
 
 
 
 
 
 
 
 
 
 
88
 
89
  <p style="position: fixed; bottom: 20px; left: 20px; color:#ffffff;">Designer by: Burak Tuğrul Aşık & Tarık Kahraman</p>
90
 
 
61
 
62
  <div class="container">
63
  <h2 class="text-center mb-4">🎙️ Ses Dosyasını Metne Dönüştür</h2>
64
+ <form method="POST" enctype="multipart/form-data" onsubmit="showLoading()">
65
+ <div class="mb-3">
66
+ <label for="file" class="form-label">Ses Dosyası Seç (.mp3)</label>
67
+ <input class="form-control" type="file" name="file" id="file" required>
68
+ </div>
69
+ <div class="d-grid">
70
+ <button id="submitBtn" type="submit" class="btn btn-primary btn-lg">
71
+ Yükle ve Dönüştür
72
+ </button>
73
+ </div>
74
+ </form>
75
+
76
 
77
  {% if metin %}
78
  <div class="output-box mt-1">
 
88
  {% endif %}
89
 
90
  </div>
91
+ <script>
92
+ function showLoading() {
93
+ const btn = document.getElementById('submitBtn');
94
+ btn.disabled = true;
95
+ btn.innerHTML = `
96
+ <span class="spinner-border spinner-border-sm me-2" role="status" aria-hidden="true"></span>
97
+ İşleniyor...
98
+ `;
99
+ }
100
+ </script>
101
 
102
  <p style="position: fixed; bottom: 20px; left: 20px; color:#ffffff;">Designer by: Burak Tuğrul Aşık & Tarık Kahraman</p>
103