Add custom booklet headers/footers feature
The headers/footers are defined with the |customHeader| and
|customFooter| keys respectively in the concert JSON definition.
Change-Id: I461266ca8680a1b79abc85e004c92b810a4782fd
diff --git a/js/script.js b/js/script.js
index 90ae29b..abe30b0 100644
--- a/js/script.js
+++ b/js/script.js
@@ -79,6 +79,13 @@
document.getElementById('concert-title').textContent = booklet.title;
document.getElementById('concert-subtitle').textContent = booklet.subtitle;
+ if ('customHeader' in booklet)
+ document.getElementById('booklet-custom-header').innerHTML =
+ booklet.customHeader;
+ if ('customFooter' in booklet)
+ document.getElementById('booklet-custom-footer').innerHTML =
+ booklet.customFooter;
+
var bookletContent = document.getElementById('booklet-content');
bookletContent.textContent = '';
booklet.songs.forEach(song => {