Skip to content

Disabling "click for fullscreen" behaviour for images and footnotes #195

Discussion options

You must be logged in to vote

Footnote is a button, where the onclick function is defined in window.LIA.showFootnote. You can overwrite this function and implement your own behavior like this:

<!--

@onload
const showFootnote = window.LIA.showFootnote

window.LIA.showFootnote = (ref) => {
  if (window.LIA.settings.mode === "Textbook") {
    document.getElementById("footnote-" + ref).scrollIntoView()
  } else {
    showFootnote(ref)
  }
}
@end

-->

# Footnotes

This is a [^ref] with only one URL.

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et
dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet
clita …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@tilman-schieber
Comment options

@andre-dietrich
Comment options

Answer selected by tilman-schieber
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants