This repository has been archived on 2023-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
footnotes/templates/public/reference-container.html
Aricura b183563518 Prepare for release version 1.5.6
- **IMPORTANT**: We have changed the html tag for the superscript. Please check and update your custom CSS.
- Add: .pot file to enable Translations for everybody
- Add: Settings to customize the mouse-over box (color, background color, border, max. width)
- Update: Translation file names
- Update: Translation EN and DE
- Update: Styling of the superscript (need to check custom CSS code for the superscript)
- Update: Description of CSS classes for the 'customize CSS' text area
- Bugfix: Removed 'a' tag around the superscript for Footnotes inside the content to avoid page reloads (empty href attribute)
- Bugfix: Avoid Settings fallback to its default value after submit an empty value for a setting
- Bugfix: Enable multiple WP_Post objects for the_post hook

git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@1005623 b8457f37-d9ea-0310-8a92-e5e31aec5664
2014-10-11 12:27:00 +00:00

39 lines
1.4 KiB
HTML

<div class="footnote_container_prepare">
<p><span onclick="footnote_expand_reference_container();">[[label]]</span><span style="[[button-style]]">&nbsp;&nbsp;&nbsp;[ <a id="footnote_reference_container_collapse_button" style="cursor:pointer;" 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>
<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 ) {
event.preventDefault();
jQuery('html, body').animate({
scrollTop: l_obj_Target.offset().top - window.innerHeight/2
}, 1000);
}
}
</script>