added mobile input

This commit is contained in:
Nick
2019-04-06 22:59:33 -06:00
parent 3594343a1d
commit 1009b94314
2 changed files with 5 additions and 0 deletions
Binary file not shown.
+5
View File
@@ -51,6 +51,11 @@ var StoryTracker = {
Typer.appendToText("\nWhich action do you choose? ")
StoryTracker.action_int = 0
acceptInput = true
if( /Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent) ) {
inputStr = window.prompt("sometext","defaultText");
StoryTracker.processInput()
}
}
},