Fix API search, links, sidebar style; update panino req version for funcdocs fix
This commit is contained in:
parent
d394552587
commit
8298881fc0
60 changed files with 80 additions and 148 deletions
35
api/resources/javascripts/clicker.js
Normal file
35
api/resources/javascripts/clicker.js
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
$(function() {
|
||||
// when hovering over arrow, add highlight (only if inactive)
|
||||
$("h3.methodToggle").hover(function () {
|
||||
if (!$("h3.methodToggle").hasClass('active'))
|
||||
$(this).addClass("methodToggleHover");
|
||||
},
|
||||
function () {
|
||||
$(this).removeClass("methodToggleHover");
|
||||
}
|
||||
);
|
||||
|
||||
// after expanding the hidden description, hide the ellipsis
|
||||
$('.signature-call, .signature-returns', '.signature').click(function() {
|
||||
var $article = $(this).closest('.article'),
|
||||
$arrow = $('h3.methodClicker', $article);
|
||||
|
||||
if (!$article.hasClass('methodToggleOpen') || this.force) {
|
||||
$article.addClass('methodToggleOpen');
|
||||
$arrow.removeClass('inactive').addClass('active');
|
||||
|
||||
var data = location.hash = $arrow[0].id.replace(/^js_/, "");
|
||||
scrollTo(null, data);
|
||||
}
|
||||
else {
|
||||
$article.removeClass('methodToggleOpen');
|
||||
$arrow.removeClass('active').addClass('inactive');
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
$('.related-to', '.metaInfo').click(function(){
|
||||
location.hash = $(this).find('a').attr('href').split('#')[1];
|
||||
});
|
||||
});
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue