From 76273d4cbc163a1fe773a6198a2ac67144fa5bd2 Mon Sep 17 00:00:00 2001
From: Eric Bidelman
Date: Tue, 5 Mar 2013 08:08:25 -0800
Subject: Patch for customizing evenet title. Fixes issue 12
---
js/slide-deck.js | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
(limited to 'js')
diff --git a/js/slide-deck.js b/js/slide-deck.js
index 50b9dc5..6fc99eb 100644
--- a/js/slide-deck.js
+++ b/js/slide-deck.js
@@ -315,7 +315,10 @@ SlideDeck.prototype.loadConfig_ = function(config) {
}
if (settings.title) {
- document.title = settings.title.replace(/
/, ' ') + ' - Google IO 2012';
+ document.title = settings.title.replace(/
/, ' ');
+ if (settings.eventTitle) {
+ document.title += ' - ' + settings.eventTitle;
+ }
document.querySelector('[data-config-title]').innerHTML = settings.title;
}
@@ -363,7 +366,11 @@ SlideDeck.prototype.loadConfig_ = function(config) {
var dataConfigPresenter = document.querySelector('[data-config-presenter]');
if (dataConfigPresenter) {
- document.querySelector('[data-config-presenter]').innerHTML = html;
+ dataConfigPresenter.innerHTML = html;
+ if (settings.eventTitle) {
+ dataConfigPresenter.innerHTML = dataConfigPresenter.innerHTML + '
' +
+ settings.eventTitle;
+ }
}
}
--
cgit v1.2.3