From 194965961f2897c3b8873f91c41b31e954dabf8b Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Sun, 27 Dec 2015 10:17:15 -0800 Subject: [PATCH] Focus on child name field when starting. --- static/babystats.js | 1 + 1 file changed, 1 insertion(+) diff --git a/static/babystats.js b/static/babystats.js index 48e34d6..4f3e65f 100644 --- a/static/babystats.js +++ b/static/babystats.js @@ -331,6 +331,7 @@ BabyStats.prototype.buildLayout_ = function() { this.childName_.placeholder = 'Child name'; this.childName_.addEventListener('input', this.checkOverlay_.bind(this)); this.container_.appendChild(this.childName_); + this.childName_.focus(); this.yourName_ = document.createElement('input'); this.addCSSClass_(this.yourName_, 'babyStatsYourName');