Please turn your device to portrait for the best viewing.

document.addEventListener("DOMContentLoaded", function () { const input = document.querySelector(".wpsms-activation-code"); const button = document.querySelector(".wpsms-activation-submit"); if (button) { button.setAttribute("type", "submit"); } if (input) { input.setAttribute("maxlength", "4"); input.setAttribute("pattern", "\\d{4}"); input.setAttribute("required", "true"); // allow Enter to submit once 4 digits are typed input.addEventListener("keypress", function (event) { if (event.key === "Enter" && this.value.length === 4) { event.preventDefault(); this.form.submit(); } }); } });