urgent Bugfix release 2.0.6 rolling back priority fix
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2412173 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
parent
9d5dc4f28a
commit
23dc98127b
61 changed files with 9825 additions and 0 deletions
47
trunk/templates/public/reference-container.html
Normal file
47
trunk/templates/public/reference-container.html
Normal file
|
@ -0,0 +1,47 @@
|
|||
<div class="footnote_container_overall_wrapper">
|
||||
<div class="footnote_container_prepare">
|
||||
<p><span
|
||||
onclick="footnote_expand_reference_container();"
|
||||
>[[label]]</span><span
|
||||
class="footnote_reference_container_collapse_button_outfit"
|
||||
style="[[button-style]]"
|
||||
> [ <a
|
||||
id="footnote_reference_container_collapse_button"
|
||||
onclick="footnote_expand_collapse_reference_container();"
|
||||
>+</a> ]</span></p>
|
||||
</div>
|
||||
<div id="[[id]]" style="[[style]]">
|
||||
<table class="footnote-reference-container">
|
||||
<tbody>
|
||||
[[content]]
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
function footnote_expand_reference_container() {
|
||||
jQuery('#[[id]]').show();
|
||||
jQuery('#footnote_reference_container_collapse_button').text('-');
|
||||
}
|
||||
function footnote_collapse_reference_container() {
|
||||
jQuery('#[[id]]').hide();
|
||||
jQuery('#footnote_reference_container_collapse_button').text('+');
|
||||
}
|
||||
function footnote_expand_collapse_reference_container() {
|
||||
if (jQuery('#[[id]]').is(':hidden')) {
|
||||
footnote_expand_reference_container();
|
||||
} else {
|
||||
footnote_collapse_reference_container();
|
||||
}
|
||||
}
|
||||
function footnote_moveToAnchor(p_str_TargetID) {
|
||||
footnote_expand_reference_container();
|
||||
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 * 0.12
|
||||
},
|
||||
80);
|
||||
}
|
||||
}
|
||||
</script>
|
Reference in a new issue