neetnestor commited on
Commit
f7c6c35
1 Parent(s): 089e758

feat: add loading text to button

Browse files
Files changed (3) hide show
  1. dist/index.js +0 -0
  2. index.html +1 -1
  3. src/index.js +1 -0
dist/index.js CHANGED
The diff for this file is too large to render. See raw diff
 
index.html CHANGED
@@ -124,7 +124,7 @@
124
  </div>
125
  </form>
126
 
127
- <button id="download" disabled>Download</button>
128
  </div>
129
  <p id="download-status" class="hidden"></p>
130
 
 
124
  </div>
125
  </form>
126
 
127
+ <button id="download" disabled>Loading...</button>
128
  </div>
129
  <p id="download-status" class="hidden"></p>
130
 
src/index.js CHANGED
@@ -189,5 +189,6 @@ document.getElementById("user-input").addEventListener("keydown", (event) => {
189
  });
190
 
191
  document.onload = function () {
 
192
  document.getElementById("download").disabled = false;
193
  }
 
189
  });
190
 
191
  document.onload = function () {
192
+ document.getElementById("download").textContent = "Download";
193
  document.getElementById("download").disabled = false;
194
  }