wezetel
Active Member
If buttons are selected as the navigation style in the presentation settings on small devices horizontal scrolling is necessary.
So my idea was to move the middle part of the header (date) on top of the navigation elements. So I wrote my first JS-function ever :
But I don't have any clue, how this function can be called and in consequence, I don't know, if it is working.
Any help?
So my idea was to move the middle part of the header (date) on top of the navigation elements. So I wrote my first JS-function ever :
/* move title */
FabFC.moveTitle = function () {
let x = document.getElementsByClassName("fc-toolbar-chunk");
x[0].id="left";
x[1].id="middle";
x[2].id="right";
document.getElementsByClassName("fc-header-toolbar")[0].style.display = "block";
let navis = document.createElement("div");
navis.id="navis";
navis.style.display="flex";
x[0].appendChild(navis);
navis.appendChild(x[0]);
/* as previous statement already move "left" away from fc-header-toolbar, "right" is now called with [1] */
navis.appendChild(x[1]);
}
But I don't have any clue, how this function can be called and in consequence, I don't know, if it is working.
Any help?