Version 1.6.4
git-svn-id: https://plugins.svn.wordpress.org/footnotes/tags/1.6.4@1445735 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
parent
3101a0de6c
commit
6c0ad0cdb4
19 changed files with 508 additions and 0 deletions
2
templates/public/footnote.html
Executable file
2
templates/public/footnote.html
Executable file
|
@ -0,0 +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>
|
5
templates/public/reference-container-body.html
Executable file
5
templates/public/reference-container-body.html
Executable file
|
@ -0,0 +1,5 @@
|
|||
<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_text">[[text]]</td>
|
||||
</tr>
|
37
templates/public/reference-container.html
Normal file
37
templates/public/reference-container.html
Normal file
|
@ -0,0 +1,37 @@
|
|||
<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) {
|
||||
jQuery('html, body').animate({
|
||||
scrollTop: l_obj_Target.offset().top - window.innerHeight/2
|
||||
}, 1000);
|
||||
}
|
||||
}
|
||||
</script>
|
12
templates/public/tooltip.html
Normal file
12
templates/public/tooltip.html
Normal file
|
@ -0,0 +1,12 @@
|
|||
<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>
|
Reference in a new issue