665ddda49b
git-svn-id: https://plugins.svn.wordpress.org/footnotes/tags/2.1.4@2432656 b8457f37-d9ea-0310-8a92-e5e31aec5664
61 lines
2.2 KiB
HTML
61 lines
2.2 KiB
HTML
<div
|
||
class="speaker-mute footnotes_reference_container"
|
||
>
|
||
<div
|
||
class="footnote_container_prepare"
|
||
><p
|
||
><span
|
||
class="footnote_reference_container_label"
|
||
onclick="footnote_expand_reference_container_[[post_id]]();"
|
||
>[[label]]</span
|
||
><span
|
||
class="footnote_reference_container_collapse_button"
|
||
style="[[button-style]]"
|
||
onclick="footnote_expand_collapse_reference_container_[[post_id]]();"
|
||
>[<a
|
||
id="footnote_reference_container_collapse_button_[[post_id]]"
|
||
>+</a
|
||
>]</span
|
||
></p
|
||
></div
|
||
>
|
||
<div
|
||
id="footnote_references_container_[[post_id]]"
|
||
style="[[style]]"
|
||
>
|
||
<table
|
||
class="footnote-reference-container"
|
||
>
|
||
<tbody>
|
||
[[content]]
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
<script type="text/javascript">
|
||
function footnote_expand_reference_container_[[post_id]]() {
|
||
jQuery('#footnote_references_container_[[post_id]]').show();
|
||
jQuery('#footnote_reference_container_collapse_button_[[post_id]]').text('−');
|
||
}
|
||
function footnote_collapse_reference_container_[[post_id]]() {
|
||
jQuery('#footnote_references_container_[[post_id]]').hide();
|
||
jQuery('#footnote_reference_container_collapse_button_[[post_id]]').text('+');
|
||
}
|
||
function footnote_expand_collapse_reference_container_[[post_id]]() {
|
||
if (jQuery('#footnote_references_container_[[post_id]]').is(':hidden')) {
|
||
footnote_expand_reference_container_[[post_id]]();
|
||
} else {
|
||
footnote_collapse_reference_container_[[post_id]]();
|
||
}
|
||
}
|
||
function footnote_moveToAnchor_[[post_id]](p_str_TargetID) {
|
||
footnote_expand_reference_container_[[post_id]]();
|
||
var l_obj_Target = jQuery('#' + p_str_TargetID);
|
||
if (l_obj_Target.length) {
|
||
jQuery('html, body').animate({
|
||
scrollTop: l_obj_Target.offset().top - window.innerHeight * [[scroll-offset]]
|
||
},
|
||
[[scroll-duration]]);
|
||
}
|
||
}
|
||
</script>
|