From 619a9086bcb15ce4feb346e26eaed8774ce1a69e Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Wed, 30 Dec 2015 19:12:35 -0800 Subject: [PATCH] Show the back side by default for those without write access. --- static/babystats.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/static/babystats.js b/static/babystats.js index 6984e2f..b9c6eba 100644 --- a/static/babystats.js +++ b/static/babystats.js @@ -92,6 +92,11 @@ BabyStats.prototype.onChatReady_ = function(chat) { this.gridHeightCells_ = grid.gridHeightCells; this.buildGrid_(); + if (!this.chat_.amWriter()) { + // Start on back side if we're read-only. + this.flipperRule_.style.transform = 'rotateY(180deg)'; + } + var messages = this.chat_.getMessages(); messages.forEach(this.handleMessage_.bind(this, false)); this.chat_.addEventListener('message', this.onMessage_.bind(this));