From d4336bc20eb49e6244d3f314447c93b3634bb5ce Mon Sep 17 00:00:00 2001 From: Kasalehlia <kasalehlia@clonejo.de> Date: Wed, 18 Jan 2017 20:52:51 +0100 Subject: [PATCH] fixed it! --- modules/brand.js | 3 ++- modules/brand/status.mustache | 2 ++ modules/brand/template.mustache | 1 - 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/brand.js b/modules/brand.js index dad6692..a45ae69 100644 --- a/modules/brand.js +++ b/modules/brand.js @@ -14,10 +14,11 @@ var status = {}; function renderStatus(sock, everything) { var sendInner = function () { + status.random = ''+Math.random(); sock.emit('brand.status', Mustache.render(TEMPLATES.status, status)); } if (everything) { - sock.emit('brand', Mustache.render(TEMPLATES.template, {random: Math.random()})); + sock.emit('brand', Mustache.render(TEMPLATES.template, {})); setTimeout(sendInner, 3000); } else { sendInner(); diff --git a/modules/brand/status.mustache b/modules/brand/status.mustache index a81fcab..06e7822 100644 --- a/modules/brand/status.mustache +++ b/modules/brand/status.mustache @@ -1,3 +1,5 @@ Space is {{#open}}<span class="open">open</span> on <span class="person">{{trigger_person}}</span>{{/open}} {{^open}}<span class="closed">closed</span>{{/open}} <br>since {{since}} +<br> +<img style="width: 470px; height: 310px" src="http://maurudor.de/?rasd={{random}}"></img> diff --git a/modules/brand/template.mustache b/modules/brand/template.mustache index 35b25e6..b2be527 100644 --- a/modules/brand/template.mustache +++ b/modules/brand/template.mustache @@ -1,3 +1,2 @@ <img src="/modules/brand/stratum0_logo.svg"><br> <h3 data-infodisplay-outlet="status"></h3> -<img style="width: 470px; height: 310px" src="http://maurudor.de/?rasd={{random}}"></img> -- GitLab