From fd9184ac975267d5c886d0e9b96c31e591c7eeb9 Mon Sep 17 00:00:00 2001 From: Tudor Berariu Date: Tue, 10 Oct 2023 14:51:12 +0100 Subject: [PATCH] Add target hours and minutes for 'enter-time' task --- miniwob/html/miniwob/enter-time.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/miniwob/html/miniwob/enter-time.html b/miniwob/html/miniwob/enter-time.html index fcf8ba05..55729807 100644 --- a/miniwob/html/miniwob/enter-time.html +++ b/miniwob/html/miniwob/enter-time.html @@ -20,8 +20,13 @@ var START_DATE = new Date(2016, 0, 1); // January 1, 2015 var END_DATE = new Date(2016, 11, 31); // December 31, 2016 +var TARGET_HOUR = null; +var TARGET_MINUTES = null; + var genProblem = function() { var d = ui_utils.randomDate(START_DATE, END_DATE); + TARGET_HOUR = d.getHours(); + TARGET_MINUTES = d.getMinutes(); d3.select('#tt')[0][0].value = ''; var readableTime = d.toLocaleTimeString().replace(/([\d]+:[\d]{2})(:[\d]{2})(.*)/, '$1$3');