a462db714e
- **IMPORTANT**: Improved performance. You need to Activate the Plugin again. (Settings won't change!) - Add: Setting to customize the mouse-over box shadow - Add: Translation: United States - Add: Translation: Austria - Add: Translation: Spanish (many thanks to Pablo L.) - Update: Translations (de_DE and en_GB) - Update: Changed Plugins init file name to improve performance (Re-activation of the Plugin is required) - Update: ManFisher note styling - Update: Tested with latest nightly build of WordPress 4.1 - Bugfix: Avoid multiple IDs for footnotes when multiple reference containers are displayed git-svn-id: https://plugins.svn.wordpress.org/footnotes/tags/1.6.0@1009660 b8457f37-d9ea-0310-8a92-e5e31aec5664
38 lines
No EOL
1.4 KiB
HTML
38 lines
No EOL
1.4 KiB
HTML
<div class="footnote_container_prepare">
|
|
<p><span onclick="footnote_expand_reference_container();">[[label]]</span><span style="[[button-style]]"> [ <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> |