forked from instructure/canvas-lms
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfooter.erb
More file actions
21 lines (21 loc) · 927 Bytes
/
Copy pathfooter.erb
File metadata and controls
21 lines (21 loc) · 927 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<script type="text/javascript">
$('h2.api_method_name').each(function(i, el) {
var subtopic = $(el).data('subtopic');
var $a = $(el).find('a');
if ($.trim($a[0].innerHTML) == '')
return;
var $row = $('table#quicklinks tr').filter(function() { return $(this).data('subtopic') == subtopic; });
if ($row.length == 0) {
$row = $('<tr/>').appendTo($('table#quicklinks'));
$row.data('subtopic', subtopic);
$('<th/>').append(subtopic).appendTo($row);
$('<td/>').appendTo($row);
}
var link = $('<a/>').attr('href', '#'+$(el).attr('name')).append($.trim($a[0].innerHTML));
$row.find('td').append(link);
});
</script>
<div id="footer">
© Instructure, Inc. Generated on <%= Time.now.strftime("%c") %><br>
This documentation is generated directly from the Canvas LMS source code, available <a href="https://github.com/instructure/canvas-lms">on Github</a>.
</div>