-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmd.js
39 lines (36 loc) · 1.02 KB
/
md.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<script>
function enablePopOvers() {
$('.reference_number').each( function(index, E) {
var target = document.getElementById($(E).attr('href').slice(1));
var target_type = str(target.attributes['type']);
var target_number = str(target.attributes['id']);
var target_content = ""
$(target.children).not('.block_heading').each(function() {
target_content += $(this).html();
});
var title = "<span class='block_heading "+target_type"'>"+
"<span class='block_number'>"+target_number+"</span>"+
"</span>";
jqE = $(E)
jqE.attr('data-content',target_content);
jqE.attr('data-html',true);
jqE.attr('data-trigger','hover');
jqE.attr('data-title',title)
});
}
function hideTOC() {
$('#toc').hide('slow');
return true;
}
function showTOC() {
$('#toc').show('slow');
return true;
}
jQuery(document).ready( function () {
//alert('Will call MathJaX QUEUE');
MathJax.Hub.Queue(function() {
//alert('Calling Queued Function');
addTwipsyLinks();
});
})
</script>