From b367e110b639ab707e848d1d6de70bb094cd0edd Mon Sep 17 00:00:00 2001 From: Wu Cheng-Han Date: Mon, 1 Aug 2016 00:08:22 +0800 Subject: Update to support slideOptions in the YAML metadata --- public/js/slide.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'public/js') diff --git a/public/js/slide.js b/public/js/slide.js index 074e4df9..996610fb 100644 --- a/public/js/slide.js +++ b/public/js/slide.js @@ -44,10 +44,13 @@ var defaultOptions = { dependencies: deps }; +// options from yaml meta +var options = JSON.parse($("#options").text()); + // options from URL query string var queryOptions = Reveal.getQueryHash() || {}; -var options = extend(defaultOptions, queryOptions); +var options = extend(defaultOptions, options, queryOptions); Reveal.initialize(options); viewAjaxCallback = function () { -- cgit v1.2.3