removed useless logic
This commit is contained in:
@@ -23,14 +23,10 @@ function typeWriter() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
document.addEventListener('mousedown', mouseDown, false)
|
document.addEventListener('click', nextDlg, false)
|
||||||
document.addEventListener('mouseup', mouseUp, false)
|
|
||||||
|
|
||||||
function mouseDown() {
|
function nextDlg() {
|
||||||
document.getElementById("triangle").hidden = true;
|
document.getElementById("triangle").hidden = true;
|
||||||
}
|
|
||||||
|
|
||||||
function mouseUp() {
|
|
||||||
if (document.getElementById("dlg-text").innerHTML.length == dlgLines[dlgPointer].length) { //check if text is typed out
|
if (document.getElementById("dlg-text").innerHTML.length == dlgLines[dlgPointer].length) { //check if text is typed out
|
||||||
document.getElementById("triangle").hidden = true;
|
document.getElementById("triangle").hidden = true;
|
||||||
if (dlgPointer < dlgLines.length - 1) { //check if dlgPointer is not at the array end
|
if (dlgPointer < dlgLines.length - 1) { //check if dlgPointer is not at the array end
|
||||||
|
Reference in New Issue
Block a user