sunc trunk with stable tag
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2412193 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
parent
ba4338221d
commit
969b4c0946
10 changed files with 496 additions and 575 deletions
|
@ -1,13 +1,2 @@
|
|||
<a
|
||||
><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
|
||||
>
|
||||
<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>
|
||||
|
|
|
@ -1,15 +1,4 @@
|
|||
<tr>
|
||||
<td
|
||||
class="footnote_plugin_index footnote_plugin_link"
|
||||
id="footnote_plugin_reference_[[id]]"
|
||||
onclick="footnote_moveToAnchor('footnote_plugin_tooltip_[[id]]');"
|
||||
><a
|
||||
><span
|
||||
class="footnote_plugin_index_arrow"
|
||||
>[[arrow]] </span
|
||||
>[[index]].</a
|
||||
></td>
|
||||
<td
|
||||
class="footnote_plugin_text"
|
||||
>[[text]]</td>
|
||||
<td class="footnote_plugin_index" id="footnote_plugin_reference_[[id]]" onclick="footnote_moveToAnchor('footnote_plugin_tooltip_[[id]]');"><a href="#footnote_plugin_tooltip_[[id]]"><span class="footnote_plugin_index_arrow">[[arrow]] </span>[[index]].</a></td>
|
||||
<td class="footnote_plugin_text">[[text]]</td>
|
||||
</tr>
|
||||
|
|
|
@ -1,47 +1,47 @@
|
|||
<div class="footnote_container_overall_wrapper">
|
||||
<div class="footnote_container_prepare">
|
||||
<p><span
|
||||
onclick="footnote_expand_reference_container();"
|
||||
>[[label]]</span><span
|
||||
class="footnote_reference_container_collapse_button_outfit"
|
||||
style="[[button-style]]"
|
||||
> [ <a
|
||||
id="footnote_reference_container_collapse_button"
|
||||
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>
|
||||
<div class="footnote_container_prepare">
|
||||
<p><span
|
||||
onclick="footnote_expand_reference_container();"
|
||||
>[[label]]</span><span
|
||||
class="footnote_reference_container_collapse_button_outfit"
|
||||
style="[[button-style]]"
|
||||
> [ <a
|
||||
id="footnote_reference_container_collapse_button"
|
||||
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>
|
||||
</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 * 0.12
|
||||
},
|
||||
80);
|
||||
}
|
||||
}
|
||||
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 * 0.12
|
||||
},
|
||||
80);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
|
@ -1,13 +1 @@
|
|||
<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>
|
||||
<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>
|
||||
|
|
Reference in a new issue