MCPcopy
hub / github.com/jdan/cleaver / currentPosition

Function currentPosition

resources/script.js:4–6  ·  view source on GitHub ↗

* Returns the current page number of the presentation.

()

Source from the content-addressed store, hash-verified

2 * Returns the current page number of the presentation.
3 */
4function currentPosition() {
5 return parseInt(document.querySelector('.slide:not(.hidden)').id.slice(6));
6}
7
8
9/**

Callers 4

navigateFunction · 0.85
updateURLFunction · 0.85
updateProgressFunction · 0.85
updateTabIndexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected