diff options
Diffstat (limited to 'js')
-rw-r--r-- | js/slide-deck.js | 11 |
1 files changed, 9 insertions, 2 deletions
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) { | |||
315 | } | 315 | } |
316 | 316 | ||
317 | if (settings.title) { | 317 | if (settings.title) { |
318 | document.title = settings.title.replace(/<br\/?>/, ' ') + ' - Google IO 2012'; | 318 | document.title = settings.title.replace(/<br\/?>/, ' '); |
319 | if (settings.eventTitle) { | ||
320 | document.title += ' - ' + settings.eventTitle; | ||
321 | } | ||
319 | document.querySelector('[data-config-title]').innerHTML = settings.title; | 322 | document.querySelector('[data-config-title]').innerHTML = settings.title; |
320 | } | 323 | } |
321 | 324 | ||
@@ -363,7 +366,11 @@ SlideDeck.prototype.loadConfig_ = function(config) { | |||
363 | 366 | ||
364 | var dataConfigPresenter = document.querySelector('[data-config-presenter]'); | 367 | var dataConfigPresenter = document.querySelector('[data-config-presenter]'); |
365 | if (dataConfigPresenter) { | 368 | if (dataConfigPresenter) { |
366 | document.querySelector('[data-config-presenter]').innerHTML = html; | 369 | dataConfigPresenter.innerHTML = html; |
370 | if (settings.eventTitle) { | ||
371 | dataConfigPresenter.innerHTML = dataConfigPresenter.innerHTML + '<br>' + | ||
372 | settings.eventTitle; | ||
373 | } | ||
367 | } | 374 | } |
368 | } | 375 | } |
369 | 376 | ||