Add spinner and fix og-image
This commit is contained in:
parent
b55e927a34
commit
f6f54483db
9 changed files with 65 additions and 14 deletions
7
frontend/src/scripts/helper/hide.ts
Normal file
7
frontend/src/scripts/helper/hide.ts
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
export const hide = (e: HTMLElement, useDisplay = false) => {
|
||||
if (useDisplay) {
|
||||
e.style.display = 'none';
|
||||
} else {
|
||||
e.style.visibility = 'hidden';
|
||||
}
|
||||
};
|
||||
7
frontend/src/scripts/helper/show.ts
Normal file
7
frontend/src/scripts/helper/show.ts
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
export const show = (e: HTMLElement, useDisplay = false, normalDisplayValue?: string) => {
|
||||
if (useDisplay) {
|
||||
e.style.display = normalDisplayValue!;
|
||||
} else {
|
||||
e.style.visibility = 'inherit';
|
||||
}
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue