Added year questions

This commit is contained in:
Mahesh Asolkar 2020-01-26 22:02:09 -08:00
parent 41f50839bb
commit aeded4b8e4

View File

@ -6,6 +6,18 @@ var data = {
'logic': function () {
return (Date.now() > Date.parse('2020-05-24')) ? "yes" : "no";
}
},
'isit2020': {
'question': "Is it 2020 yet",
'logic': function () {
return (Date.now() >= Date.parse('2020-01-01')) ? "yes" : "no";
}
},
'isit2021': {
'question': "Is it 2021 yet",
'logic': function () {
return (Date.now() >= Date.parse('2021-01-01')) ? "yes" : "no";
}
}
};