Lint fixes.
This commit is contained in:
@@ -598,8 +598,8 @@ BabyStats.prototype.buildLayout_ = function() {
|
|||||||
this.addCSSClass_(this.tempF_, 'babyStatsTempF');
|
this.addCSSClass_(this.tempF_, 'babyStatsTempF');
|
||||||
temp.appendChild(this.tempF_);
|
temp.appendChild(this.tempF_);
|
||||||
this.tempF_.addEventListener('input', function() {
|
this.tempF_.addEventListener('input', function() {
|
||||||
this.tempC_.value =
|
this.tempC_.value = Math.round(
|
||||||
Math.round((((parseFloat(this.tempF_.value) || 0) - 32) / 1.8) * 10) / 10;
|
(((parseFloat(this.tempF_.value) || 0) - 32) / 1.8) * 10) / 10;
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
|
|
||||||
temp.appendChild(document.createTextNode('°F'));
|
temp.appendChild(document.createTextNode('°F'));
|
||||||
@@ -924,7 +924,8 @@ BabyStats.prototype.updateDisplayPage_ = function() {
|
|||||||
*/
|
*/
|
||||||
BabyStats.prototype.updateDisplayDate_ = function(message) {
|
BabyStats.prototype.updateDisplayDate_ = function(message) {
|
||||||
var date = new Date(message.created * 1000);
|
var date = new Date(message.created * 1000);
|
||||||
var dateStr = date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate();
|
var dateStr =
|
||||||
|
date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate();
|
||||||
var days = [
|
var days = [
|
||||||
'Sunday',
|
'Sunday',
|
||||||
'Monday',
|
'Monday',
|
||||||
|
|||||||
Reference in New Issue
Block a user