From 4c303c3a9eff5efbb95a770c7362564e8a93c822 Mon Sep 17 00:00:00 2001 From: Kyle <41976328+ImKyle4815@users.noreply.github.com> Date: Wed, 25 Dec 2019 11:25:14 -0800 Subject: [PATCH] removed autocorrect --- data/scripts/main.js | 15 +++++++++++++++ data/site/other/life/life.js | 9 +++++++++ index.html | 2 +- 3 files changed, 25 insertions(+), 1 deletion(-) diff --git a/data/scripts/main.js b/data/scripts/main.js index 46263491..7720d5e7 100644 --- a/data/scripts/main.js +++ b/data/scripts/main.js @@ -1009,3 +1009,18 @@ function importText(text, target) { } } + + + +var inputsToRemoveAutocorrect = document.querySelectorAll("input"); + +inputsToRemoveAutocorrect.forEach(input => { + input.setAttribute("autocomplete", "off") + input.setAttribute("autocorrect", "off") + input.setAttribute("autocapitalize", "off") + input.setAttribute("spellcheck", false) +}) + + + + diff --git a/data/site/other/life/life.js b/data/site/other/life/life.js index f2dd2bb4..8810ca5c 100644 --- a/data/site/other/life/life.js +++ b/data/site/other/life/life.js @@ -351,3 +351,12 @@ document.getElementById("mainGrid").addEventListener("touchstart", function() { doubleTouchStartTimestamp = now }) //Updated :D + +var inputsToRemoveAutocorrect = document.querySelectorAll("input"); + +inputsToRemoveAutocorrect.forEach(input => { + input.setAttribute("autocomplete", "off") + input.setAttribute("autocorrect", "off") + input.setAttribute("autocapitalize", "off") + input.setAttribute("spellcheck", false) + }) diff --git a/index.html b/index.html index 3e45dbcd..72c104d4 100644 --- a/index.html +++ b/index.html @@ -51,7 +51,7 @@
- +
How To Use Text Codes