Fix internal script.
This commit is contained in:
parent
3540815ba7
commit
0dc5f23123
1 changed files with 13 additions and 8 deletions
|
@ -1005,21 +1005,26 @@ class MCI_Footnotes_Task {
|
||||||
* @reporter @andreasra
|
* @reporter @andreasra
|
||||||
* @link https://wordpress.org/support/topic/footnotes-appearing-in-header/page/2/#post-13632566
|
* @link https://wordpress.org/support/topic/footnotes-appearing-in-header/page/2/#post-13632566
|
||||||
*
|
*
|
||||||
* The script for alternative tooltips is printed formatted, not minified.
|
* The script for alternative tooltips is printed formatted, not minified,
|
||||||
|
* for transparency. It isn’t indented though (the PHP open tag neither).
|
||||||
*/
|
*/
|
||||||
if ( self::$a_bool_alternative_tooltips_enabled ) {
|
if ( self::$a_bool_alternative_tooltips_enabled ) {
|
||||||
|
|
||||||
|
// Start internal script.
|
||||||
?>
|
?>
|
||||||
<script content="text/javascript">
|
<script content="text/javascript">
|
||||||
function footnote_tooltip_show(footnote_tooltip_id) {
|
function footnoteTooltipShow(footnoteTooltipId) {
|
||||||
document.get_element_by_id(footnote_tooltip_id).class_list.remove('hidden');
|
document.getElementById(footnoteTooltipId).classList.remove('hidden');
|
||||||
document.get_element_by_id(footnote_tooltip_id).class_list.add('shown');
|
document.getElementById(footnoteTooltipId).classList.add('shown');
|
||||||
}
|
}
|
||||||
function footnote_tooltip_hide(footnote_tooltip_id) {
|
function footnoteTooltipHide(footnoteTooltipId) {
|
||||||
document.get_element_by_id(footnote_tooltip_id).class_list.remove('shown');
|
document.getElementById(footnoteTooltipId).classList.remove('shown');
|
||||||
document.get_element_by_id(footnote_tooltip_id).class_list.add('hidden');
|
document.getElementById(footnoteTooltipId).classList.add('hidden');
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<?php
|
<?php
|
||||||
|
// End internal script.
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue