diff --git a/index3.html b/index3.html index 3d76915..cb80ca5 100644 --- a/index3.html +++ b/index3.html @@ -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); });