- **IMPORTANT**: Improved performance. You need to Activate the Plugin again. (Settings won't change!)
- 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) - Bugfix: Avoid multiple IDs for footnotes when multiple reference containers are displayed git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@1009510 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
parent
3ad7787a33
commit
56a6264f0b
21 changed files with 2053 additions and 163 deletions
|
@ -1,2 +1,2 @@
|
|||
<sup id="footnote_plugin_tooltip_[[index]]" class="footnote_plugin_tooltip_text" onclick="footnote_moveToAnchor('footnote_plugin_reference_[[index]]');">[[before]][[index]][[after]]</sup>
|
||||
<span class="footnote_tooltip" id="footnote_plugin_tooltip_text_[[index]]">[[text]]</span>
|
||||
<sup id="footnote_plugin_tooltip_[[id]]" class="footnote_plugin_tooltip_text" onclick="footnote_moveToAnchor('footnote_plugin_reference_[[id]]');">[[before]][[index]][[after]]</sup>
|
||||
<span class="footnote_tooltip" id="footnote_plugin_tooltip_text_[[id]]">[[text]]</span>
|
|
@ -1,5 +1,5 @@
|
|||
<tr>
|
||||
<td class="footnote_plugin_index"><span id="footnote_plugin_reference_[[index-int]]">[[index]].</span></td>
|
||||
<td class="footnote_plugin_link"><span onclick="footnote_moveToAnchor('footnote_plugin_tooltip_[[index-int]]');">[[arrow]]</span></td>
|
||||
<td class="footnote_plugin_index"><span id="footnote_plugin_reference_[[id]]">[[index]].</span></td>
|
||||
<td class="footnote_plugin_link"><span onclick="footnote_moveToAnchor('footnote_plugin_tooltip_[[id]]');">[[arrow]]</span></td>
|
||||
<td class="footnote_plugin_text">[[text]]</td>
|
||||
</tr>
|
|
@ -25,12 +25,11 @@
|
|||
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();
|
||||
if(l_obj_Target.length) {
|
||||
//event.preventDefault();
|
||||
jQuery('html, body').animate({
|
||||
scrollTop: l_obj_Target.offset().top - window.innerHeight/2
|
||||
}, 1000);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<script type="text/javascript">
|
||||
jQuery("#footnote_plugin_tooltip_[[index]]").tooltip({
|
||||
tip: "#footnote_plugin_tooltip_text_[[index]]",
|
||||
jQuery("#footnote_plugin_tooltip_[[id]]").tooltip({
|
||||
tip: "#footnote_plugin_tooltip_text_[[id]]",
|
||||
tipClass: "footnote_tooltip",
|
||||
effect: "fade",
|
||||
fadeOutSpeed: 100,
|
||||
|
|
Reference in a new issue