diff options
author | Wu Cheng-Han | 2016-08-15 11:27:32 +0800 |
---|---|---|
committer | Wu Cheng-Han | 2016-08-15 11:27:32 +0800 |
commit | b4ad011dc1cec22b088578ca019f76c0c9ba4612 (patch) | |
tree | cc879b775b9538bbfe2a3cbdaa4c23cb1d20ebb8 /public/views | |
parent | a013c9d3bc0eb98c935e80bdb694c1a1cf7bd4c4 (diff) |
Fix toc id naming to avoid overlap with user toc
Diffstat (limited to '')
-rw-r--r-- | public/views/body.ejs | 4 | ||||
-rw-r--r-- | public/views/html.hbs | 8 | ||||
-rw-r--r-- | public/views/pretty.ejs | 4 |
3 files changed, 8 insertions, 8 deletions
diff --git a/public/views/body.ejs b/public/views/body.ejs index d2010b4a..acf929ad 100644 --- a/public/views/body.ejs +++ b/public/views/body.ejs @@ -29,11 +29,11 @@ <a id="tocLabel" class="ui-toc-label btn btn-default" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false" title="Table of content"> <i class="fa fa-bars"></i> </a> - <ul id="toc" class="ui-toc-dropdown dropdown-menu" aria-labelledby="tocLabel"> + <ul id="ui-toc" class="ui-toc-dropdown dropdown-menu" aria-labelledby="tocLabel"> </ul> </div> </div> - <div id="toc-affix" class="ui-affix-toc ui-toc-dropdown unselectable hidden-print" data-spy="affix" style="top:51px;display:none;"></div> + <div id="ui-toc-affix" class="ui-affix-toc ui-toc-dropdown unselectable hidden-print" data-spy="affix" style="top:51px;display:none;"></div> </div> </div> <!-- clipboard modal --> diff --git a/public/views/html.hbs b/public/views/html.hbs index 08b6f4ff..7213ff9f 100644 --- a/public/views/html.hbs +++ b/public/views/html.hbs @@ -39,13 +39,13 @@ <a id="tocLabel" class="ui-toc-label btn btn-default" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false" title="Table of content"> <i class="fa fa-bars"></i> </a> - <ul id="toc" class="ui-toc-dropdown dropdown-menu" aria-labelledby="tocLabel"> - {{{toc}}} + <ul id="ui-toc" class="ui-toc-dropdown dropdown-menu" aria-labelledby="tocLabel"> + {{{ui-toc}}} </ul> </div> </div> - <div id="toc-affix" class="ui-affix-toc ui-toc-dropdown unselectable hidden-print" data-spy="affix" style="top:17px;display:none;" {{{lang}}} {{{dir}}}> - {{{toc-affix}}} + <div id="ui-toc-affix" class="ui-affix-toc ui-toc-dropdown unselectable hidden-print" data-spy="affix" style="top:17px;display:none;" {{{lang}}} {{{dir}}}> + {{{ui-toc-affix}}} </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" defer></script> diff --git a/public/views/pretty.ejs b/public/views/pretty.ejs index 3afb2a1a..1de3610c 100644 --- a/public/views/pretty.ejs +++ b/public/views/pretty.ejs @@ -67,11 +67,11 @@ <a id="tocLabel" class="ui-toc-label btn btn-default" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false" title="Table of content"> <i class="fa fa-bars"></i> </a> - <ul id="toc" class="ui-toc-dropdown dropdown-menu" aria-labelledby="tocLabel"> + <ul id="ui-toc" class="ui-toc-dropdown dropdown-menu" aria-labelledby="tocLabel"> </ul> </div> </div> - <div id="toc-affix" class="ui-affix-toc ui-toc-dropdown unselectable hidden-print" data-spy="affix" style="display:none;"></div> + <div id="ui-toc-affix" class="ui-affix-toc ui-toc-dropdown unselectable hidden-print" data-spy="affix" style="display:none;"></div> <% if(typeof disqus !== 'undefined' && disqus) { %> <div class="container-fluid" style="max-width: 758px; margin-bottom: 40px;"> <%- include disqus %> |