XMPP invitation landing page, without javascript
Select the XMPP URI when clicked
Alex Jordan 2017-01-18
parent aa3f32b · commit 9e2841d
-rw-r--r--scripts/main.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/main.js b/scripts/main.js
index 242cd54..81771e5 100644
--- a/scripts/main.js
+++ b/scripts/main.js
@@ -90,6 +90,9 @@
// functionality
load_clients();
window.addEventListener("hashchange", rehash, false);
+ document.getElementById("url_in").addEventListener("focus", function(event) {
+ event.target.select();
+ });
}
// Wait for the DOM to be ready