Skip to content

Commit

Permalink
move code into css
Browse files Browse the repository at this point in the history
  • Loading branch information
MayNiklas committed Jul 26, 2024
1 parent 71623a0 commit 625d526
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/whisper_api/frontend/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,9 @@ <h2>Transcription:</h2>
<div id="result"></div>
</div>
<div style="display: flex; justify-content: center; gap: 20px; width: 100%;">
<button type="button" id="cleanOutputBtn" onclick="cleanOutput()"
style="flex: 1 1 150px; padding: 10px; height: 50px;">Clean
output</button>
<button type="button" id="downloadSrtBtn" onclick="downloadSrt()"
style="flex: 1 1 150px; padding: 10px; height: 50px;">Download
transcription as .srt</button>
<button type="button" id="cleanOutputBtn" onclick="cleanOutput()" class="action-btn">Clean output</button>
<button type="button" id="downloadSrtBtn" onclick="downloadSrt()" class="action-btn">Download transcription
as .srt</button>
</div>
<script src="script.js"></script>
</body>
Expand Down
6 changes: 6 additions & 0 deletions src/whisper_api/frontend/static/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,18 @@ button[type="button"] {
margin-bottom: 10px;
cursor: pointer;
border-radius: 5px;
height: 40px;
}

button[type="button"]:hover {
background-color: #3e8e41;
}

.action-btn {
flex: 1 1 150px;
padding: 10px;
}

#taskIdContainer,
#resultContainer {
border: 1px solid #ccc;
Expand Down

0 comments on commit 625d526

Please sign in to comment.