change event listener syntax #1917
This commit is contained in:
parent
5e279efdf3
commit
6ae4ad69d2
@ -20,7 +20,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
// post once the page is loaded, so the client follows also on "open URL".
|
// post once the page is loaded, so the client follows also on "open URL".
|
||||||
window.onload = post;
|
window.addEventListener( 'load', post );
|
||||||
|
|
||||||
// Monitor events that trigger a change in state
|
// Monitor events that trigger a change in state
|
||||||
Reveal.addEventListener( 'slidechanged', post );
|
Reveal.addEventListener( 'slidechanged', post );
|
||||||
|
Loading…
Reference in New Issue
Block a user