Include cosmopolite and hogfather. Delay construction until hogfather is ready.
This commit is contained in:
@@ -2,6 +2,8 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>BabyStats</title>
|
<title>BabyStats</title>
|
||||||
|
<script src="/cosmopolite/static/cosmopolite.js" charset="UTF-8"></script>
|
||||||
|
<script src="/cosmopolite/static/hogfather.js" charset="UTF-8"></script>
|
||||||
<script src="/static/babystats.js" charset="UTF-8"></script>
|
<script src="/static/babystats.js" charset="UTF-8"></script>
|
||||||
<script src="https://use.typekit.net/ifo2asf.js"></script>
|
<script src="https://use.typekit.net/ifo2asf.js"></script>
|
||||||
<script>try{Typekit.load();}catch(e){}</script>
|
<script>try{Typekit.load();}catch(e){}</script>
|
||||||
|
|||||||
@@ -23,6 +23,10 @@ var BabyStats = function(container) {
|
|||||||
|
|
||||||
this.intervals_ = {};
|
this.intervals_ = {};
|
||||||
|
|
||||||
|
this.cosmo_ = new Cosmopolite();
|
||||||
|
hogfather.PublicChat.Create(this.cosmo_).then(function(chat) {
|
||||||
|
this.chat_ = chat;
|
||||||
|
|
||||||
this.buildCells_();
|
this.buildCells_();
|
||||||
this.buildStylesheet_();
|
this.buildStylesheet_();
|
||||||
this.buildLayout_();
|
this.buildLayout_();
|
||||||
@@ -33,6 +37,7 @@ var BabyStats = function(container) {
|
|||||||
this.gridWidthCells_ = grid.gridWidthCells;
|
this.gridWidthCells_ = grid.gridWidthCells;
|
||||||
this.gridHeightCells_ = grid.gridHeightCells;
|
this.gridHeightCells_ = grid.gridHeightCells;
|
||||||
this.buildGrid_();
|
this.buildGrid_();
|
||||||
|
}.bind(this));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user