From 83d8a5cb3080ad8aeff8ecffb35037a8cc7be777 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Sol=C3=ADs?= Date: Thu, 3 Aug 2017 18:18:50 -0600 Subject: [PATCH] A slight mistake noticed. --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index bdb1845..80d5469 100644 --- a/index.html +++ b/index.html @@ -31,7 +31,7 @@ //http://holidayapi.com //var apiKey = "177c7a48-d566-426b-bb50-cf9926f767ec"; - var generate = function(){ + function generate() { var form = document.getElementById("calendar-input"); var startDate = document.getElementById("start-date").value; var numberOfDays = document.getElementById("number-of-days").value; @@ -65,7 +65,7 @@ var startYear = parseInt(dateString.substr(0,4)); var startMonth = parseInt(dateString.substr(5,2)); var startDay = parseInt(dateString.substr(8,2)); - if (!isNaN(startYear) && !isNaN(startMonth) && isNaN(startDay)) { + if (!isNaN(startYear) && !isNaN(startMonth) && !isNaN(startDay)) { //Good, we're validated! return true; }