Prepare for release version 1.5.3

- Add: Developer's homepage to the 'other Plugins' list
- Update: Smoothy scroll to an anchor using Javascript
- Bugfix: Set the vertical align for each cell in the Reference container to TOP

git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@1002027 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
Aricura 2014-10-05 15:12:42 +00:00
parent 836200a2c3
commit 6a4677251a
7 changed files with 26 additions and 6 deletions

View file

@ -1,2 +1,2 @@
<a href="#footnote_plugin_reference_[[index]]" name="footnote_plugin_tooltip_[[index]]" id="footnote_plugin_tooltip_[[index]]" class="footnote_plugin_tooltip_text" onclick="footnote_expand_reference_container();"><sup>[[before]][[index]][[after]]</sup></a>
<a href="" name="footnote_plugin_tooltip_[[index]]" id="footnote_plugin_tooltip_[[index]]" class="footnote_plugin_tooltip_text" onclick="footnote_expand_reference_container(); footnote_moveToAnchor('footnote_plugin_reference_[[index]]')"><sup>[[before]][[index]][[after]]</sup></a>
<span class="footnote_tooltip" id="footnote_plugin_tooltip_text_[[index]]">[[text]]</span>

View file

@ -1,7 +1,8 @@
<tr>
<td style="border:none !important; max-width:10% !important;">[[index]].</td>
<td><a class="footnote_plugin_link" href="#footnote_plugin_tooltip_[[index-int]]"
<td><a class="footnote_plugin_link" href=""
name="footnote_plugin_reference_[[index-int]]"
id="footnote_plugin_reference_[[index-int]]">[[arrow]]</a></td>
id="footnote_plugin_reference_[[index-int]]"
onclick="footnote_moveToAnchor('footnote_plugin_tooltip_[[index-int]]');">[[arrow]]</a></td>
<td>[[text]]</td>
</tr>

View file

@ -23,4 +23,14 @@
jQuery("#footnote_reference_container_collapse_button").text("+");
}
}
function footnote_moveToAnchor(p_str_TargetID) {
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>