-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d2060c4
commit 922edb1
Showing
5 changed files
with
64 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
export const DATE_TIME_LOCAL = "datetime-local"; | ||
// HTML Elements | ||
export const BUTTON = "button"; | ||
export const DIV = "div"; | ||
export const INPUT = "input"; | ||
export const LABEL = "label"; | ||
export const TEXT_AREA = "textarea"; | ||
export const TEXT = "text"; | ||
export const SELECT = "select"; | ||
|
||
// input type attributes | ||
export const DATE_TIME_LOCAL = "datetime-local"; | ||
export const TEXT = "text"; | ||
export const TEXT_AREA = "textarea"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { BUTTON } from './constants'; | ||
|
||
export default function createCloseBtn() { | ||
const closeBtn = document.createElement(BUTTON); | ||
closeBtn.classList.add('close-btn'); | ||
closeBtn.textContent = "Close"; | ||
|
||
return closeBtn; | ||
} |