/*if(navigator.share){
$('.teilentd').css({ 'display': 'none' });
$('#teilenbutton').css({ 'display': 'inline-block' });
} else {
$('#teilenbutton').css({ 'display': 'none' });
}
$('.teilenbutton').click(function(){
var link = window.location.href;
var titel = $('#HeadlineOhneLink').text();
//var link = encodeURI(link);
//var titel = encodeURI(titel);
if (navigator.share) {
navigator.share({
title: titel,
text: titel + ' - mehr beim Rutheneum-Boten: ',
url: link,
})
}
});*/
//$.mobile.zoom.disable();
/*$('#rssabo').click(function(){
if("Notification" in window){
if(Notification.permission === "granted"){
var notification = new Notification("Neues beim Rutheneum-Boten", { body: 'Corona-Virus: Schule geschlossen', img: 'Rutheneum-Bote.png' });
} else {
Notification.requestPermission(function(permission){
if(permission === "granted"){
var notification = new Notification("Rutheneum-Boten");
}
});
}
}
});*/
/*
$.ajax({
type: "POST",
url: 'likes.php',
data: { "likes": window.location.pathname },
success: function(response){
$('.articleLikeCount').text(response);
}
});*/
if($.cookie('like') != undefined && $.cookie('like') != ''){
if($.cookie('like') == undefined || $.cookie('like') == ''){
likecookie = '""';
} else {
likecookie = $.cookie('like');
}
var url = window.location.pathname;
url = url.substring(url.lastIndexOf('/')+1);
url = url.slice(0, -4);
if(likecookie.includes(url)){
$('.articleLikeDiv').addClass('likeddiv');
$('.articleLike').addClass('liked');
}
}
$('.articleLikeDiv').not('.likeddiv').click(function(){
if($.cookie('like') == undefined || $.cookie('like') == ''){
likecookie = '""';
} else {
likecookie = $.cookie('like');
}
var url = window.location.pathname;
url = url.substring(url.lastIndexOf('/')+1);
url = url.slice(0, -4);
if(!(likecookie.includes(window.location.pathname))){
$('.articleLikeDiv').addClass('likeddiv');
$('.articleLike').addClass('liked');
$.ajax({
type: "POST",
url: 'like.php',
data: { "liked": url },
success: function(response){
}
});
}
function likeupdate(){
$.ajax({
type: "POST",
url: 'likes.php',
data: { "likes": url },
success: function(response){
$('.articleLikeCount').text(response);
}
});
}
setTimeout(likeupdate, 500);
});
$('#zitierenbutton').click(function(){
$('#Nachrichtenfeld').val($('#Nachrichtenfeld').val() + "\n „Arguing that you don't care about the right to privacy because you have nothing to hide is no different than saying you don't care about free speech because you have nothing to say.“ (Zitat von Edward Snowden)");
});
$('#antwortbutton').click(function(){
$('#Nachrichtenfeld').val('(Antwort auf Kommentar Nr. 1) \n' + $('#Nachrichtenfeld').val());
});
$('#kategorienmehr').click(function(){
if($('#kategorienmehrdivinner').css('display') == 'none'){
$('#kategorienmehrdivinner').fadeIn();
} else {
$('#kategorienmehrdivinner').fadeOut();
}
});
$("#rbheaderkategorienmehr, #rbEinstellungenSidemenuText2").keydown(function(ev) {
if (ev.which == 13) {
$(this).click();
}
});
$('#rbheaderkategorienmehr').click(function(){
if($('#rbheaderkategorienmehrdivinner').css('display') == 'none'){
$('#rbheaderkategorienmehrdivinner').fadeIn();
} else {
$('#rbheaderkategorienmehrdivinner').fadeOut();
}
});
$(document).mouseup(function (e){
var container = $("#kategorienmehrdivinner");
if (!container.is(e.target) && container.has(e.target).length === 0){
container.fadeOut();
}
var container = $("#rbheaderkategorienmehrdivinner");
if (!container.is(e.target) && container.has(e.target).length === 0){
container.fadeOut();
}
});
$('document').ready(function(){
var statistik = $.cookie('statistik');
var dnt = navigator.doNotTrack;
if(statistik == 'an' && dnt != 1){
$('#statistikeinstellung').text('einverstanden. Das kannst du aber ändern:');
$('#dsstatistikja').css({ 'display': 'none' });
$('#dsstatistiknein').css({ 'display': 'inline-block' });
} else if(statistik != 'an' || dnt == 1){
$('#statistikeinstellung').text('nicht einverstanden (DNT aktiviert). Um die Einstellung zu ändern, musst du erst die DNT-Funktion ausschalten.');
$('#dsstatistiknein').css({ 'display': 'none' });
$('#dsstatistikja').css({ 'display': 'none' });
if(dnt != 1){
$('#dsstatistikja').css({ 'display': 'inline-block' });
$('#statistikeinstellung').text('einverstanden. Das kannst du aber ändern:');
}
}
$('#dsstatistikja').click(function(){
var date = new Date();
var days = 21;
date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
$.cookie('popup', 'zu', { expires: date });
$.cookie('statistik', 'an', { expires: date });
document.location.reload();
});
$('#dsstatistiknein').click(function(){
var date = new Date();
var days = 21;
date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
$.cookie('popup', 'zu', { expires: date });
$.removeCookie('statistik');
document.location.reload();
});
});
$('.footerlinktext').hover(function(){
$(this).css({ 'color': 'white' });
$(this).prev('a').css({ 'color': 'white' });
}, function(){
$(this).css({ 'color': '#bbbbbb' });
$(this).prev('a').css({ 'color': '#bbbbbb' });
});
$('.footerlinktext').prev('a').hover(function(){
$(this).css({ 'color': 'white' });
$(this).next('a').css({ 'color': 'white' });
}, function(){
$(this).css({ 'color': '#bbbbbb' });
$(this).next('a').css({ 'color': '#bbbbbb' });
});
$('#whatsappteilentd').click(function(){
var link = window.location.href;
var link = link.replace('&', '%26');
var titel = $('#HeadlineOhneLink').text();
var nachricht = titel + ': ' + link;
//var nachricht = encodeURI(nachricht);
window.location.href = 'whatsapp://send?text=' + nachricht;
});
$('#telegramteilentd').click(function(){
var link = window.location.href;
var link = link.replace('&', '%26');
var titel = $('#HeadlineOhneLink').text();
//var nachricht = titel + ': ' + link;
//var nachricht = encodeURI(nachricht);
window.location.href = 'https://t.me/share/url?url=' + link + '&text=' + titel;
});
$('#twitterteilentd').click(function(){
var link = window.location.href;
var link = link.replace('&', '%26');
var titel = $('#HeadlineOhneLink').text();
var nachricht = titel + ': ' + link;
//var nachricht = encodeURI(nachricht);
window.location.href = 'https://twitter.com/intent/tweet?text=' + nachricht;
});
$('#mastodonteilentd').click(function(){
$('.teilentd').css({ 'display': 'none' });
$('#datetd').css({ 'display': 'none' });
$('#sharetd').css({ 'display': 'none' });
$('#mastodoninstanztd').css({ 'display': 'inline-block' });
/*var link = window.location.href;
var link = link.replace('&', '%26');
var titel = $('#HeadlineOhneLink').text();
var nachricht = titel + ': ' + link;
//var nachricht = encodeURI(nachricht);
window.location.href = 'https://' + instanz + '/web/statuses/new?text=' + nachricht;*/
});
$('#mastodoninstanzok').click(function(){
var link = window.location.href;
var link = link.replace('&', '%26');
var titel = $('#HeadlineOhneLink').text();
var nachricht = titel + ': ' + link;
//var nachricht = encodeURI(nachricht);
var instanz = $('#mastodoninstanzinput').val();
window.location.href = 'https://' + instanz + '/web/statuses/new?text=' + nachricht;
});
$('#mastodoninstanzabbrechen').click(function(){
document.location.reload();
});
$('#emailteilentd').click(function(){
var link = window.location.href;
var link = link.replace('&', '&');
var titel = $('#HeadlineOhneLink').text();
var nachricht = titel + ': ' + link;
var nachricht = encodeURI(nachricht);
window.location.href = 'mailto:?body=' + nachricht;
});
$('#kommentarinputfake, #sendenfake').click(function(){
var artikel = $('#HeadlineOhneLink').text();
var artikel = artikel.replace(/\\/g, "")
var artikel = artikel.replace('uad', '');
localStorage.setItem('kommentarartikel', artikel);
window.location.href = 'kontakt.html?anfrage=kommentar&';
});
function nachtmoduscookiesetzen() {
/*Cookies.set('mode', 'dark');
console.log('Darkmode-Cookie gesetzt.');*/
}
//var bilder = ['newyork1.jpeg', 'newyork2.jpeg', 'newyork3.jpeg', 'BMFSFJ.jpg', 'Denk bunt.jpg', 'EU-Abgeordnete1.jpg', 'EU-Abgeordnete2.jpg', 'EU-Abgeordnete3.jpg', 'musiabend1.jpg', 'musiabend2.jpg', 'musiabendcrop.jpg', 'schuelersprecher.jpg', 'silvester.jpg', 'tillmancrop.jpg', 'weihnachten.jpg', 'berlin.png', 'cookiebanner.png', 'einstellungen.png', 'hochsee1.png', 'hochsee2.png', 'hochsee3.png', 'hochsee4.png', 'hochseecrop', 'IE-Nein-Danke.png', 'Ladesäule.png', 'mobilbanner.png', 'newyork3.png', 'porsche1.png', 'porsche2.png', 'porsche3.png', 'reichstag-das-war-ein-witz.png', 'Rutheneum-Bote.png', 'rutheneumhdr.png', 'snowden.png', 'snowdenbanner', 'snowdenvorschaugrafikhome.png', 'tor.svg', 'torblack.svg', 'torwhite.svg'];
//bilder.forEach(bildereinsetzen);
function bildereinsetzen(item){
/*var tabelle = $('#dateitable').html();
var tabelle = tabelle + '
| ' + item + ' |
';
document.getElementById('dateitable').innerHTML += tabelle;*/
//console.log(item);
}
$('#branchbutton').click(function(){
var display = document.getElementById('branchauswahl').style.display;
if(display != 'block'){
$('#branchbutton').css({ 'background-color': '#e9ecef' });
$('#branchbutton').css({ 'box-shadow': 'inset 0 .5em .5em rgba(27,31,35,.15)' });
$('#branchbutton').css({ 'border-color': 'rgba(27,31,35,.35)' });
$('#branchauswahl').css({ 'display': 'block' });
} else {
$('#branchbutton').css({ 'background-color': '#eff3f6' });
$('#branchbutton').css({ 'box-shadow': 'none' });
$('#branchbutton').css({ 'border-color': 'rgba(27,31,35,.2)' });
$('#branchauswahl').css({ 'display': 'none' });
}
});
$('#branchauswahl table tr').click(function(){
$('#branchname').html('' + $(this).children().children().text() + ' ');
$('#branchauswahl').css({ 'display': 'none' });
$('#branchbutton').css({ 'background-color': '#eff3f6' });
$('#branchbutton').css({ 'box-shadow': 'none' });
$('#branchbutton').css({ 'border-color': 'rgba(27,31,35,.2)' });
var branchname = $('#branchname').text();
if(branchname.indexOf('Suche') != -1){
$('#dateitable').html('');
var kopfzeile = 'Suche (frei nutzbar) |
';
$('#dateitable').html(kopfzeile);
var dateien = ' | index.html |
';
var dateien = dateien + ' | style.css |
';
var dateien = dateien + ' | script.js |
';
var dateien = dateien + ' | jquery-3.4.0.min.js |
';
document.getElementById('dateitable').innerHTML += dateien;
}
if(branchname.indexOf('Scrollbalken') != -1){
$('#dateitable').html('');
var kopfzeile = 'Scrollbalken (frei nutzbar) |
';
$('#dateitable').html(kopfzeile);
var dateien = ' | index.html |
';
var dateien = dateien + ' | style.css |
';
var dateien = dateien + ' | script.js |
';
document.getElementById('dateitable').innerHTML += dateien;
}
var farbe = document.getElementById('eigentlicherArtikel').style.color;
console.log(farbe);
if(farbe == 'rgb(170, 170, 170)'){
$('.symboltd > .fas').css({ 'color': 'white' });
$('.symboltd > .far').css({ 'color': 'white' });
$('.datei').css({ 'color': 'white' });
} else {
$('.symboltd > .fas').css({ 'color': '#1e70bf' });
$('.symboltd > .far').css({ 'color': 'black' });
$('.datei').css({ 'color': '#1e70bf' });
}
if(branchname.indexOf('master') != -1){
window.location.reload();
}
});
$( "#branchauswahl table tr" ).hover(
function() {
$( this ).addClass( "branchhover" );
}, function() {
$( this ).removeClass( "branchhover" );
}
);
function quellcode(){
var source = "";
source += document.getElementsByTagName('html')[0].innerHTML;
source += "";
source = source.replace(//g, ">");
source = ""+source+"
";
$('html').html(source);
/*sourceWindow = window.open('','Source of page','height=auto,width=auto,scrollbars=1,resizable=1');
sourceWindow.document.write(source);
sourceWindow.document.close();
if(window.focus) sourceWindow.focus(); */
}
/*
$('#leftpfeil, #rightpfeil').hover(function(){
setTimeout(function(){
$('#leftpfeil, #rightpfeil').animate({ 'font-size': '200%' }, 500);
});
}, function(){
setTimeout(function(){
$('#leftpfeil, #rightpfeil').animate({ 'font-size': '180%' }, 500);
});
});*/
$('#leftpfeil').click(function(){
//$('#suchfunktion').animate({ 'right': '0px' });
//$('#leftpfeil').css({ 'display': 'none' });
//$('#rightpfeil').css({ 'display': 'inline-block' });
});
$('#rightpfeil').click(function(){
//$('#suchfunktion').animate({ 'right': '-225px' });
//$('#leftpfeil').css({ 'display': 'inline-block' });
//$('#rightpfeil').css({ 'display': 'none' });
});
$('#suchfeld').keyup(function(){
suche();
});
$('#suchbuttondiv').click(function(){
var suchfeld = document.getElementById('suchfeld').style.display;
document.getElementById('suchfeld').value = '';
suche();
//$('#suchfeld').animate({'right': '90px', 'opacity': '1' }, 'fast');
$('#suchfeld').animate({ 'width': 'toggle' }, 300, 'swing');
var html = $('#suchbutton').html();
$('#suchbutton').html(
html == '' ? '' : '');
//$('#suchfeld').toggle({ 'width': '300px' });
});
if($('#suchfeld').val() == ''){
$('article').css({ 'display': 'block' });
$('article').prev('hr').css({ 'display': 'block' });
}
function suche(){
var suchbegriff = document.getElementById('suchfeld').value.toLowerCase();
$('.autorselect > select').val('Autor');
$('#ÜberschriftArtikel').text('Kategorien');
$('article').css({ 'display': 'block' });
$('article').prev('hr').css({ 'display': 'block' });
$('article').filter(function () {
return ($(this).find('*').text().toLowerCase().indexOf(suchbegriff) == -1)
}).css({ 'display': 'none' });
$('article').filter(function () {
return ($(this).find('*').text().toLowerCase().indexOf(suchbegriff) == -1)
}).prev('hr').css({ 'display': 'none' });
$('#dieIdHabIchNochNicht1').css({ 'display': 'block' });
$('#dieIdHabIchNochNicht1').prev('hr').css({ 'display': 'block' });
$('#KategorienArtikel').css({ 'display': 'block' });
$('#KategorienArtikel').prev('hr').css({ 'display': 'block' });
$('#KategorienArtikel').css({ 'display': 'block' });
$('#KategorienArtikel').prev('hr').css({ 'display': 'block' });
$('article:contains("Frohes Neues")').css({ 'display': 'none' });
$('article:contains("Frohes Neues")').prev('hr').css({ 'display': 'none' });
var farbe = document.getElementById('dieIdHabIchNochNicht1').style.backgroundColor;
$('.themenbutton').removeClass('chosendark');
$('.themenbutton').removeClass('chosenlight');
if(farbe == 'rgb(48, 48, 48)'){
$('.themenbutton').not('#alleartikel').addClass('notchosendark');
$('#alleartikel').addClass('chosendark');
$('.autorselect > select').css({ 'background-color': 'transparent' });
$('.autorselect > select').css({ 'color': '#facc2e' });
$('.autorselect > select > option').css({ 'background-color': '#303030' });
$('.autorselect > select > option').css({ 'color': '#facc2e' });
} else {
$('.themenbutton').not('#alleartikel').addClass('notchosenlight');
$('#alleartikel').addClass('chosenlight');
$('.autorselect > select').css({ 'background-color': 'transparent' });
$('.autorselect > select').css({ 'color': 'rgb(192,0,0)' });
$('.autorselect > select > option').css({ 'background-color': 'white' });
$('.autorselect > select > option').css({ 'color': 'black' });
}
}
$('#geolocationbuttondiv').click(function(e){
if($(e.target).is("div")){
window.open('https://www.openstreetmap.org/relation/1430491', '_blank');
}
});
$('#leserbrieffloatingbuttondiv').click(function(){
window.location.href = 'kontakt.html?anfrage=leserbrief';
});
$('#emailbuttondiv').click(function(){
window.location.href = 'mailto:schuelerzeitung@gymnasium-rutheneum.de';
});
$('#kontaktbuttondiv').click(function(){
window.location.href = 'kontakt.html';
});
$('#nutzungsbedingungenbuttondiv').click(function(){
window.location.href = 'nutzungsbedingungen.png';
});
$('#datenschutzbuttondiv').click(function(){
window.location.href = 'datenschutz.png';
});
$('#torbuttondiv').click(function(e){
var senderElement = e.target;
if($(e.target).is("div")){
window.open('https://torproject.org', '_blank');
}
});
$('#mitmachenbuttondiv').click(function(){
window.location.href = 'kontakt.html?anfrage=mitmachen';
});
var cookietextagb = document.getElementById('nutzungsbedingungendatum').innerHTML;
$('#nutzungsbedingungendatum').text(cookietextagb + ' (10.08.2020)');
function getQueryVariable(variable) {
var query = window.location.search.substring(1);
var vars = query.split("&");
for (var i=0;i= 0) {
return 'Opera';
}
// Firefox 1.0+
if (typeof InstallTrigger !== 'undefined') {
return 'Firefox';
}
// Safari 3.0+ "[object HTMLElementConstructor]"
if (/constructor/i.test(window.HTMLElement) || (function (p) {
return p.toString() === '[object SafariRemoteNotification]';
})(!window['safari'])) {
return 'Safari';
}
// Internet Explorer 6-11
if (/* @cc_on!@*/false || document.documentMode) {
return 'Internet Explorer';
}
// Edge 20+
if (!(document.documentMode) && window.StyleMedia) {
return 'Microsoft Edge';
}
// Chrome
if (window.chrome) {
return 'Chrome';
}
}
$.ajax({
type: "POST",
url: 'htmlforbidden.php',
data: {"isthis":"spam"},
success: function(response){
var jsonData = JSON.parse(response);
if (jsonData.spam == "ja"){
window.location.href = 'forbidden.html';
}
}
});
var url = window.location.href;
var browsername = getBrowserName();
$(document).ready(function(){
var developer = $.cookie('developer');
var statistik = $.cookie('statistik');
var url = window.location.href;
var browsername = getBrowserName();
var dnt = navigator.doNotTrack;
var OSName = "Unknown OS";
if (navigator.appVersion.indexOf("Win") != -1){ OSName = "Windows"; }
if (navigator.appVersion.indexOf("Mac") != -1){ OSName = "MacOS"; }
if (navigator.appVersion.indexOf("X11") != -1){ OSName = "UNIX"; }
if (navigator.appVersion.indexOf("Linux") != -1){ OSName = "Linux"; }
if(developer != 'true' && dnt != 1 && statistik == 'an') {
$.ajax({
type: 'post',
url: 'js-stats.php',
data: {"jsbrowser":browsername, "jsos":OSName, "url":url, "dnt":dnt},
success: function(data){
//maybe do something with response (data)
console.log('browser success');
}
});
} else if(developer != 'true' && dnt == 1 || statistik != 'an'){
$.ajax({
type: 'post',
url: 'js-stats.php',
data: {"url":url, "dnt":dnt},
success: function(data){
//maybe do something with response (data)
console.log('browser success dnt');
}
});
}
});
if(browsername == 'Firefox'){
$('#suchbutton').addClass('mozdocumentersatz');
$('#suchbutton').css({ 'vertical-align': 'text-bottom' });
$('#suchbutton').css({ 'vertical-align': '0px' });
//console.log('Firefox');
}
if(url.indexOf('sicherheit.html') !== -1){
var browsername = getBrowserName();
$('#BrowserErkennung').text(browsername);
var browsererkennung = $('#BrowserErkennung').text();
if(browsername != 'Firefox'){
$('#BrowserErkennung').text(browsererkennung + '. Nutze lieber Firefox oder Tor');
}
if(browsername == 'Firefox'){
$('#BrowserErkennung').text('einen Firefox-Browser. Sehr gut');
}
if(browsername == 'Internet Explorer'){
$('#BrowserErkennung').text('den Internet-Explorer. Das ist Strafe genug');
}
}
function Firefox() {
$('#BrowserErkennung').text('einen Firefox-Browser. Sehr gut');
}
$(document).ready(function(){
$('#Cookielöschen, #einstellungencookieslöschen').on({
click: function(){
$.removeCookie('modus');
$.removeCookie('popup');
$.removeCookie('mobilerhinweis');
$.removeCookie('statistik');
$('#Cookielöschen').text('Cookies gelöscht!');
$('#Cookielöschen').css({ 'cursor': 'text' });
$('#Cookielöschen:hover').css({ 'text-decoration': 'none' });
},
tap: function(){
$.removeCookie('modus');
$.removeCookie('popup');
$.removeCookie('mobilerhinweis');
$.removeCookie('statistik');
$('#Cookielöschen').text('Cookies gelöscht!');
$('#Cookielöschen').css({ 'cursor': 'text' });
$('#Cookielöschen:hover').css({ 'text-decoration': 'none' });
}
});
$('#einstellungencookieslöschen').on({
click: function(){
location.reload();
}
});
var mode = getQueryVariable('mode');
var modus = $.cookie('modus');
var popup = $.cookie('popup');
if(mode == 'dark'){
console.log('mode dark');
dunkelohnecookie();
}
if(mode == 'alwaysdark'){
$.cookie('modus', 'dunkel');
dunkelohnecookie();
}
if(popup != 'zu'){
$('#cookiebannerimmeranzeigen').text('jedes Mal anzeigen');
}
if(popup == 'zu'){
$('#cookiebannerimmeranzeigen').text('nicht mehr anzeigen');
}
if(modus == 'dunkel') {
dunkelohnecookie();
}
if(modus == 'hell') {
hell();
console.log('hell');
}
var autor = getQueryVariable('author');
$(document).on('change','.autorselect > select',function(){
//console.log('bis hier 1');
var text = $(this).val();
if(text == 'Autor'){
/*$('article').css({ 'display': 'block' });
$('.articleLinie').css({ 'display': 'block' });*/
var modeschonda = getQueryVariable('mode');
var cookiepopup = getQueryVariable('popup');
console.log(modeschonda + ', ' + cookiepopup);
if(modeschonda || cookiepopup){
if(modeschonda && cookiepopup){
window.location.href = 'index.html?mode=' + modeschonda + '&popup=never&';
}
if(modeschonda && cookiepopup == false){
window.location.href = 'index.html?mode=' + modeschonda + '&';
}
if(cookiepopup && modeschonda == false){
window.location.href = 'index.html?popup=never&';
}
} else {
window.location.href = 'index.html';
}
} else {
/*$('article').css({ 'display': 'none' });
$('.articleLinie').css({ 'display': 'none' });
$('article:contains("' + text + '")').css({ 'display': 'block' });
$('article:contains("' + text + '")').prev('hr').css({ 'display': 'block' });
$('#dieIdHabIchNochNicht1').css({ 'display': 'block' });
$('#ÜberschriftArtikel').html(' ' + text);*/
var modeschonda = getQueryVariable('mode');
var cookiepopup = getQueryVariable('popup');
if(modeschonda || cookiepopup){
if(modeschonda && cookiepopup){
window.location.href = 'index.html?author=' + text + '&mode=' + modeschonda + '&popup=never&';
}
if(modeschonda && cookiepopup == false){
window.location.href = 'index.html?author=' + text + '&mode=' + modeschonda + '&';
}
if(cookiepopup && modeschonda == false){
window.location.href = 'index.html?author=' + text + '&popup=never&';
}
} else {
window.location.href = 'index.html?author=' + text + '&';
}
}
/*$('.themenbutton').removeClass('chosenlight');
$('.themenbutton').removeClass('chosendark');
var farbe = document.getElementById('dieIdHabIchNochNicht1').style.backgroundColor;
if(farbe == 'rgb(48, 48, 48)'){
$('.themenbutton').addClass('notchosendark');
$('#alleartikel').addClass('chosendark');
} else {
$('.themenbutton').addClass('notchosenlight');
$('#alleartikel').addClass('chosenlight');
}
$('#LadekreisDiv').css({ 'display': 'inline-block' });
$('#loader').css({ 'display': 'inline-block' });
$('body').css({ 'overflow': 'hidden' });
$('#dieIdHabIchNochNicht1').css({ 'display': 'block' });
setTimeout(function() {
$('#loader').css({ 'display': 'none' });
$('#LadekreisDiv').css({ 'display': 'none' });
$('body').css({ 'overflow': 'visible' });
}, 1000);*/
});
if(autor){
var text = decodeURI(autor); // text == Autorenname
//console.log(text);
$('.autorselect > select').val(text);
$('.themenbutton').removeClass('chosenlight'); // alle Kategorien abwählen bei hellem Thema
$('.themenbutton').removeClass('chosendark'); // alle Kategorien abwählen bei dunklem Thema
var farbe = document.getElementById('dieIdHabIchNochNicht1').style.backgroundColor;
if(farbe == 'rgb(48, 48, 48)'){ // Artikel-Farbe -> dunkles Thema aktiviert?
$('.themenbutton').addClass('notchosendark'); // alle Kategorien abwählen
$('.autorselect > select').css({ 'background-color': '#facc2e' }); // Autor-Auswahl fürs dunkle Thema anpassen
$('.autorselect > select').css({ 'color': 'black' });
$('.autorselect > select > option').css({ 'background-color': '#303030' });
$('.autorselect > select > option').css({ 'color': '#facc2e' });
} else { // dunkles Thema nicht aktiviert
$('.themenbutton').addClass('notchosenlight'); // alle Kategorien abwählen
$('.autorselect > select').css({ 'background-color': 'rgb(192,0,0)' }); // Autor-Auswahl fürs dunkle Thema anpassen
$('.autorselect > select').css({ 'color': 'white' });
$('.autorselect > select > option').css({ 'background-color': 'white' });
$('.autorselect > select > option').css({ 'color': 'black' });
}
$('article').css({ 'display': 'none' }); // alle Artikel ausblenden
$('article').prev('hr').css({ 'display': 'none' }); // alle Zwischenlinien ausblenden
$('article:contains("' + text + '")').css({ 'display': 'block' }); // nur die Artikel mit dem Autorennahmen einblenden
$('article:contains("' + text + '")').prev('hr').css({ 'display': 'block' }); // dito für Zwischenlinien
$('#dieIdHabIchNochNicht1').css({ 'display': 'block' }); // obersten Artikel mit Datum etc. wieder einblenden
$('#KategorienArtikel').css({ 'display': 'block' });
$('#ÜberschriftArtikel').html(' ' + text); // Statt "Kategorie" der Autorname
$('#LadekreisDiv').css({ 'display': 'inline-block' }); // Fake-Ladekreis
$('#loader').css({ 'display': 'inline-block' });
$('body').css({ 'overflow': 'hidden' });
//$('#dieIdHabIchNochNicht1').css({ 'display': 'block' }); // War irgendwie doppelt drin. Braucht man das?
$('#NurNeueArtikel').css({ 'display': 'none' });
$('#AlleArtikel').css({ 'display': 'none' });
$('#NurAlteArtikel').css({ 'display': 'none' });
setTimeout(function() { // Fake-Ladekreis ausblenden
$('#loader').css({ 'display': 'none' });
$('#LadekreisDiv').css({ 'display': 'none' });
$('body').css({ 'overflow': 'visible' });
$('html, body').animate({ scrollTop: 0 }, 'slow');
}, 1000);
}
$('#TagmodusSymbol, #TagmodusPopup').on({
click: function(){
hell();
}
});
$('#NachtmodusSymbol, #NachtmodusPopup').on({
click: function(){
var date = new Date();
var days = 21;
date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
$.cookie('modus', 'dunkel', { expires: date });
dunkelohnecookie();
}
});
/*$('#HeadlineReal1').on({
mouseenter: function(){
$(this).css({ 'text-decoration': 'none' });
},
mouseleave: function(){
$(this).css({ 'text-decoration': 'none' });
})*/
$('#touchme1').on({
click: function(){
$(this).css({ 'color': 'red' });
}
});
$('#touchme2').on({
tap: function(){
$(this).css({ 'color': 'yellow' });
}
});
$('#touchme3').on({
touchstart: function(){
$(this).css({ 'color': 'blue' });
}
});
$('#touchme4').on({
touchend: function(){
$(this).css({ 'color': 'green' });
}
});
$('#touchme5').on({
click: function(){
$(this).css({ 'color': 'orange' });
$('#DatenschutzLinkMobile').css({ 'color': 'white' });
$('#Nachtmodus').css({ 'visibility': 'hidden' });
$('#Nachtmodus').css({ 'display': 'none' });
$('#Tagmodus').css({ 'visibility': 'visible' });
$('#Tagmodus').css({ 'display': 'inline' });
$('#außen').css({ 'background-color': '#000' });
$('#TagmodusPopup').css({ 'visibility': 'visible' });
$('#TagmodusPopup').text('Tagmodus');
$('#NachtmodusPopup').css({ 'visibility': 'hidden' });
$('#NachtmodusPopup').text('');
$('#InfoWeg').css({ 'color': 'white' });
$('#Section2').css({ 'background-color': 'black' });
$('#dieIdHabIchNochNicht1').css({ 'box-shadow': 'none' });
$('#DatumEtc').css({ 'color': 'white' });
$('.article').css({ 'background-color': '#303030' });
$('.headheadline1').css({ 'color': 'white' });
$('.Headline').css({ 'color': 'white' });
$('.Beschreibung').css({ 'color': '#aaaaaa' });
$('.mehr').css({ 'color': 'white' });
//$('.articleLinie').css({ 'background-color': 'black' });
$('.AGB-Popup2').css({ 'background-color': '#303030' });
$('.ÜberschriftPopup').css({ 'color': '#facc2e' });
$('.TextImPopup').css({ 'color': 'white' });
$('.Browsersymbole2, .Browsernennung2').css({ 'color': 'white' });
$('.KontaktPopupPer').css({ 'color': '#facc2e' });
$('.KontaktPopupUnterPer').css({ 'color': 'white' });
$('.KontaktPopupUnterPerPost').css({ 'color': 'white' });
$('#IETExtLink').css({ 'color': 'white' });
$('.PopupLink').css({ 'color': 'white' });
$('.mehrdazupopup').css({ 'color': 'white' });
$('.IETExtnurfürIE').css({ 'color': 'white' });
$('.IETExtnurfürIE2').css({ 'color': 'white' });
$('.IETExtnurfürIE3').css({ 'color': 'white' });
$('#AGB1476Link').css({ 'color': 'white' });
}
});
/*if($.cookie('mode') == 'dark')
$('#cookiesetzer').text('Dunkler Modus per Cookie gesetzt.');*/
$('#Sidemenu-Button1').click(function(){
MobileMenu();
});
$('#HeaderBeschreibungRutheneum, #HeaderBeschreibungRutheneum2').click(function(){
console.log('Schulwebsite besucht');
});
$('#uebersymbol').click(function(){
console.log('https://rutheneumbote.wordpress.com geöffnet');
});
$('#uebertext').click(function(){
console.log('https://rutheneumbote.wordpress.com geöffnet');
});
$('#wordpresssymbol').click(function(){
console.log('https://rutheneumbote.wordpress.com geöffnet');
});
$('#wordpresstext').click(function(){
console.log('https://rutheneumbote.wordpress.com geöffnet');
});
$('#nachtmodussymbol').click(function(){
nachtmoduscookiesetzen();
});
$('#nachtmodustext').click(function(){
nachtmoduscookiesetzen();
});
$('#betasymbol').click(function(){
Betafunktionen();
});
$('#betatext').click(function(){
Betafunktionen();
});
$('#CookiebannerCookies').click(function(){
Einstellungspopupdingeldongel();
});
$('#AGB1476Link').click(function(){
der1476Ersatz2();
AGBs();
});
$('#mobileschliessenid, #schliessenid2').click(function(){
der1476Ersatz2();
});
$('#mobileschliessenid').click(function(){
Einstellungspopupdingeldongel();
});
$('#impressumclose').click(function(){
Impressum2();
});
$('#kontaktclose').click(function(){
Kontakt2();
});
$('#PGPSchlüsselLink, #PGPSchlüsselSymbol').click(function(){
PGP();
});
$('#PGPclose').click(function(){
PGP2();
});
$('#mobileclose').click(function(){
MobileMenu2();
});
/*$('#KontaktMobileId').click(function(){
MobileMenu2();
Kontakt();
});
$('#MobileImpressum').click(function(){
MobileMenu2();
Impressum();
});
$('#NutzungsbedingungenMobile').click(function(){
MobileMenu2();
AGBs();
});*/
$('#betaclose').click(function(){
Betafunktionen2();
});
$('#aufrufenid').click(function(){
aufrufen();
});
$('#datum').click(function(){
berechne();
});
$('#datum2').click(function(){
berechne();
});
$('#datum3').click(function(){
berechne();
});
$('#datum4').click(function(){
berechne();
});
$('#kopierenbutton').click(function(){
kopieren();
});
$('#dunkelmachen').click(function(){
dunkelchecker();
});
$('#Sicherheitsclose').click(function(){
Sicherheitspopup2();
});
$('#mehrdazusicherheit').click(function(){
Sicherheitspopup2();
AGBs();
});
$('#IEclose').click(function(){
IEneinDanke2();
});
$('#IETExtLink').click(function(){
IEneinDanke2();
AGBs();
});
$('#EinstellungenSidemenu, #EinstellungenSidemenuText, #EinstellungenSidemenuText2, #rbEinstellungenSidemenuText, #rbEinstellungenSidemenuText2').click(function(){
Einstellungspopupdingeldongel();
});
$('.anmerkung').click(function(){
$('.anmerkung').css({ 'display': 'none' });
});
$('.mobileKategorie').click(function(){
var klasse = this.className;
if(klasse == 'mobileKategorie'){
$('.mobileKategorie').html('Kategorien ');
$('.mobileKategorie').toggleClass('mobileKategorie Kategorieausgeklappt');
$('.thementable').css({ 'display': 'block' });
} else if(klasse == 'Kategorieausgeklappt'){
$('.Kategorieausgeklappt').html('Kategorien ');
$('.Kategorieausgeklappt').toggleClass('Kategorieausgeklappt mobileKategorie');
$('.thementable').css({ 'display': 'none' });
}
});
$('.themenbutton').not('.chosen').hover(function(){
var farbe = document.getElementById('dieIdHabIchNochNicht1').style.backgroundColor;
if(farbe == 'rgb(48, 48, 48)'){
$(this).addClass('hovereddark');
} else {
$(this).addClass('hoveredlight');
}
},function(){
$(this).removeClass('hovereddark');
$(this).removeClass('hoveredlight');
});
var kategorie = getQueryVariable('category');
var kategorie = decodeURI(kategorie);
console.log('var kategorie: ' + kategorie);
console.log('kategorie == true: ' + kategorie == true);
if(kategorie !== undefined && kategorie != 'false'){
console.log('var kategorie: ' + kategorie);
console.log('typeof kategorie: ' + typeof kategorie);
console.log('kategorie.length: ' + kategorie.length);
var kategorieundefined = kategorie !== undefined;
var kategoriefalse = kategorie == 'false';
console.log('kategorie !== undefined: ' + kategorieundefined);
console.log("kategorie == 'false': " + kategoriefalse);
$('.autorselect > select').val('Autor');
$('.themenbutton').removeClass('chosenlight');
$('.themenbutton').removeClass('chosendark');
var farbe = document.getElementById('dieIdHabIchNochNicht1').style.backgroundColor;
if(farbe == 'rgb(48, 48, 48)'){
$('.themenbutton').not('.themenbutton:contains("' + kategorie + '")').addClass('notchosendark');
$('.themenbutton:contains("' + kategorie + '")').addClass('chosendark');
if(kategorie == 'neue Artikel') {
$('.themenbutton').not('#neueartikel').addClass('notchosendark');
$('#neueartikel').addClass('chosendark');
}
if(kategorie == 'alte Artikel') {
$('.themenbutton').not('#alteartikel').addClass('notchosendark');
$('#alteartikel').addClass('chosendark');
}
} else {
$('.themenbutton').not('.themenbutton:contains("' + kategorie + '")').addClass('notchosenlight');
$('.themenbutton:contains("' + kategorie + '")').addClass('chosenlight');
if(kategorie == 'neue Artikel') {
$('.themenbutton').not('#neueartikel').addClass('notchosenlight');
$('#neueartikel').addClass('chosenlight');
}
if(kategorie == 'alte Artikel') {
$('.themenbutton').not('#alteartikel').addClass('notchosenlight');
$('#alteartikel').addClass('chosenlight');
}
}
$('#LadekreisDiv').css({ 'display': 'inline-block' });
$('#loader').css({ 'display': 'inline-block' });
$('body').css({ 'overflow': 'hidden' });
setTimeout(function() {
$('#loader').css({ 'display': 'none' });
$('#LadekreisDiv').css({ 'display': 'none' });
$('body').css({ 'overflow': 'visible' });
}, 1000);
}
$('.themenbutton').click(function(){
var autorschonda = getQueryVariable('author');
var autorschonda = decodeURI(autorschonda);
var modeschonda = getQueryVariable('mode');
var modeschonda = decodeURI(modeschonda);
var cookiepopup = getQueryVariable('popup');
var cookiepopup = decodeURI(cookiepopup);
var kategorieschonda = getQueryVariable('category');
var kategorieschonda = decodeURI(kategorieschonda);
var kategorie = $(this).text();
var kategorien = ['alle Artikel', 'neue Artikel', 'alte Artikel', 'Corona', 'Buchtipps', 'Rutheneum', 'Klassenfahrten', 'Meinung', 'Gedichte/Geschichten', 'Politik'];
var autoren = ['Autor', 'T. Hoffmann', 'Yannick Albert', 'Maxine Günther', 'Thomas Graulich', 'Florian Zink', 'Klara Schimmel', 'Amelie Galke', 'Niklas Opitz', 'Raphael Fischer', 'Jeremia Hölscher', 'Antonia Bukowski', 'Max Resch', 'Evian-Nino Lenhardt', 'Til-Linus Kayser', 'Jonas Mohamed', 'Gustav Blaß'];
var modi = ['dark', 'alwaysdark'];
var popup = ['never'];
if(autoren.includes(autorschonda) || kategorien.includes(kategorieschonda)){
if(kategorie == 'alle Artikel'){
if(modi.includes(modeschonda) || popup.includes(cookiepopup)){
if(modi.includes(modeschonda) && popup.includes(cookiepopup)){
//window.location.href = 'https://de.wikipedia.org/Hauptseite';
window.location.href = 'index.html?mode=' + modeschonda + '&popup=never&';
}
if(modi.includes(modeschonda) && popup.includes(cookiepopup) == false){
//window.location.href = 'https://kuketz-blog.de';
window.location.href = 'index.html?mode=' + modeschonda + '&';
}
if(popup.includes(cookiepopup) && modi.includes(modeschonda)){
//window.location.href = 'https://metager.de';
window.location.href = 'index.html?popup=never&';
}
} else {
//window.location.href = 'https://digitalcourage.de';
window.location.href = 'index.html';
}
} else {
if(modi.includes(modeschonda) || popup.includes(cookiepopup)){
if(modi.includes(modeschonda) && popup.includes(cookiepopup)){
window.location.href = 'index.html?category=' + kategorie + '&mode=' + modeschonda + '&popup=never&';
}
if(modi.includes(modeschonda) && popup.includes(cookiepopup) == false){
window.location.href = 'index.html?category=' + kategorie + '&mode=' + modeschonda + '&';
}
if(popup.includes(cookiepopup) && modi.includes(modeschonda) == false){
window.location.href = 'index.html?category=' + kategorie + '&popup=never&';
}
} else {
window.location.href = 'index.html?category=' + kategorie + '&';
}
}
} else {
$('#ÜberschriftArtikel').text('Kategorien');
$('.autorselect > select').val('Autor');
$('#LadekreisDiv').css({ 'display': 'inline-block' });
$('#loader').css({ 'display': 'inline-block' });
$('body').css({ 'overflow': 'hidden' });
$('.themenbutton').removeClass('chosenlight');
$('.themenbutton').removeClass('chosendark');
var farbe = document.getElementById('dieIdHabIchNochNicht1').style.backgroundColor;
if(farbe == 'rgb(48, 48, 48)'){
$('.themenbutton').not(this).addClass('notchosendark');
$(this).addClass('chosendark');
} else {
$('.themenbutton').not(this).addClass('notchosenlight');
$(this).addClass('chosenlight');
}
/*var farbe = document.getElementById('dieIdHabIchNochNicht1').style.backgroundColor;
if(farbe == '#303030' || farbe == 'rgb(48,48,48)' || farbe == 'rgba(48,48,48,1)'){
$('.themenbutton').
} else {
}*/
setTimeout(function() {
$('#loader').css({ 'display': 'none' });
$('#LadekreisDiv').css({ 'display': 'none' });
$('body').css({ 'overflow': 'visible' });
}, 1000);
}
});
switch(kategorie){
case 'alle Artikel':
alleartikel();
break;
case 'alte Artikel':
alteartikel();
break;
case 'neue Artikel':
neueartikel();
break;
case 'Rutheneum':
rutheneum();
break;
case 'Corona':
corona();
break;
case 'Klassenfahrten':
klassenfahrten();
break;
case 'Buchtipps':
buchtipps();
break;
case 'Meinung':
meinung();
break;
case 'Gedichte/Geschichten':
gedichtegeschichten();
break;
case 'Politik':
politik();
break;
}
function alleartikel(){
$('article').css({ 'display': 'block' });
$('article').prev('hr').css({ 'display': 'block' });
$('#Kategorientitelarticle').css({ 'display': 'none' });
$('#section').css({ 'margin-top': '40px' });
}
function neueartikel(){
$('article').css({ 'display': 'none' });
$('article').has('table').not('.triplearticle').css({ 'display': 'block' });
$('article').prev('hr').css({ 'display': 'none' });
$('article').has('table').not('.triplearticle').prev('hr').css({ 'display': 'block' });
$("article:contains('Frohes Neues!')").css({ 'display': 'none' });
$("article:contains('Frohes Neues!')").prev('hr').css({ 'display': 'none' });
$('#KategorienArtikel').css({ 'display': 'block' });
section('Neue Artikel');
}
function alteartikel(){
$('article').css({ 'display': 'block' });
$('article').has('table').css({ 'display': 'none' });
$('#dieIdHabIchNochNicht1').css({ 'display': 'block' });
$('#KategorienArtikel').css({ 'display': 'block' });
$('.articleLinie').css({ 'display': 'block' });
$('article').has('table').prev('hr').css({ 'display': 'none' });
$('#KategorienArtikel').prev('hr').css({ 'display': 'block' });
section('Alte Artikel');
}
function klassenfahrten(){
$('article').css({ 'display': 'none' });
$('article').prev('hr').css({ 'display': 'none' });
$("article:contains('Klassenfahrt')").css({ 'display': 'block' });
$("article:contains('Klassenfahrt')").prev('hr').css({ 'display': 'block' });
$("article:contains('Friedrichshain')").css({ 'display': 'block' });
$("article:contains('Friedrichshain')").prev('hr').css({ 'display': 'block' });
$("article:contains('Englandfahrt')").css({ 'display': 'block' });
$("article:contains('Englandfahrt')").prev('hr').css({ 'display': 'block' });
$("article:contains('Skilager')").css({ 'display': 'block' });
$("article:contains('Skilager')").prev('hr').css({ 'display': 'block' });
$("article:contains('Schüleraustausch')").css({ 'display': 'block' });
$("article:contains('Schüleraustausch')").prev('hr').css({ 'display': 'block' });
$("article:contains('New York, New York')").css({ 'display': 'block' });
$("article:contains('New York, New York')").prev('hr').css({ 'display': 'block' });
$("article:contains('Walgesang')").css({ 'display': 'block' });
$("article:contains('Walgesang')").prev('hr').css({ 'display': 'block' });
$("article:contains('PORSCHE')").css({ 'display': 'block' });
$("article:contains('PORSCHE')").prev('hr').css({ 'display': 'block' });
$("article:contains('Das Ministerium und')").css({ 'display': 'none' });
$("article:contains('Das Ministerium und')").prev('hr').css({ 'display': 'none' });
$('#KategorienArtikel').css({ 'display': 'block' });
section('Klassenfahrten');
}
function rutheneum(){
$('article').css({ 'display': 'none' });
$('article').prev('hr').css({ 'display': 'none' });
$("article:contains('Rutheneum')").css({ 'display': 'block' });
$("article:contains('Rutheneum')").prev('hr').css({ 'display': 'block' });
$("article:contains('Musiabend')").css({ 'display': 'block' });
$("article:contains('Musiabend')").prev('hr').css({ 'display': 'block' });
$("article:contains('Kurswahl')").css({ 'display': 'block' });
$("article:contains('Kurswahl')").prev('hr').css({ 'display': 'block' });
$("article:contains('BLF')").css({ 'display': 'block' });
$("article:contains('BLF')").prev('hr').css({ 'display': 'block' });
$("article:contains('Große lesen für Kleine')").css({ 'display': 'block' });
$("article:contains('Große lesen für Kleine')").prev('hr').css({ 'display': 'block' });
$("article:contains('Lehrer des Monats')").css({ 'display': 'block' });
$("article:contains('Lehrer des Monats')").prev('hr').css({ 'display': 'block' });
$("article:contains('Das Ministerium und')").css({ 'display': 'block' });
$("article:contains('Das Ministerium und')").prev('hr').css({ 'display': 'block' });
$("article:contains('Praktikum bei der OTZ')").css({ 'display': 'none' });
$("article:contains('Praktikum bei der OTZ')").prev('hr').css({ 'display': 'none' });
$("article:contains('Frohes Neues!')").css({ 'display': 'none' });
$("article:contains('Frohes Neues!')").prev('hr').css({ 'display': 'none' });
$('#KategorienArtikel').css({ 'display': 'block' });
section('Rutheneum');
}
function corona(){
$('article').css({ 'display': 'none' });
$('article').prev('hr').css({ 'display': 'none' });
$("article:contains('Corona')").css({ 'display': 'block' });
$("article:contains('Corona')").prev('hr').css({ 'display': 'block' });
$('#KategorienArtikel').css({ 'display': 'block' });
section('Corona');
}
function meinung(){
$('article').css({ 'display': 'none' });
$('article').prev('hr').css({ 'display': 'none' });
$("article:contains('Meinung')").css({ 'display': 'block' });
$("article:contains('Meinung')").prev('hr').css({ 'display': 'block' });
$("article:contains('Kommentar')").css({ 'display': 'block' });
$("article:contains('Kommentar')").prev('hr').css({ 'display': 'block' });
$("article:contains('Oberkotzau')").css({ 'display': 'none' });
$("article:contains('Oberkotzau')").prev('hr').css({ 'display': 'none' });
$('#KategorienArtikel').css({ 'display': 'block' });
section('Meinung');
}
function buchtipps(){
$('article').css({ 'display': 'none' });
$('article').prev('hr').css({ 'display': 'none' });
$("article:contains('Buchtipp')").css({ 'display': 'block' });
$("article:contains('Buchtipp')").prev('hr').css({ 'display': 'block' });
$('#KategorienArtikel').css({ 'display': 'block' });
section('Buchtipps');
}
function gedichtegeschichten(){
$('article').css({ 'display': 'none' });
$('article').prev('hr').css({ 'display': 'none' });
$("article:contains('Gedicht')").css({ 'display': 'block' });
$("article:contains('Gedicht')").prev('hr').css({ 'display': 'block' });
$("article:contains('Geschichte')").css({ 'display': 'block' });
$("article:contains('Geschichte')").prev('hr').css({ 'display': 'block' });
$('#triple2').css({ 'display': 'block' }); $('#triple1').prev('hr').css({ 'display': 'block' });
$("article:contains('Das Glockenspiel Geras')").css({ 'display': 'none' });
$("article:contains('Das Glockenspiel Geras')").prev('hr').css({ 'display': 'none' });
$("article:contains('die unendliche Geschichte der gestrichenen Fahrten')").css({ 'display': 'none' });
$("article:contains('die unendliche Geschichte der gestrichenen Fahrten')").prev('hr').css({ 'display': 'none' });
$('#KategorienArtikel').css({ 'display': 'block' });
section('Gedichte und Geschichten');
}
function politik(){
$('article').css({ 'display': 'none' });
$('article').prev('hr').css({ 'display': 'none' });
$("article:contains('Politik')").css({ 'display': 'block' });
$("article:contains('Politik')").prev('hr').css({ 'display': 'block' });
$("article:contains('Asyl für Snowden')").css({ 'display': 'block' });
$("article:contains('Asyl für Snowden')").prev('hr').css({ 'display': 'block' });
$("article:contains('Tillman Becker')").css({ 'display': 'block' });
$("article:contains('Tillman Becker')").prev('hr').css({ 'display': 'block' });
$("article:contains('Elisabeth Kaiser')").css({ 'display': 'block' });
$("article:contains('Elisabeth Kaiser')").prev('hr').css({ 'display': 'block' });
$("article:contains('Tag der Demokratie')").css({ 'display': 'block' });
$("article:contains('Tag der Demokratie')").prev('hr').css({ 'display': 'block' });
$("article:contains('Fake News')").css({ 'display': 'block' });
$("article:contains('Fake News')").prev('hr').css({ 'display': 'block' });
$("article:contains('Seegebiete')").css({ 'display': 'block' });
$("article:contains('Seegebiete')").prev('hr').css({ 'display': 'block' });
$("article:contains('Das Ministerium und die')").css({ 'display': 'block' });
$("article:contains('Das Ministerium und die')").prev('hr').css({ 'display': 'block' });
$("article:contains('Donald Trump')").css({ 'display': 'block' });
$("article:contains('Donald Trump')").prev('hr').css({ 'display': 'block' });
$("article:contains('Bundespräsident')").css({ 'display': 'block' });
$("article:contains('Bundespräsident')").prev('hr').css({ 'display': 'block' });
$('#KategorienArtikel').css({ 'display': 'block' });
section('Politik');
}
function section(kategorie){
/*($('section:first-child').is('hr') == true){
$('section:first-child').css({ 'display': 'none' });
}*/
$('#Kategorientitelarticle').css({ 'display': 'block' });
$('#Kategorientitel').text(kategorie);
$('#section').css({ 'margin-top': '1px' });
}
$('#alleartikel, #alleartikel2').click(function(){
alleartikel();
});
$('#neueartikel, #neueartikel2').click(function(){
neueartikel();
});
$('#alteartikel, #alteartikel2').click(function(){
alteartikel();
});
$('#klassenfahrten, #klassenfahrten2').click(function(){
klassenfahrten();
});
$('#rutheneum, #rutheneum2').click(function(){
rutheneum();
});
$('#coronavirus').click(function(){
corona();
});
$('#meinungsthemen, #meinungsthemen2').click(function(){
meinung();
});
$('#buchtipps, #buchtipps2, #buchtippsx').click(function(){
buchtipps();
});
$('#gedichtegeschichten, #gedichtegeschichten2, #gedichtegeschichtenx').click(function(){
gedichtegeschichten();
});
$('#politik, #politik2, #politikx, #politikx2').click(function(){
politik();
});
$('.KategorienArticle').mousewheel(function(event, delta) {
this.scrollLeft -= delta * 200;
event.preventDefault();
});
$('.triplearticle').mousewheel(function(event, delta) {
if(this.scrollWidth > this.clientWidth) {
this.scrollLeft -= delta * 200;
event.preventDefault();
console.log('Scrollen funktioniert ja doch!');
}
});
const slider = document.querySelector('.KategorienArticle');
let isDown = false;
let startX;
let scrollLeft;
slider.addEventListener('mousedown', (e) => {
isDown = true;
slider.classList.add('active');
startX = e.pageX - slider.offsetLeft;
scrollLeft = slider.scrollLeft;
});
slider.addEventListener('mouseleave', () => {
isDown = false;
slider.classList.remove('active');
});
slider.addEventListener('mouseup', () => {
isDown = false;
slider.classList.remove('active');
});
slider.addEventListener('mousemove', (e) => {
if(!isDown) return;
e.preventDefault();
const x = e.pageX - slider.offsetLeft;
const walk = (x - startX) * 1; //scroll-fast
slider.scrollLeft = scrollLeft - walk;
});
var x,y,top,left,down;
$(".triplearticle").mousedown(function(e){
e.preventDefault();
down = true;
x = e.pageX;
y = e.pageY;
top = $(this).scrollTop();
left = $(this).scrollLeft();
$(this).css({ 'cursor': 'grab' });
});
$("body").mousemove(function(e){
if(down){
var newX = e.pageX;
var newY = e.pageY;
$(".triplearticle").scrollTop(top - newY + y);
$(".triplearticle").scrollLeft(left - newX + x);
}
});
$("body").mouseup(function(e){
down = false;
$('.triplearticle').css({ 'cursor': 'auto' });
});
/*$('.NeuText').click(function(){
neueartikel();
$('#LadekreisDiv').css({ 'display': 'inline-block' });
$('#loader').css({ 'display': 'inline-block' });
$('body').css({ 'overflow': 'hidden' });
$('article').css({ 'display': 'none' });
$('article').has('table').css({ 'display': 'block' });
$('.articleLinie').css({ 'display': 'none' });
$('article').has('table').prev('hr').css({ 'display': 'block' });
$('#dieIdHabIchNochNicht1').css({ 'display': 'block' });
$('#KategorienArtikel').css({ 'display': 'block' });
$('#NurNeueArtikel').css({ 'display': 'none' });
$('#AlleArtikel').css({ 'display': 'inline' });
$('#NurAlteArtikel').css({ 'display': 'inline' });
$('#ÜberschriftArtikel').text('Nur neue Artikel des Rutheneum-Boten');
setTimeout(function() {
$('#loader').css({ 'display': 'none' });
$('#LadekreisDiv').css({ 'display': 'none' });
$('body').css({ 'overflow': 'visible' });
$('html, body').animate({ scrollTop: 0 }, 'slow');
}, 1000);
});*/
/*
$('#NurNeueArtikel').click(function(){
$('#LadekreisDiv').css({ 'display': 'inline-block' });
$('#loader').css({ 'display': 'inline-block' });
$('body').css({ 'overflow': 'hidden' });
$('article').css({ 'display': 'none' });
$('article').has('table').css({ 'display': 'block' });
$('.articleLinie').css({ 'display': 'none' });
$('article').has('table').prev('hr').css({ 'display': 'block' });
$('#dieIdHabIchNochNicht1').css({ 'display': 'block' });
$('#NurNeueArtikel').css({ 'display': 'none' });
$('#AlleArtikel').css({ 'display': 'inline' });
$('#NurAlteArtikel').css({ 'display': 'inline' });
$('#ÜberschriftArtikel').text('Nur neue Artikel des Rutheneum-Boten');
setTimeout(function() {
$('#loader').css({ 'display': 'none' });
$('#LadekreisDiv').css({ 'display': 'none' });
$('body').css({ 'overflow': 'visible' });
$('html, body').animate({ scrollTop: 0 }, 'slow');
}, 1000);
});
$('#NurAlteArtikel').click(function(){
$('#LadekreisDiv').css({ 'display': 'inline-block' });
$('#loader').css({ 'display': 'inline-block' });
$('body').css({ 'overflow': 'hidden' });
$('article').css({ 'display': 'block' });
$('article').has('table').css({ 'display': 'none' });
$('.articleLinie').css({ 'display': 'block' });
$('article').has('table').prev('hr').css({ 'display': 'none' });
$('#NurNeueArtikel').css({ 'display': 'inline' });
$('#AlleArtikel').css({ 'display': 'inline' });
$('#NurAlteArtikel').css({ 'display': 'none' });
$('#ÜberschriftArtikel').text('Nur alte Artikel des Rutheneum-Boten');
setTimeout(function() {
$('#loader').css({ 'display': 'none' });
$('#LadekreisDiv').css({ 'display': 'none' });
$('body').css({ 'overflow': 'visible' });
$('html, body').animate({ scrollTop: 0 }, 'slow');
}, 1000);
});
$('#AlleArtikel').click(function(){
$('#LadekreisDiv').css({ 'display': 'inline-block' });
$('#loader').css({ 'display': 'inline-block' });
$('body').css({ 'overflow': 'hidden' });
$('article').css({ 'display': 'block' });
$('.articleLinie').css({ 'display': 'block' });
$('#NurNeueArtikel').css({ 'display': 'inline' });
$('#AlleArtikel').css({ 'display': 'none' });
$('#NurAlteArtikel').css({ 'display': 'inline' });
$('#ÜberschriftArtikel').text('Alle Artikel des Rutheneum-Boten');
setTimeout(function() {
$('#loader').css({ 'display': 'none' });
$('#LadekreisDiv').css({ 'display': 'none' });
$('body').css({ 'overflow': 'visible' });
$('html, body').animate({ scrollTop: 0 }, 'slow');
}, 1000);
});*/
$('#URLOK').click(function(){
URLkopieren();
});
/*$('#immerhellradio').click(function(){
console.log('Augsburg');
var url = $('#RBURLEinstellungen').val();
var urlkorr = url.replace('mode=dark&', '');
var urlkorr = url.replace('mode=alwaysdark&', '');
$('#RBURLEinstellungen').val(urlkorr);
});
$('#einmaldunkel').click(function(){
console.log('Berlin');
var url = $('#RBURLEinstellungen').val();
var urlkorr = url.replace('mode=alwaysdark&', 'mode=dark&');
$('#RBURLEinstellungen').val(urlkorr);
});
$('#immerdunkelradio').click(function(){
console.log('Chemnitz');
var url = $('#RBURLEinstellungen').val();
var urlkorr = url.replace('mode=dark&', 'mode=alwaysdark&');
$('#RBURLEinstellungen').val(urlkorr);
});
$('#immeranzeigenradio').click(function(){
console.log('Dresden');
var url = $('#RBURLEinstellungen').val();
var urlkorr = url.replace('popup=never&', '');
$('#RBURLEinstellungen').val(urlkorr);
});
$('#nichtmehranzeigenradio').click(function(){
console.log('Erfurt');
var url = $('#RBURLEinstellungen').val();
$('#RBURLEinstellungen').val(url + 'popup=never&');
});*/
});
$(function(){
if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
dunkelohnecookie();
//dunkelohnecookieX();
}
});
function dunkelohnecookie() {
$('head').append('')
console.log('Nachtmodus aktiviert.');
/*$('#eigentlicherArtikelNeu').attr('style', 'color: #aaaaaa;');
$('.AGB-Popup2 .close, #einstellungencookieslöschen, .KontaktPopupPer, .ÜberschriftPopup, .HeadlineOhneLink, .Headline, .eilmeldung .NeuText').css({ 'color': '#facc2e' });
$('.Beschreibung, .obersteBeschreibung, #cookietabelle, #kontaktform, .Browsersymbole, .BrowsersymboleLink, .BrowsernennungLink, .browsertable, .eigentlicherArtikel2, .eigentlicherArtikel, #articleviews, #lesedauer').css({ 'color': '#aaaaaa' });
$('.autorHeadline, .autoricon, .autorHeadlineLink, .kontaktlabel, .datenschutzinnertext, .triplesubheadline, #MobilesMenuNeu, .NavDesc a, .NavPunkt a, #articleselect, #mastodoninstanzinput, #mastodoninstanz, .teilenbutton, #artikeldatum, #oberstezeile, #Spamfeld, .datei, .symboltd > .far, .symboltd > .fas, .textinput, .autorLink, .nebenbemerkung, #RBURLEinstellungen, .mobileschließen, #AGB1476Link, #WikiLink, .IETExtnurfürIE3, .IETExtnurfürIE2, .IETExtnurfürIE, .mehrdazupopup, .PopupLink, .KontaktPopupUnterPer, .KontaktPopupUnterPerPost, #IETExtLink, .TextImPopup, .Browsersymbole2, .Browsernennung2, .mehr, .headheadline1ohnelink, .articleLinks, .articleWichtig, .headheadline1, #DatumEtc, #InfoWeg, #externalLink2, #externalLink, #einstellungenoder, #EinstellungenMobile, #ÜberschriftArtikel, #mobileÜberschriftArtikel, .ArtikelOption, .MobilePunkte, #DatenschutzLinkMobile, #EinstellungenMobile, .blackarticle .Beschreibung, .kommentarat, .kommentator').css({ 'color': 'white' });
*/$('.notchosenlight').addClass('notchosendark');
$('.notchosenlight').removeClass('notchosenlight');
$('.chosenlight').addClass('chosendark');
$('.chosenlight').removeClass('chosenlight');
/*$('.floatingbutton, .anmerkung, #senden, #leserbriefbutton, #leserbriefbutton, #mastodoninstanzok, .eilmeldung .headheadline1, .eilmeldung .mehr, .eilmeldung .Beschreibung, .eilmeldung .headheadline1ohnelink, .NeuText, .eilmeldung .Headline, .eilmeldung .HeadlineOhneLink, .einstellungenOK, #mobilecloser').css({ 'color': 'black' });
$('.einstellungenOK').css({ 'border-color': '#facc2e' });
$('.eilmeldung').css({ 'background-color': '#facc2e' });
$('#mobilecloser').attr({ 'style': 'color: black; background-color: #facc2e' });
*/$('#einstellungenthema').text('immer dunkel');/*
$('#NachtmodusSymbol, #Nachtmodus, #NachtmodusPopup, #NachtmodusPopupIcon').css({ 'visibility': 'hidden' });
$('#NachtmodusSymbol, #NachtmodusPopup, #Nachtmodus, #torwhite').css({ 'display': 'none' });
$('#TagmodusSymbol, #Tagmodus, #TagmodusPopup, #TagmodusPopupIcon').css({ 'visibility': 'visible' });
$('#TagmodusSymbol, #Tagmodus, #TagmodusPopupIcon').css({ 'display': 'inline' });
$('#außen, #Section2, .eilmeldung .NeuText').css({ 'background-color': 'black' });
$('.articleLinie').css({ 'background-color': '#777' });
$('#TagmodusPopup, #TagmodusPopupIcon').css({ 'display': 'inline-block' });
*/$('#TagmodusPopup').text('Tagmodus');
$('#NachtmodusPopup').text('');/*
$('#dieIdHabIchNochNicht1').css({ 'box-shadow': 'none' });
$('#torblack').css({ 'display': 'block' });
$('section, #section, #datenschutzpopup, .autorselect > select > option, #MobilesMenuNeu, .tripletd, .alledrei, #NavBar, .AGB-Popup2, .article').css({ 'background-color': '#303030' });
//$('.Browsernennung2').css({ 'color': 'white' });
$('#RBURLEinstellungen').css({ 'border-color': 'white' });
$('.anmerkung').css({ 'background-color': '#facc2e' });
$('.floatingbuttondiv').css({ 'background': 'linear-gradient(135deg, rgba(255,222,0,1) 0%, rgba(197,131,38,1) 100%)' });
$('#suchfeld').css({ 'color': '#facc2e', 'border-color': '#facc2e', 'background-color': '#303030' });
*/
var asbg = $('.autorselect > select').css('background-color' );
if(asbg == 'rgb(192, 0, 0)' || asbg == 'rgb(250, 204, 46)'){
$('.themenbutton').addClass('notchosendark');
$('.autorselect > select').css({ 'background-color': '#facc2e' });
$('.autorselect > select').css({ 'color': 'black' });
} else {
$('.autorselect > select').css({ 'color': '#facc2e' });
$('.autorselect > select').css({ 'background-color': 'transparent' });
}
/*
$('.ordnerclose > i, .autorselect > select > option, #einstellungenabbrechen').css({ 'color': '#facc2e' });
$('.inputfake, #articleselect, #https, #mastodoninstanzinput, .articleshare, .textinput, #Spamfeld').css({ 'border-color': 'white' });
$('.autorselect > select, #leserbriefbutton, #senden').css({ 'border-color': '#facc2e' });
$('#cookietabelle td, #cookietabelle').css({ 'border-color': '#aaaaaa' });
$('#mastodoninstanzabbrechen, #linkteilen2').css({ 'color': '#facc2e' });
$('#senden, #leserbriefbutton, #leserbriefbutton, #mastodoninstanzok').css({ 'background-color': '#facc2e' });
$('.sendenfake').css({ 'background-color': '#facc2e', 'color': 'black', 'border-color': '#facc2e' });
$('.mobilehr').css({ 'background-color': 'white' });
$('#https, .tripledescription').css({ 'color': '#aaaaaa' });
$('.tripleheadline').css({ 'color': '#facc2e' });
$('.NeuTableTd, .kommentaranzahl').css({ 'background-color': '#facc2e', 'color': 'black' });
$('.eilmeldung .NeuTableTd').css({ 'background-color': 'black', 'color': '#facc2e' });
$('.eilmeldung .NeuTableTd').css({ 'background-color': 'black', 'color': '#facc2e' });
$('.zitat, .kommentardiv').css({ 'background-color': '#555555', 'color': 'white', 'border-color': 'white' });
$('.zitatheadline').css({ 'background-color': '#555555', 'color': 'white', 'border-color': 'white', 'border-bottom-color': '#555555' });
$('#rightpfeil, #leftpfeil').css({ 'color': '#facc2e' });
$('.eiltexttag').css({ 'background-color': 'black', 'color': '#facc2e' });
$('.IPTag, .gridtag').css({ 'background-color': '#facc2e', 'color': 'black' });
$('.triplearticle, .tripleplatzhalter').css({ 'background-color': 'black' });
$('.eilmeldung, .NeuText, .einstellungenOK, #mobilecloser').css({ 'background-color': '#facc2e' });
$('.NavChosen').css({ 'color': '#facc2e' });
$('.NavChosen').attr( 'style', 'color: #facc2e !important' );
$('#einstellungencookieslöschen, #einstellungenOK, .einstellungenOK').css({ 'border-color': '#facc2e' });
*/
$('#senden, #leserbriefbutton').hover(function(){
$(this).css({ 'background-color': 'transparent' });
$(this).css({ 'color': '#facc2e' });
}, function(){
$(this).css({ 'background-color': '#facc2e' });
$(this).css({ 'color': 'black' });
});
}
function hell() {
$('link[rel=stylesheet][href~="darkmode.css"]').remove();
console.log('Tagmodus aktiviert.');
$.removeCookie('modus');
/*$('.autorHeadline, .autorHeadlineLink, .autoricon, #articleviews, #lesedauer').css({ 'color': 'black' });
$('.kontaktlabel').css({ 'color': 'black' });
$('.AGB-Popup2 .close').css({ 'color': 'rgb(192,0,0)' });
$('#einstellungenabbrechen').css({ 'color': 'rgb(192,0,0)' });
$('.datenschutzinnertext').css({ 'color': 'black' });
$('#datenschutzpopup').css({ 'background-color': 'white' });
$('#ÜberschriftArtikel').css({ 'color': 'black' });
$('#mobileÜberschriftArtikel').css({ 'color': 'black' });
$('.notchosendark').addClass('notchosenlight');
$('.notchosendark').removeClass('notchosendark');
$('.chosendark').addClass('chosenlight');
$('.chosendark').removeClass('chosendark');
$('.ArtikelOption').css({ 'color': 'black' });
$('.MobilePunkte').css({ 'color': 'black' });
$('#DatenschutzLinkMobile').css({ 'color': 'white' });
$('#EinstellungenMobile').css({ 'color': 'black' });
$('#einstellungenOK').css({ 'color': 'white', 'border-color': 'rgb(192,0,0)' });
$('#mobilecloser').css({ 'color': 'black' });
$('#mobilecloser').css({ 'background-color': 'facc2e' });
$('#mobilecloser').attr({ 'style': 'color: white; background-color: rgb(192,0,0)' });
$('#einstellungenoder').css({ 'color': 'black' });
$('#einstellungencookieslöschen').css({ 'color': 'rgb(192,0,0)', 'border-color': 'rgb(192,0,0)' });*/
$('#Cookielöschen').text('Cookie löschen');
/*$('#Cookielöschen').css({ 'cursor': 'pointer' });
$('#Cookielöschen:hover').css({ 'text-decoration': 'underline' });
$('#externalLink').css({ 'color': 'black' });
$('#externalLink2').css({ 'color': 'black' });
$('#Nachtmodus, #NachtmodusSymbol').css({ 'visibility': 'visible' });
$('#Nachtmodus, #NachtmodusSymbol').css({ 'display': 'inline' });
$('#Tagmodus, #TagmodusSymbol').css({ 'visibility': 'hidden' });
$('#Tagmodus, #TagmodusSymbol').css({ 'display': 'none' });
$('#torwhite').css({ 'display': 'block' });
$('#torblack').css({ 'display': 'none' });
$('#außen').css({ 'background-color': '#f2f1ec' });
$('#TagmodusPopup, #TagmodusPopupIcon').css({ 'visibility': 'hidden' });
$('#TagmodusPopup, #TagmodusPopupIcon').css({ 'display': 'none' });*/
$('#TagmodusPopup').text('');
/*$('#NachtmodusPopup, #NachtmodusPopupIcon').css({ 'visibility': 'visible' });
$('#NachtmodusPopup, #NachtmodusPopupIcon').css({ 'display': 'inline-block' });*/
$('#NachtmodusPopup').text('Nachtmodus');
/*$('#InfoWeg').css({ 'color': 'black' });
$('#Section2').css({ 'background-color': '#f2f1ec' });
$('#DatumEtc').css({ 'color': 'black' });
$('.article').css({ 'background-color': 'white' });
$('.eilmeldung').css({ 'background-color': 'rgb(192,0,0)' });
$('.NeuText').css({ 'background-color': 'rgb(192,0,0)' });
$('.NeuText').css({ 'color': 'white' });
$('.eilmeldung .NeuText').css({ 'color': 'rgb(192,0,0)' });
$('.eilmeldung .NeuText, section, #section').css({ 'background-color': 'white' });
$('.headheadline1').css({ 'color': 'black' });
$('.eilmeldung .headheadline1').css({ 'color': 'white' });
$('.headheadline1ohnelink').css({ 'color': 'black' });
$('.eilmeldung .headheadline1ohnelink').css({ 'color': 'white' });
$('.Headline').css({ 'color': 'rgb(192,0,0)' });
$('.eilmeldung .Headline').css({ 'color': 'white' });
$('.HeadlineOhneLink').css({ 'color': 'rgb(192,0,0)' });
$('.Beschreibung').css({ 'color': 'black' });
$('.eilmeldung .Beschreibung').css({ 'color': 'white' });
$('.articleLinks').css({ 'color': 'black' });
$('.articleWichtig').css({ 'color': 'black' });
$('.mehr').css({ 'color': 'rgb(192,0,0)' });
$('.eilmeldung .mehr').css({ 'color': 'white' });
$('.articleLinie').css({ 'background-color': '#f2f1ec' });
$('.AGB-Popup2').css({ 'background-color': 'white' });
$('.ÜberschriftPopup').css({ 'color': 'rgb(192,0,0)' });
$('.TextImPopup').css({ 'color': 'black' });
$('.Browsersymbole2').css({ 'color': 'black' });
$('.Browsernennung2').css({ 'color': 'black' });
$('.KontaktPopupPer').css({ 'color': 'rgb(192,0,0)' });
$('.KontaktPopupUnterPer').css({ 'color': 'black' });
$('.KontaktPopupUnterPerPost').css({ 'color': 'black' });
$('#IETExtLink').css({ 'color': 'black' });
$('.PopupLink').css({ 'color': 'black' });
$('.mehrdazupopup').css({ 'color': 'black' });
$('.IETExtnurfürIE').css({ 'color': 'rgb(192,0,0)' });
$('.IETExtnurfürIE2').css({ 'color': 'rgb(192,0,0)' });
$('.IETExtnurfürIE3').css({ 'color': 'black' });
$('#WikiLink').css({ 'color': 'black' });
$('#AGB1476Link').css({ 'color': 'black' });
$('.mobileschließen').css({ 'color': 'black' });
$('#RBURLEinstellungen').css({ 'border-color': 'black' });
$('#RBURLEinstellungen').css({ 'color': 'black' });
$('.eigentlicherArtikel').css({ 'color': 'black' });
$('.eigentlicherArtikel2').css({ 'color': 'black' });
$('.browsertable').css({ 'color': 'black' });
$('.anmerkung').css({ 'color': 'white' });
$('.anmerkung').css({ 'background-color': 'rgb(192,0,0)' });
$('.nebenbemerkung').css({ 'color': 'black' });
$('.autorLink').css({ 'color': 'black' });
$('.BrowsernennungLink').css({ 'color': 'black' });
$('.BrowsersymboleLink').css({ 'color': 'black' });
$('.Browsersymbole').css({ 'color': 'black' });
$('#suchfeld').css({ 'color': 'black', 'border-color': 'rgb(192,0,0)', 'background-color': '#f2f1ec' });
$('.floatingbutton').css({ 'color': 'white' });
$('.floatingbuttondiv').css({ 'background': 'linear-gradient(135deg, rgba(255,0,0,1) 0%, rgba(192,0,0,1) 100%)' });
$('.autorselect > select').css({ 'color': 'rgb(192,0,0)' });
$('.autorselect > select').css({ 'border-color': 'rgb(192,0,0)' });
$('.autorselect > select > option').css({ 'background-color': 'white' });
$('.autorselect > select > option').css({ 'color': 'black' });
$('#cookietabelle').css({ 'border-color': 'black' });
$('#cookietabelle').css({ 'color': 'black' });
$('#cookietabelle td').css({ 'border-color': 'black' });
$('#oberstezeile').css({ 'color': 'black' });*/
var asbg = $('.autorselect > select').css('background-color' );
if(asbg == 'rgb(192, 0, 0)' || asbg == 'rgb(250, 204, 46)'){
$('.themenbutton').addClass('notchosenlight');
$('.autorselect > select').css({ 'background-color': 'rgb(192,0,0)' });
$('.autorselect > select').css({ 'color': 'white' });
} else {
$('.autorselect > select').css({ 'color': 'rgb(192,0,0)' });
$('.autorselect > select').css({ 'background-color': 'transparent' });
}
/*$('.autorselect > select').css({ 'border-color': 'rgb(192,0,0)' });
$('.autorselect > select > option').css({ 'background-color': 'white' });
$('.autorselect > select > option').css({ 'color': 'black' });
$('.obersteBeschreibung').css({ 'color': 'black' });
$('.symboltd > .fas').css({ 'color': '#1e70bf' });
$('.symboltd > .far').css({ 'color': 'black' });
$('.datei').css({ 'color': '#1e70bf' });
$('.ordnerclose > i').css({ 'color': 'black' });
$('#kontaktform').css({ 'color': 'black' });
$('.textinput').css({ 'border-color': 'black' });
$('.textinput').css({ 'color': 'black' });
$('#Spamfeld').css({ 'border-color': 'black' });
$('#Spamfeld').css({ 'color': 'black' });
$('#senden').css({ 'background-color': 'rgb(192,0,0)' });
$('#senden').css({ 'color': 'white' });
$('#senden').css({ 'border-color': 'rgb(192,0,0)' });
$('#leserbriefbutton').css({ 'background-color': 'rgb(192,0,0)' });
$('#leserbriefbutton').css({ 'color': 'white' });
$('#leserbriefbutton').css({ 'border-color': 'rgb(192,0,0)' });
$('.teilenbutton').css({ 'color': 'white' });
$('.articleshare').css({ 'border-color': 'black' });
$('#linkteilen2').css({ 'color': 'rgb(0, 160, 20)' });
$('#mastodoninstanz').css({ 'color': 'black' });
$('#mastodoninstanzinput').css({ 'color': 'white' });
$('#mastodoninstanzinput').css({ 'border-color': 'black' });
$('#mastodoninstanzok').css({ 'background-color': 'rgb(192,0,0)' });
$('#mastodoninstanzok').css({ 'color': 'black' });
$('#mastodoninstanzabbrechen').css({ 'color': 'rgb(192,0,0)' });
$('#https').css({ 'border-color': 'black' });
$('#https').css({ 'color': '#767676' });
$('#leserbriefbutton').css({ 'background-color': 'rgb(192,0,0)' });
$('#leserbriefbutton').css({ 'color': 'white' });
$('#artikeldatum').css({ 'color': 'black' });
$('#articleselect').css({ 'color': 'black' });
$('#articleselect').css({ 'border-color': 'black' });
$('.inputfake').css({ 'border-color': 'black' });
$('.sendenfake').css({ 'background-color': 'rgb(192,0,0)' });
$('.sendenfake').css({ 'color': 'white' });
$('.sendenfake').css({ 'border-color': 'rgb(192,0,0)' });
$('#MobilesMenuNeu').css({ 'background-color': 'white' });
$('#MobilesMenuNeu').css({ 'color': 'black' });
$('.mobilehr').css({ 'background-color': 'black' });
$('#NavBar').css({ 'background-color': 'white' });
$('.NavPunkt a').css({ 'color': 'black' });
$('.NavDesc a').css({ 'color': 'black' });
$('.alledrei').css({ 'background-color': 'white' });
$('.triplesubheadline').css({ 'color': 'black' });
$('.tripleheadline').css({ 'color': 'rgb(192,0,0)' });
$('.tripledescription').css({ 'color': 'black' });
$('.NeuTableTd, .kommentaranzahl').css({ 'background-color': 'rgb(192,0,0)', 'color': 'white' });
$('.eilmeldung .NeuTableTd').css({ 'background-color': 'white', 'color': 'rgb(192,0,0)' });
$('.zitat').css({ 'background-color': '#eef6ff', 'color': 'black', 'border-color': 'black' });
$('.zitatheadline').css({ 'color': 'black', 'border-color': 'black', 'border-bottom-color': '#eef6ff', 'background-color': '#eef6ff' });
$('#leftpfeil').css({ 'color': 'rgb(192,0,0)' });
$('#rightpfeil').css({ 'color': 'rgb(192,0,0)' });
$('.eiltexttag').css({ 'background-color': 'white', 'color': 'rgb(192,0,0)' });
$('.gridtag').css({ 'background-color': 'rgb(192,0,0)', 'color': 'white' });
$('.IPTag').css({ 'background-color': 'rgb(192,0,0)', 'color': 'white' });
$('.triplearticle, .tripleplatzhalter').css({ 'background-color': '#f2f1ec' });
$('.NavChosen').css({ 'color': 'rgb(192,0,0)' });
$('.tripletd').css({ 'background-color': 'white' });
$('.blackarticle').css({ 'background-color': 'black' });
$('.blackarticle .Beschreibung').css({ 'color': 'white' });
$('.einstellungenOK').css({ 'border-color': 'rgb(192,0,0)' });*/
$('#senden, #leserbriefbutton').hover(function(){
$(this).css({ 'background-color': 'transparent' });
$(this).css({ 'color': 'rgb(192,0,0)' });
}, function(){
$(this).css({ 'background-color': 'rgb(192,0,0)' });
$(this).css({ 'color': 'white' });
});
$('.kommentarsenden').hover(function(){
$(this).css({ 'background-color': 'white' });
$(this).css({ 'color': 'rgb(192,0,0)' });
}, function(){
$(this).css({ 'background-color': 'rgb(192,0,0)' });
$(this).css({ 'color': 'white' });
});
var modus = getQueryVariable('mode');
var cookiepopup = getQueryVariable('popup');
if(modus == 'dark') {
var beforeurl = window.location.href;
var afterurl = beforeurl.replace('mode=dark&', '');
window.location = afterurl;
}
if(modus == 'alwaysdark') {
var beforeurl = window.location.href;
var afterurl = beforeurl.replace('mode=alwaysdark&', '');
window.location = afterurl;
}
}
if(window.innerWidth > '650'){
if ($(window).scrollTop() > '160') {
$('#NachtmodusSymbol, #TagmodusSymbol').addClass('headermodesymbol');
$('#kopfzeileklein').css({ 'display': 'grid' });
} else {
$('#NachtmodusSymbol, #TagmodusSymbol').removeClass('headermodesymbol');
$('#kopfzeileklein').fadeOut();
}
} else {
myFunction();
}
window.onscroll = function() {
if(window.innerWidth > '650'){
if ($(window).scrollTop() > '160') {
$('#NachtmodusSymbol, #TagmodusSymbol').addClass('headermodesymbol');
$('#kopfzeileklein').fadeIn();
$('#kopfzeileklein').css({ 'display': 'grid' });
} else {
$('#NachtmodusSymbol, #TagmodusSymbol').removeClass('headermodesymbol');
$('#kopfzeileklein').fadeOut();
}
} else {
myFunction();
}
}
console.log('%cDieser Konsolen-Log ist nur für dich sichtbar.'+'%c\nWeitere Informationen: https://stackoverflow.com/questions/4539253/what-is-console-log'+'\n_______________________________________________________________', 'font-weight: bold; color: #facc2e; font-size: 15px;', 'color: grey;');
function myFunction() {
var winScroll = document.body.scrollTop || document.documentElement.scrollTop;
var height = document.documentElement.scrollHeight - document.documentElement.clientHeight;
var scrolled = (winScroll / height) * 100;
//document.getElementById("myBar").style.width = scrolled + "%";
document.getElementById('scrollfortschritt').style.width = scrolled + "%";
//document.getElementById("myBar2").style.width = scrolled + "%";
//document.getElementById('progress-container').span = '';
document.getElementById('scrollanzeige').span = '';
//document.getElementById('progress-container2').span = '';
//document.getElementById('progress-container').span.title = scrolled;
document.getElementById('scrollanzeige').span.title = scrolled;
//document.getElementById('progress-container2').span.title = scrolled;
}
/*
if (new Date().getDate() == 24 && new Date().getMonth() == 11) {
document.getElementById('datum4').innerHTML = 'Frohe Weihnachten!';
}
if (new Date().getDate() == 1 && new Date().getMonth() == 0) {
document.getElementById('datum4').innerHTML = 'Frohes Neues!';
}
if (new Date().getDate() == 24 && new Date().getMonth() == 11) {
document.getElementById('datum4').innerHTML = 'Frohe Weihnachten!';
}*/
function kopieren() {
var zuKopierenderText = document.getElementById('kopieren');
zuKopierenderText.select();
document.execCommand('copy');
document.getElementById('Kopie').innerHTML = 'Kopierter Text: ' + zuKopierenderText.value;
}
function URLkopieren() {
var copyText = document.getElementById("RBURLEinstellungen");
copyText.select();
copyText.setSelectionRange(0, 99999);
document.execCommand("copy");
document.getElementById('URLOK').innerHTML = ' Kopiert!';
$('#URLOK').css({ 'cursor': 'text' });
}