An open API service indexing awesome lists of open source software.

https://github.com/liatemplates/fullscreen

This plugin removes the LiaScript nav-bar in fullscreen-mode, which can be used in presentations.
https://github.com/liatemplates/fullscreen

liascript liascript-template markdown presentation

Last synced: 6 months ago
JSON representation

This plugin removes the LiaScript nav-bar in fullscreen-mode, which can be used in presentations.

Awesome Lists containing this project

README

          

# Fullscreen - Template

By importing this README via:

`import: https://raw.githubusercontent.com/LiaTemplates/Fullscreen/0.0.1/README.md`

into your document header, as it is shown below, an event listener will be added automatically to your course, which will hide the main nav bar of your course when you get into fullscreen mode by hitting F11.

``` markdown

# Main Title
```

## Implementation

``` javascript
@onload

window.onresize = function (event) {
var maxHeight = window.screen.height,
maxWidth = window.screen.width,
curHeight = window.innerHeight,
curWidth = window.innerWidth;

if (maxWidth == curWidth && maxHeight == curHeight) {
const head = document.getElementById("lia-toolbar-nav")

head.style.display="none"
head.nextSibling.style["margin-top"] = "0px"

window.fullscreenMode = true
} else if (window.fullscreenMode){
const head = document.getElementById("lia-toolbar-nav")

head.style.display=""
head.nextSibling.style["margin-top"] = ""

window.fullscreenMode = false
}
}

@end
```