-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclean_title_page.html
42 lines (37 loc) · 1.2 KB
/
clean_title_page.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<style>
.hide {
display: none !important;
}
</style>
<script>
function remove() {
let footer = document.querySelector('div.footer');
let slideNo = document.querySelector('div.slide-number');
slideNo.classList.add('hide');
footer.classList.add('hide');
Reveal.on('slidechanged', event => {
if(Reveal.isFirstSlide()) {
slideNo.classList.add('hide');
footer.classList.add('hide');
} else {
slideNo.classList.remove('hide');
footer.classList.remove('hide');
}
});
Reveal.addEventListener('ready', (event) => {
if (event.indexh === 0) {
document.querySelector("div.slide-menu-button").style.display = "none";
} else {
document.querySelector("div.slide-menu-button").style.display = "block";
}
});
Reveal.addEventListener('slidechanged', (event) => {
if (event.indexh === 0) {
document.querySelector("div.slide-menu-button").style.display = "none";
} else {
document.querySelector("div.slide-menu-button").style.display = "block";
}
});
}
window.onload = remove();
</script>