mirror of
https://github.com/rclone/rclone.git
synced 2024-12-05 07:20:35 +08:00
15 lines
380 B
JavaScript
15 lines
380 B
JavaScript
|
// Site JS
|
||
|
|
||
|
// Add hover links on headings
|
||
|
$(function() {
|
||
|
return $("h2, h3, h4, h5, h6").each(function(i, el) {
|
||
|
var $el, icon, id;
|
||
|
$el = $(el);
|
||
|
id = $el.attr('id');
|
||
|
icon = '<i class="fa fa-link"></i>';
|
||
|
if (id) {
|
||
|
return $el.prepend($("<a />").addClass("header-link").attr("href", "#" + id).html(icon));
|
||
|
}
|
||
|
});
|
||
|
});
|