Forum Discussion
UychhorngKhan-8
4 years agoCommunity Member
Submit Result Trigger at a Specific Daily Time
Hi all,
I am working on a project with a requirement of a specific actual exam time. It is quite a challenge as the SL360 only supports the Quiz Timer which is not the right concept. Our practice ...
UychhorngKhan-8
4 years agoCommunity Member
Hi Raj,
Your provided code was perfectly worked. But, when I tried to change the value it didn't work. Not sure I am doing it the right way or not.
Could you please advise?
PS: I also made a change about the "if condition" of timeString=1130 as well.
var myVar = setInterval(myTimer, 1000);
var flag = true;
function myTimer() {
var currentTime = new Date()
var month = currentTime.getMonth() + 1
var day = currentTime.getDate()
var year = currentTime.getFullYear()
var hour = currentTime.getHours();
var minute = currentTime.getMinutes();
var timeString=hour + minute ;
if (timeString>="1130"|| timeString >= 1130 && flag== true){
flag = false;
myStopFunction();
var player = GetPlayer();
player.SetVar("SystemTime",timeString);
}
}
function myStopFunction() {
clearInterval(myVar);
}
Related Content
- 6 months ago
- 10 years ago