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 +++++++++--
slide_config.js | 1 +
template.html | 4 ++--
3 files changed, 12 insertions(+), 4 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) {
}
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;
+ }
}
}
diff --git a/slide_config.js b/slide_config.js
index 4a7d3f4..a849147 100644
--- a/slide_config.js
+++ b/slide_config.js
@@ -3,6 +3,7 @@ var SLIDE_CONFIG = {
settings: {
title: 'Title Goes Here
Up To Two Lines',
subtitle: 'Subtitle Goes Here',
+ //eventTitle: 'Google I/O 2013',
useBuilds: true, // Default: true. False will turn off slide animation builds.
usePrettify: true, // Default: true
enableSlideAreas: true, // Default: true. False turns off the click areas on either slide of the slides.
diff --git a/template.html b/template.html
index 3560397..93eb2a0 100644
--- a/template.html
+++ b/template.html
@@ -1,5 +1,5 @@
--
cgit v1.2.3