Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
leliel12 committed Jan 2, 2018
1 parent 21b17f6 commit 857f8e7
Show file tree
Hide file tree
Showing 2 changed files with 3,041 additions and 31 deletions.
34 changes: 17 additions & 17 deletions doc/source/_static/custom.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
$(document).ready(function(){
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 $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 $allPanels = $("div.panel-group#extractors div.panel, div.panel-collapse");
//~ var $allPanels = $("div.panel-group#extractors div.panel, div.panel-collapse");

$("div.panel-group#extractors div.panel").each(function(idx, div){
var $div = $(div);
var $a = $div.find("a.extractor-doc");
var $panel = $div.find("div.panel-collapse ");
var title = $div.find("span.extractor-name").text().trim();
var id = $div.find("div.panel-heading").attr("id");
//~ $("div.panel-group#extractors div.panel").each(function(idx, div){
//~ var $div = $(div);
//~ var $a = $div.find("a.extractor-doc");
//~ var $panel = $div.find("div.panel-collapse ");
//~ var title = $div.find("span.extractor-name").text().trim();
//~ var id = $div.find("div.panel-heading").attr("id");

$ulFeaturesList.append("<li><a href='#" + id + "'>" + title + "</a></li>");
$ulFeaturesList.find("a[href='#" + id + "']").click(function(){
$allPanels.not($panel).collapse("hide");
$panel.collapse('show');
window.location.hash = "#" + id;
});
});
//~ $ulFeaturesList.append("<li><a href='#" + id + "'>" + title + "</a></li>");
//~ $ulFeaturesList.find("a[href='#" + id + "']").click(function(){
//~ $allPanels.not($panel).collapse("hide");
//~ $panel.collapse('show');
//~ window.location.hash = "#" + id;
//~ });
//~ });

});

0 comments on commit 857f8e7

Please sign in to comment.