ptgbot/html/motd.js
Thierry Carrez e361c20008 Add common navbar and display MOTD on all pages
Now that we have a page for etherpads, navigation between the various
page is a bit awkward. This change introduces a common navbar across
all pages, and makes sure the MOTD displays on all of them.

This makes some of the links redundant, so we remove them.

Change-Id: I57d02c505ced355d53bc79e0d8240ea63737eae3
2019-11-14 16:09:58 +01:00

10 lines
337 B
JavaScript

// sets variable source to the animalTemplate id in index.html
var dsource = document.getElementById("MOTDTemplate").innerHTML;
// Handlebars compiles the above source into a template
var dtemplate = Handlebars.compile(dsource);
$.getJSON("ptg.json", function(json) {
document.getElementById("MOTD").innerHTML = dtemplate(json);
});