Version 2.0 imminent

git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2407529 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
Mark Cheret 2020-10-27 11:56:49 +00:00
parent cf553462a6
commit 6cef45746d
24 changed files with 1298 additions and 1542 deletions

View file

@ -20,12 +20,8 @@
<td><strong>[[label-class-3]]</strong><br/><em>[[class-3]]</em></td>
</tr>
<tr>
<td>&nbsp;</td>
<td><strong>[[label-class-4]]</strong><br/><em>[[class-4]]</em></td>
</tr>
<tr>
<td>&nbsp;</td>
<td><strong>[[label-class-5]]</strong><br/><em>[[class-5]]</em></td>
</tr>
</tbody>
</table>
</table>

View file

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

View file

@ -1,5 +1,4 @@
<tr>
<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_index" id="footnote_plugin_reference_[[id]]" onclick="footnote_moveToAnchor('footnote_plugin_tooltip_[[id]]');"><a href="#footnote_plugin_tooltip_[[id]]">[[index]].</a></td>
<td class="footnote_plugin_text">[[text]]</td>
</tr>
</tr>

View file

@ -1,5 +1,5 @@
<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>
<p><span onclick="footnote_expand_reference_container();" style="cursor:auto;">[[label]]</span></p>
</div>
<div id="[[id]]" style="[[style]]">
<table class="footnote-reference-container">
@ -8,30 +8,4 @@
</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) {
jQuery('html, body').animate({
scrollTop: l_obj_Target.offset().top - window.innerHeight/2
}, 1000);
}
}
</script>
<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 * .05 }, 80); } } </script>

View file

@ -1,12 +1 @@
<script type="text/javascript">
jQuery("#footnote_plugin_tooltip_[[id]]").tooltip({
tip: "#footnote_plugin_tooltip_text_[[id]]",
tipClass: "footnote_tooltip",
effect: "fade",
fadeOutSpeed: 100,
predelay: 400,
position: "[[position]]",
relative: true,
offset: [[[offset-y]], [[offset-x]]]
});
</script>
<script type="text/javascript"> jQuery("#footnote_plugin_tooltip_[[id]]").tooltip({ tip: "#footnote_plugin_tooltip_text_[[id]]", tipClass: "footnote_tooltip", effect: "fade", predelay: 800, fadeInSpeed: 200, fadeOutSpeed: 2000, position: "[[position]]", relative: true, offset: [[[offset-y]], [[offset-x]]] }); </script>