Changeset View
Changeset View
Standalone View
Standalone View
src/activities/calendar/calendar.js
Show First 20 Lines • Show All 85 Lines • ▼ Show 20 Line(s) | 82 | function setCalendarConfigurations() { | |||
---|---|---|---|---|---|
86 | items.calendar.navigationBarVisible = currentLevelConfig["navigationBarVisible"] | 86 | items.calendar.navigationBarVisible = currentLevelConfig["navigationBarVisible"] | ||
87 | items.calendar.minimumDate = currentLevelConfig["minimumDate"] | 87 | items.calendar.minimumDate = currentLevelConfig["minimumDate"] | ||
88 | items.calendar.maximumDate = currentLevelConfig["maximumDate"] | 88 | items.calendar.maximumDate = currentLevelConfig["maximumDate"] | ||
89 | items.calendar.visibleYear = currentLevelConfig["visibleYear"] | 89 | items.calendar.visibleYear = currentLevelConfig["visibleYear"] | ||
90 | yearSelected = currentLevelConfig["visibleYear"] | 90 | yearSelected = currentLevelConfig["visibleYear"] | ||
91 | items.calendar.visibleMonth = currentLevelConfig["visibleMonth"] | 91 | items.calendar.visibleMonth = currentLevelConfig["visibleMonth"] | ||
92 | monthSelected = currentLevelConfig["visibleMonth"] | 92 | monthSelected = currentLevelConfig["visibleMonth"] | ||
93 | items.answerChoices.visible = (mode === "findDayOfWeek") ? true : false | 93 | items.answerChoices.visible = (mode === "findDayOfWeek") ? true : false | ||
94 | items.okButton.visible = !items.answerChoices.visible | 94 | items.okButton.visible = !items.answerChoices.visible && !items.showTutorial | ||
95 | currentDataSet = currentLevelConfig["questionAnswers"] | 95 | currentDataSet = currentLevelConfig["questionAnswers"] | ||
96 | currentDataSet = Core.shuffle(currentDataSet) | 96 | currentDataSet = Core.shuffle(currentDataSet) | ||
97 | items.score.numberOfSubLevels = currentDataSet.length | 97 | items.score.numberOfSubLevels = currentDataSet.length | ||
98 | items.score.currentSubLevel = currentSubLevel | 98 | items.score.currentSubLevel = currentSubLevel | ||
99 | } | 99 | } | ||
100 | 100 | | |||
101 | function isLeapYear(year) { | 101 | function isLeapYear(year) { | ||
102 | if(year % 100 == 0 && year % 400 != 0) { | 102 | if(year % 100 == 0 && year % 400 != 0) { | ||
▲ Show 20 Lines • Show All 140 Lines • Show Last 20 Lines |