Add files via upload

master
Manas Khurana 2018-05-19 19:46:48 +05:30 committed by GitHub
parent 4907af9e2c
commit bf9041f8a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 4 deletions

View File

@ -785,7 +785,7 @@ function startAndPops() { // manage what happens in the very beginning and also
}
} else {
try {
tutorial();
tutorial(0);
} catch (e) {
isTutorialOn[0] = 1;
}
@ -793,7 +793,6 @@ function startAndPops() { // manage what happens in the very beginning and also
}
function getValue(value = getText('username')) {
if (!internet) {
changeText('')
changeText('username', 'Refresh the page');
return;
}
@ -869,8 +868,7 @@ function queryName(query) {
}
document.getElementById('dp').style.display = 'block';
document.getElementById('extra').style.display = 'block';
// if tutorial is on, disable it (happens when clicked on suggest as getvalue is not called)
if (isTutorialOn[0]) tutorial(3);
// set channel name in input box and title
channelname = e.items[0].snippet.title;
changeText(document.getElementById('username'), channelname);
@ -1100,6 +1098,9 @@ document.getElementById('username').addEventListener('focusout', function () {
clearInterval(usernameKeyUpInter);
usernameKeyUp = [false, false];
}
if (isTutorialOn[1]===3) {
tutorial(1);
}
}, 200);
});