Source: FullscreenBase.js

/*
Copyright (C) 2021 Velometrik GmbH
<http://www.velometrik.de/>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/


/* 
    Created on : 04.06.2021, 21:08:29
    Author     : Peter Bauer
*/

/**
 * If the document is not in fullscreen mode, then request fullscreen mode. Otherwise, exit fullscreen
 * mode
 * @param element - The element to be made fullscreen.
 */
function fullscreenClick(element) {
    if (!document.fullscreen) {
        element.requestFullscreen();
    } else {
        document.exitFullscreen();
    }
    let el = document.getElementById("fsc_satteldruck")||null;
    if(el){
        el.classList.add('fullscreen')
    }
}