From b9715dec4555215bbfa56bb6c0ead0647ebd65be Mon Sep 17 00:00:00 2001 From: brihat-rb Date: Mon, 11 Mar 2024 15:46:10 +0545 Subject: [PATCH] minor bug fix --- README.md | 4 ++-- js/daily.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 75a205a..1e85afb 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,8 @@ Go [here](https://events.brihatrb.com.np) Simple listing of various events - Nepalese National Events -- Lunar Events (2076 - 2080 BS) +- Lunar Events (2076 - 2081 BS) - international Events -- Nepal Public Holidays (2076 - 2080 BS) +- Nepal Public Holidays (2076 - 2081 BS) Compiled by me. \ No newline at end of file diff --git a/js/daily.js b/js/daily.js index a8a5cc5..ba6637b 100644 --- a/js/daily.js +++ b/js/daily.js @@ -1,7 +1,7 @@ function get_event(bs_year, bs_month, bs_date) { if (current_year != bs_year) { var nepal_event_req = new XMLHttpRequest(); - if (bs_year >= 2076 && bs_year <= 2080) { + if (bs_year >= 2076 && bs_year <= 2081) { json_url = 'https://raw.githubusercontent.com/brihat-rb/brihat-rb.github.io/master/calendar/data/' + bs_year + '_detailed.json'; nepal_event_req.open('GET', json_url, false); @@ -91,7 +91,7 @@ function get_event(bs_year, bs_month, bs_date) { nat_events_key = bs_month.toString().padStart(2, '0') + "-" + bs_date.toString().padStart(2, '0'); sns_events_key = ns_month.toString().padStart(2, '0') + "-" + ns_date.toString().padStart(2, '0'); - if (bs_year < 2070 || bs_year > 2080) { + if (bs_year < 2070 || bs_year > 2081) { console.warn("No Lunar Data Available for Year:", bs_year, "BS"); }