Skip to content

Commit

Permalink
fix js
Browse files Browse the repository at this point in the history
  • Loading branch information
leliel12 committed Mar 15, 2018
1 parent 13790e1 commit 3cbcf36
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
10 changes: 4 additions & 6 deletions doc/source/_static/custom.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
function setupContent(){
$("div#extractors .warning").addClass("alert alert-warning");
$("div#extractors .warning").prepend("<h5>Warning<h5><hr>");

var $liFeatures = $("ul.localtoc li").has("a[href='#The-Features']");
$liFeatures.append("<ul id='features-list-links'></ul>");
var $ulFeaturesList = $liFeatures.find("ul#features-list-links");
var $ulFeaturesList = $("<ul id='features-list-links'></ul>");

var $allPanels = $("div.panel-group#extractors div.panel, div.panel-collapse");

Expand All @@ -22,6 +17,9 @@ function setupContent(){
window.location.hash = "#" + id;
});
});

var $liFeatures = $("ul.localtoc li").has("a[href='#The-Features']");
$liFeatures.append($ulFeaturesList);
}

$(document).ready(function(){
Expand Down
2 changes: 1 addition & 1 deletion doc/source/index.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -5383,7 +5383,7 @@
"</div>\n",
"<script>\n",
"$(\"div#extractors .warning\").addClass(\"alert alert-warning\");\n",
"$(\"div#extractors .warning\").prepend(\"<h5>Warning<h5><hr>\");\n",
"$(\"div#extractors .warning\").prepend(\"<h5 class='text-warning'>Warning<h5><hr>\");\n",
"</script>\n"
],
"text/plain": [
Expand Down
2 changes: 1 addition & 1 deletion doc/source/tutorial.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def as_table(features, values):
</div>
<script>
$("div#extractors .warning").addClass("alert alert-warning");
$("div#extractors .warning").prepend("<h5>Warning<h5><hr>");
$("div#extractors .warning").prepend("<h5 class='text-warning'>Warning<h5><hr>");
</script>
""")
Expand Down

0 comments on commit 3cbcf36

Please sign in to comment.