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