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.
- Host: GitHub
- URL: https://github.com/liatemplates/fullscreen
- Owner: LiaTemplates
- License: cc0-1.0
- Created: 2022-11-28T20:33:37.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-28T20:45:28.000Z (over 3 years ago)
- Last Synced: 2025-01-17T12:16:34.369Z (about 1 year ago)
- Topics: liascript, liascript-template, markdown, presentation
- Homepage: https://liascript.github.io/course/?https://raw.githubusercontent.com/LiaTemplates/Fullscreen/main/README.md
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```