another test file
This commit is contained in:
parent
3a324dfab4
commit
901fd15da1
@ -10950,18 +10950,21 @@
|
||||
const projectCode = "2020_project_1"
|
||||
const branch = "branch1"
|
||||
|
||||
if(TEDxKanke.getAssignedInterns(projectCode, branch, taskNumber[venue]).includes(userfloID)){
|
||||
if( TEDxKanke.getAssignedInterns(projectCode, branch, taskNumber[venue])!=null && TEDxKanke.getAssignedInterns(projectCode, branch, taskNumber[venue]).includes(userfloID)){
|
||||
console.log(`${userfloID} is already authorized`);
|
||||
showMessege('error', `${userfloID} is already authorized`);
|
||||
document.getElementById('authorize_btn').click()
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Now run a function for the next 60 seconds
|
||||
// Will execute myCallback every 5 seconds
|
||||
var currenttime = Date.now();
|
||||
var maxDelay = 60000
|
||||
document.getElementById('result').textContent = 'Waiting 20 seconds for user authorization';
|
||||
var interval = setInterval(myScan, 2000);
|
||||
stopScanning()
|
||||
startCountdown()
|
||||
// fetch for details of messages
|
||||
function myScan() {
|
||||
@ -11029,10 +11032,9 @@
|
||||
console.log('decoded value is ' + result.text);
|
||||
window.decodedQr = result.text;
|
||||
debugger;
|
||||
if (result.text.length == 34 && result.text[0] == 'F') {
|
||||
if (result.text.length == 34 && result.text[0] == 'F' && venue!=null) {
|
||||
var userfloID = result.text;
|
||||
// fetch for details of messages
|
||||
stopScanning()
|
||||
messageScan(userfloID, venue)
|
||||
}
|
||||
else if (result.text.length > 40) {
|
||||
|
||||
11533
test1.html
Normal file
11533
test1.html
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user