2023-04-19 07:26:06 +02:00
|
|
|
|
|
|
|
|
|
|
|
function openNav() {
|
|
|
|
var showNav = `
|
|
|
|
#CandleID{
|
|
|
|
opacity: 0;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
2023-05-17 14:57:35 +02:00
|
|
|
|
2023-04-19 07:26:06 +02:00
|
|
|
#uberuns{
|
|
|
|
pointer-events: auto;
|
|
|
|
opacity: 1;
|
|
|
|
}
|
2023-05-17 14:57:35 +02:00
|
|
|
#abmelden{
|
|
|
|
pointer-events: auto;
|
|
|
|
opacity: 1;
|
|
|
|
}
|
2023-04-19 07:26:06 +02:00
|
|
|
#buecher{
|
|
|
|
pointer-events: auto;
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
#meinebuecher{
|
|
|
|
pointer-events: auto;
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
#nav-toggle {
|
|
|
|
opacity: 1;
|
|
|
|
pointer-events: auto;
|
|
|
|
}
|
|
|
|
.suchleiste{
|
|
|
|
opacity: 1;
|
|
|
|
pointer-events: auto;
|
|
|
|
}
|
|
|
|
#buttonID{
|
|
|
|
opacity: 1;
|
|
|
|
pointer-events: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.suchleiste{
|
|
|
|
position: fixed;
|
|
|
|
right: 280px;
|
|
|
|
top: 0px;
|
|
|
|
}
|
|
|
|
#buttonID{
|
|
|
|
position: fixed;
|
|
|
|
right: 240px;
|
|
|
|
top: 0px;
|
|
|
|
}
|
2023-05-17 14:57:35 +02:00
|
|
|
|
2023-04-19 07:26:06 +02:00
|
|
|
#uberuns{
|
|
|
|
position: fixed;
|
2023-05-17 14:57:35 +02:00
|
|
|
left: 43%;
|
|
|
|
top: 96px;
|
|
|
|
width: 120px;
|
|
|
|
height: 35px;
|
|
|
|
background-color:#664220 ;
|
|
|
|
color:rgb(255, 255, 255);
|
|
|
|
|
|
|
|
}
|
|
|
|
#abmelden{
|
|
|
|
position: fixed;
|
|
|
|
left: 0px;
|
|
|
|
top: 150px;
|
|
|
|
width: 120px;
|
|
|
|
height: 35px;
|
|
|
|
background-color:#664220 ;
|
|
|
|
color:rgb(255, 255, 255);
|
|
|
|
|
2023-04-19 07:26:06 +02:00
|
|
|
}
|
|
|
|
#buecher{
|
|
|
|
position: fixed;
|
2023-05-17 14:57:35 +02:00
|
|
|
left: 43%;
|
|
|
|
top: 43px;
|
|
|
|
width: 120px;
|
|
|
|
height: 35px;
|
|
|
|
background-color:#664220 ;
|
|
|
|
color:rgb(255, 255, 255);
|
|
|
|
padding-right:10px;
|
|
|
|
padding-left: 8px;
|
|
|
|
padding-top: 15px;
|
|
|
|
padding-bottom: 0px;
|
|
|
|
text-align: center;
|
|
|
|
text-decoration: none;
|
2023-04-19 07:26:06 +02:00
|
|
|
}
|
2023-05-17 14:57:35 +02:00
|
|
|
|
|
|
|
|
2023-04-19 07:26:06 +02:00
|
|
|
|
|
|
|
#meinebuecher{
|
|
|
|
position: fixed;
|
2023-05-17 14:57:35 +02:00
|
|
|
left: 43%;
|
|
|
|
top: 149px;
|
|
|
|
width: 120px;
|
|
|
|
height: 35px;
|
|
|
|
background-color:#664220 ;
|
|
|
|
color:rgb(255, 255, 255);
|
|
|
|
padding-right:10px;
|
|
|
|
padding-left: 8px;
|
|
|
|
padding-top: 15px;
|
|
|
|
padding-bottom: 0px;
|
|
|
|
text-align: center;
|
|
|
|
text-decoration: none;
|
2023-04-19 07:26:06 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
`;
|
|
|
|
var closeNav = `#CandleID{
|
|
|
|
opacity: 1;
|
|
|
|
pointer-events: auto;
|
|
|
|
}
|
2023-05-17 14:57:35 +02:00
|
|
|
|
|
|
|
|
2023-04-19 07:26:06 +02:00
|
|
|
`;
|
|
|
|
if (document.getElementById('nav-toggle').checked) {
|
|
|
|
var styleSheet = document.createElement("style")
|
|
|
|
styleSheet.innerText = showNav
|
|
|
|
document.head.appendChild(styleSheet)
|
|
|
|
} else {
|
|
|
|
var link = document.createElement('link');
|
|
|
|
|
|
|
|
// set the attributes for link element
|
|
|
|
link.rel = 'stylesheet';
|
|
|
|
|
|
|
|
link.type = 'text/css';
|
|
|
|
|
2023-05-17 14:57:35 +02:00
|
|
|
link.href = 'probestyle.css';
|
2023-04-19 07:26:06 +02:00
|
|
|
|
|
|
|
// Get HTML head element to append
|
|
|
|
// link element to it
|
|
|
|
document.getElementsByTagName('HEAD')[0].appendChild(link);
|
|
|
|
var styleSheet = document.createElement("style")
|
|
|
|
styleSheet.innerText = closeNav
|
|
|
|
document.head.appendChild(styleSheet)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
function unset()
|
|
|
|
{
|
2023-05-17 14:57:35 +02:00
|
|
|
|
2023-04-19 07:26:06 +02:00
|
|
|
var link = document.createElement('link');
|
2023-05-17 14:57:35 +02:00
|
|
|
var head = document.getElementsByTagName('head')[0];
|
2023-04-19 07:26:06 +02:00
|
|
|
// set the attributes for link element
|
|
|
|
link.rel = 'stylesheet';
|
|
|
|
|
|
|
|
link.type = 'text/css';
|
|
|
|
|
2023-05-17 14:57:35 +02:00
|
|
|
link.href = 'probestyle.css';
|
|
|
|
link.media = 'all';
|
2023-04-19 07:26:06 +02:00
|
|
|
// Get HTML head element to append
|
|
|
|
// link element to it
|
2023-05-17 14:57:35 +02:00
|
|
|
//document.getElementsByTagName('head').appendChild(link);
|
|
|
|
head.appendChild(link);
|
|
|
|
|
|
|
|
var styleSheet = document.createElement("style")
|
|
|
|
styleSheet.innerText = closeNav
|
|
|
|
document.head.appendChild(styleSheet)
|
2023-04-19 07:26:06 +02:00
|
|
|
}
|
|
|
|
|
2023-05-03 23:07:04 +02:00
|
|
|
|
|
|
|
|