Last active
December 11, 2022 08:10
-
-
Save letsgoawaydev/21227f8da58cfe024c9329c031b72c7e to your computer and use it in GitHub Desktop.
Revisions
-
letsgoawaydev revised this gist
Dec 11, 2022 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -10,7 +10,7 @@ function onScreenKeyboard() { document.body.removeChild(inputBox); }; inputBox.onkeyup = function () { inputBoxValue = inputBox.value; if (evt.keyCode === 13) { inputBox.blur(); } -
letsgoawaydev revised this gist
Dec 11, 2022 . 1 changed file with 16 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,10 +1,23 @@ let inputBoxValue = ""; function onScreenKeyboard() { let inputBox = document.createElement("input"); inputBox.id = "inputBox"; inputBox.style = "opacity: 1; border: none; outline: 0; width: 0%; height: 0%; position: absolute; top: 0px; caret-color: transparent; color: transparent;"; inputBox.type = "text"; document.body.appendChild(inputBox); inputBox.focus(); inputBox.onblur = function () { document.body.removeChild(inputBox); }; inputBox.onkeyup = function () { inputBoxValue = inputbox.value; if (evt.keyCode === 13) { inputBox.blur(); } } inputBox.onchange = function () { inputBoxValue = inputBox.value; // We set this so the inputBox.value doesnt become undefined once we remove it } return inputBox; }// You may need to use an async function or requestAnimationFrame or setInterval to // get the current value of inputBoxValue (the text the user writes) -
letsgoawaydev revised this gist
Dec 11, 2022 . 1 changed file with 8 additions and 8 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,10 +1,10 @@ function onScreenKeyboard() { let inputBox = document.createElement("input"); inputBox.id = "inputBox"; inputBox.style = "opacity: 1; border: none; outline: 0; width:0%; height:0%; position:absolute; top:0px; caret-color: transparent; color: transparent;"; inputBox.type = "text"; document.body.appendChild(inputBox); document.getElementById("inputBox").focus(); return inputBox; }// You may need to use an async function or requestAnimationFrame or setInterval to // get the current value of inputBox.value (the text the user writes) -
letsgoawaydev revised this gist
Dec 10, 2022 . 1 changed file with 1 addition and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -6,7 +6,5 @@ function onScreenKeyboard() { document.body.appendChild(inputBox); document.getElementById("inputBox").focus(); return inputBox; } // You may need to use an async function or requestAnimationFrame or setInterval to // get the current value of inputBox.value (the text the user writes) -
letsgoawaydev revised this gist
Dec 10, 2022 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -9,3 +9,4 @@ function onScreenKeyboard() { } // You may need to use an async function or requestAnimationFrame or setInterval to // get the current value of inputBox.value (the text the user writes) -
letsgoawaydev revised this gist
Dec 10, 2022 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -8,4 +8,4 @@ function onScreenKeyboard() { return inputBox; } // You may need to use an async function or requestAnimationFrame or setInterval to // get the current value of inputBox.value (the text the user writes) -
letsgoawaydev revised this gist
Dec 10, 2022 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -7,4 +7,5 @@ function onScreenKeyboard() { document.getElementById("inputBox").focus(); return inputBox; } // You may need to use an async function or requestAnimationFrame or setInterval to // get the current value of inputBox.value (the text the user writes) -
letsgoawaydev created this gist
Dec 10, 2022 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ function onScreenKeyboard() { let inputBox = document.createElement("input"); inputBox.id = "inputBox"; inputBox.style = "opacity: 1; border: none; outline: 0; width:0%; height:0%; caret-color: transparent; color: transparent;"; inputBox.type = "text"; document.body.appendChild(inputBox); document.getElementById("inputBox").focus(); return inputBox; } // You might need to use an async function to get the current value of inputBox.value (the text the user writes)