From 2544532ea117d3d71864bf790e8657d58b92b150 Mon Sep 17 00:00:00 2001 From: zhlinh Date: Thu, 25 Aug 2016 10:48:03 +0800 Subject: [PATCH] adapt javascript to css on doc page --- docs/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/index.md b/docs/index.md index 61b6d2c..a772fcb 100644 --- a/docs/index.md +++ b/docs/index.md @@ -34,13 +34,13 @@ Defaults shown below 'highlightOnScroll': true, //add class to heading that is currently in focus 'highlightOffset': 100, //offset to trigger the next headline 'anchorName': function(i, heading, prefix) { //custom function for anchor name - return prefix+i; + return prefix + i; }, 'headerText': function(i, heading, $heading) { //custom function building the header-item text return $heading.data('toc-title') || $heading.text(); }, 'itemClass': function(i, heading, $heading, prefix) { // custom function for item class - return $heading[0].tagName.toLowerCase(); + return prefix + '-' + $heading[0].tagName.toLowerCase(); } });