-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript.js
41 lines (41 loc) · 1.68 KB
/
script.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// ============= >> All icons are sourced from the Iconify website << ==============
//
// =================================================================== >> improts <<
import { DatePicker } from "./Widget/Date_Picker/date_picker.js";
// =================================================================== >> improts <<
//
// ==================================================================== >> Layers <<
//
// ------------------------------------------------------ >> layer 1 <<
const BG_1 = document.querySelector("#BG_1");
// ------------------------------------------------------ >> layer 1 <<
//
// ==================================================================== >> Layers <<
//
// =================================================================== >> Layer 1 <<
//
// ------------------------------------------------- >> Date Picker <<
//
// ------------------------------------ > Variable <
const DatePickerLabel = "تاریخ تولد";
// ------------------------------------ > Variable <
//
// ------------------------------------ > CallBack <
const BirthDayDatePicker = DatePicker(DatePickerLabel, (selctedDate) => {
handleSelection(selctedDate);
});
// ------------------------------------ > CallBack <
//
// ------------------------------------ > Function <
function handleSelection(SelectedDate) {
console.log(SelectedDate);
}
// ------------------------------------ > Function <
//
// -------------------------------------- > Append <
BG_1.appendChild(BirthDayDatePicker);
// -------------------------------------- > Append <
//
// ------------------------------------------------- >> Date Picker <<
//
// =================================================================== >> Layer 1 <<