File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7070 box . className = `kalert-box kalert-${ type } ` ;
7171
7272 box . innerHTML = `
73+ <div class="kalert-icon">
74+ <i class="fa-solid ${ icon ( type ) } "></i>
75+ </div>
7376
74- <div class="kalert-icon">
77+ ${ title ? ` <div class="kalert-title"> ${ title } </div>` : "" }
7578
76- <i class="fa-solid ${ icon ( type ) } "></i>
79+ <div class="kalert-message">${ message } </div>
80+ ${ input ? `<input class="kalert-input" placeholder="${ placeholder } "/>` : "" }
7781
78- </div>
79-
80- ${ title ? `<div class="kalert-title">${ title } </div>` : "" }
81-
82- <div class="kalert-message">${ message } </div>
83-
84- ${ input ? `<input class="kalert-input" placeholder="${ placeholder } "/>` : "" }
85-
86- <div class="kalert-buttons">
87-
88- ${ showCancel ? `<button class="kalert-btn cancel">${ cancelText } </button>` : "" }
89-
90- <button class="kalert-btn confirm">${ confirmText } </button>
91-
92- </div>
93-
94- ` ;
82+ <div class="kalert-buttons">
83+ ${ showCancel ? `<button class="kalert-btn cancel">${ cancelText } </button>` : "" }
84+ <button class="kalert-btn confirm">${ confirmText } </button>
85+ </div>
86+ ` ;
9587
9688 overlay . appendChild ( box ) ;
9789
You can’t perform that action at this time.
0 commit comments