Skip to content

Commit

Permalink
Merge pull request #203 from w3bdesign/develop
Browse files Browse the repository at this point in the history
Vite
  • Loading branch information
w3bdesign authored Dec 12, 2022
2 parents 31e31cc + abc6e6a commit eb9b8a6
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions scripts/classes/ProcessInputForm/classShowHideElements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,44 +6,46 @@ export default class classShowHideElements {
* Show the loading spinner
* @returns void
*/
static showLoadingSpinner(): void {
window.document.getElementById("loadingSpinner").classList.remove("d-none");
static showLoadingSpinner(): void {
window.document
.getElementById("loadingSpinner")
?.classList.remove("d-none");
}

/**
* Hide the loading spinner
* @returns void
*/
static hideLoadingSpinner(): void {
window.document.getElementById("loadingSpinner").classList.add("d-none");
static hideLoadingSpinner(): void {
window.document.getElementById("loadingSpinner")?.classList.add("d-none");
}

/**
* Display the table and add animation class
* @returns void
*/
static showDataTable(): void {
window.document.getElementById("tableElement").classList.remove("d-none");
static showDataTable(): void {
window.document.getElementById("tableElement")?.classList.remove("d-none");
}

/**
* Hide the table. Usually caused by an error
* @returns void
*/
static hideDataTable(): void {
static hideDataTable(): void {
window.document
.getElementById("tableElement")
.classList.add("animate__fadeOut");
?.classList.add("animate__fadeOut");
}

/**
* Hide loading spinner and data table
* @returns void
*/
static hideElements(): void {
static hideElements(): void {
window.document
.getElementById("tableElement")
.classList.add("animate__fadeOut");
window.document.getElementById("loadingSpinner").classList.add("d-none");
?.classList.add("animate__fadeOut");
window.document.getElementById("loadingSpinner")?.classList.add("d-none");
}
}

1 comment on commit eb9b8a6

@vercel
Copy link

@vercel vercel bot commented on eb9b8a6 Dec 12, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.