Added year questions
This commit is contained in:
parent
41f50839bb
commit
aeded4b8e4
12
logic.js
12
logic.js
@ -6,6 +6,18 @@ var data = {
|
|||||||
'logic': function () {
|
'logic': function () {
|
||||||
return (Date.now() > Date.parse('2020-05-24')) ? "yes" : "no";
|
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";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user