diff --git a/index.html b/index.html index 093f758..76e4eba 100644 --- a/index.html +++ b/index.html @@ -250,6 +250,12 @@ box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1); } + /* Make text input look like password field */ + input[type="text"]#apiKey { + -webkit-text-security: disc; + text-security: disc; + } + .btn-go { width: 100%; padding: 16px; @@ -627,50 +633,54 @@
- -
-
-
- - -
-
- - +
+ +
+
+
+ + +
+
+ + +
-
- -
- - -
-
- - -
- -
- Visit Alpaca Markets to get your API key. -
-
+ +
+ + +
+
+ + +
+ +
+ Visit Alpaca Markets to get your API key. +
+
+
@@ -724,7 +734,9 @@ let hideTimeout = null; let isRevealed = false; - async function login() { + async function login(event) { + event.preventDefault(); // Prevent form submission + const apiKey = document.getElementById('apiKey').value.trim(); const apiSecret = document.getElementById('apiSecret').value.trim(); const errorDiv = document.getElementById('loginError'); @@ -970,14 +982,6 @@ document.getElementById('dashboard').style.display = 'none'; document.getElementById('loginError').innerHTML = ''; } - - // Allow Enter key to submit - document.getElementById('apiKey').addEventListener('keypress', (e) => { - if (e.key === 'Enter') login(); - }); - document.getElementById('apiSecret').addEventListener('keypress', (e) => { - if (e.key === 'Enter') login(); - });