(function() { 'use strict'; function classReg(cl) { return new RegExp('(\\s|^)'+ cl +'(\\s|$)'); } function hasClass(el, cl) { return el.className.match(classReg(cl)); } function addClass(el, cl) { if (!hasClass(el, cl)) { el.className += ' ' + cl; } } function removeClass(el, cl) { if (hasClass(el, cl)) { el.className = el.className.replace(classReg(cl), ''); } } function extend(obj1, obj2) { var obj = {}; for (var key in obj1) { obj[key] = obj2[key] === undefined ? obj1[key] : obj2[key]; } return obj; } var melde = function(el, opts) { this.melde = el, this.triggerBtn = document.querySelectorAll('[data-trigger-melde="' + this.melde.id + '"]'), this.closeBtn = this.melde.querySelectorAll('[data-close-melde]'), this.body = document.body, this.defaults = { activeClass: 'melde--active', bodyClass: 'melde-is-active', overlay: true, overlayClass: 'melde__overlay', openCallback: null, closeCallback: null }, this.opts = extend(this.defaults, opts); }; melde.prototype = { init: function() { this.meldeTriggering(); }, meldeTriggering: function() { var self = this; for (var i = 0; i < self.triggerBtn.length; i++) { self.triggerBtn[i].addEventListener('click', self.openmelde.bind(this)); } }, openmelde: function() { var self = this; if (self.opts.overlay) { self.appendOverlay(); } addClass(self.melde, self.opts.activeClass); addClass(self.body, self.opts.bodyClass); for (var i = 0; i < self.closeBtn.length; i++) { self.closeBtn[i].addEventListener('click', this.closemelde.bind(this)); } if (self.opts.openCallback) { self.opts.openCallback.call(self); } setTimeout(function() { self.closeBtn[0].focus(); }, 500); }, closemelde: function() { var self = this; removeClass(self.melde, self.opts.activeClass); removeClass(self.body, self.opts.bodyClass); for (var i = 0; i < self.closeBtn.length; i++) { self.closeBtn[i].removeEventListener('click', this.closemelde.bind(this)); } if (self.opts.overlay) { self.removeOverlay(); } if (self.opts.closeCallback) { self.opts.closeCallback.call(self); } }, appendOverlay: function() { var self = this; self.overlay = document.createElement('div'); self.overlay.className = self.opts.overlayClass; self.melde.appendChild(self.overlay); }, removeOverlay: function() { var self = this; setTimeout(function() { self.overlay.remove(); }, 500); } }; window.melde = melde; })(); var meldeEl_182735 = document.getElementById('melde_182735'); var meldeInst = new melde(meldeEl_182735, { openCallback: function() { console.log('Callback for when melde is open.'); }, closeCallback: function() { console.log('Callback for when melde is closed.'); } }); meldeInst.init(); var xmlhttp182735 = new getXMLObject(); function ajaxNewspost_182735() { if(xmlhttp182735) { var melde_message = document.getElementById("melde_message_182735").value; var melde_id = encodeURIComponent(document.getElementById("melde_id_182735").value); xmlhttp182735.open("POST","../meldung_send.php",true); xmlhttp182735.onreadystatechange = handleServerResponse182735; xmlhttp182735.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8'); xmlhttp182735.send("message=" + melde_message + "&melde_id=" + melde_id); } } function handleServerResponse182735() { if (xmlhttp182735.readyState == 4) { if(xmlhttp182735.status == 200) { document.getElementById("melde_message_182735").value=''; } else { alert("Upsal! Da hat es jetzt irgendwo ein Problem geben! Probier es einfach nochmal!"); } } } var meldeEl_182736 = document.getElementById('melde_182736'); var meldeInst = new melde(meldeEl_182736, { openCallback: function() { console.log('Callback for when melde is open.'); }, closeCallback: function() { console.log('Callback for when melde is closed.'); } }); meldeInst.init(); var xmlhttp182736 = new getXMLObject(); function ajaxNewspost_182736() { if(xmlhttp182736) { var melde_message = document.getElementById("melde_message_182736").value; var melde_id = encodeURIComponent(document.getElementById("melde_id_182736").value); xmlhttp182736.open("POST","../meldung_send.php",true); xmlhttp182736.onreadystatechange = handleServerResponse182736; xmlhttp182736.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8'); xmlhttp182736.send("message=" + melde_message + "&melde_id=" + melde_id); } } function handleServerResponse182736() { if (xmlhttp182736.readyState == 4) { if(xmlhttp182736.status == 200) { document.getElementById("melde_message_182736").value=''; } else { alert("Upsal! Da hat es jetzt irgendwo ein Problem geben! Probier es einfach nochmal!"); } } } var meldeEl_182737 = document.getElementById('melde_182737'); var meldeInst = new melde(meldeEl_182737, { openCallback: function() { console.log('Callback for when melde is open.'); }, closeCallback: function() { console.log('Callback for when melde is closed.'); } }); meldeInst.init(); var xmlhttp182737 = new getXMLObject(); function ajaxNewspost_182737() { if(xmlhttp182737) { var melde_message = document.getElementById("melde_message_182737").value; var melde_id = encodeURIComponent(document.getElementById("melde_id_182737").value); xmlhttp182737.open("POST","../meldung_send.php",true); xmlhttp182737.onreadystatechange = handleServerResponse182737; xmlhttp182737.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8'); xmlhttp182737.send("message=" + melde_message + "&melde_id=" + melde_id); } } function handleServerResponse182737() { if (xmlhttp182737.readyState == 4) { if(xmlhttp182737.status == 200) { document.getElementById("melde_message_182737").value=''; } else { alert("Upsal! Da hat es jetzt irgendwo ein Problem geben! Probier es einfach nochmal!"); } } } var meldeEl_182738 = document.getElementById('melde_182738'); var meldeInst = new melde(meldeEl_182738, { openCallback: function() { console.log('Callback for when melde is open.'); }, closeCallback: function() { console.log('Callback for when melde is closed.'); } }); meldeInst.init(); var xmlhttp182738 = new getXMLObject(); function ajaxNewspost_182738() { if(xmlhttp182738) { var melde_message = document.getElementById("melde_message_182738").value; var melde_id = encodeURIComponent(document.getElementById("melde_id_182738").value); xmlhttp182738.open("POST","../meldung_send.php",true); xmlhttp182738.onreadystatechange = handleServerResponse182738; xmlhttp182738.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8'); xmlhttp182738.send("message=" + melde_message + "&melde_id=" + melde_id); } } function handleServerResponse182738() { if (xmlhttp182738.readyState == 4) { if(xmlhttp182738.status == 200) { document.getElementById("melde_message_182738").value=''; } else { alert("Upsal! Da hat es jetzt irgendwo ein Problem geben! Probier es einfach nochmal!"); } } } var meldeEl_182739 = document.getElementById('melde_182739'); var meldeInst = new melde(meldeEl_182739, { openCallback: function() { console.log('Callback for when melde is open.'); }, closeCallback: function() { console.log('Callback for when melde is closed.'); } }); meldeInst.init(); var xmlhttp182739 = new getXMLObject(); function ajaxNewspost_182739() { if(xmlhttp182739) { var melde_message = document.getElementById("melde_message_182739").value; var melde_id = encodeURIComponent(document.getElementById("melde_id_182739").value); xmlhttp182739.open("POST","../meldung_send.php",true); xmlhttp182739.onreadystatechange = handleServerResponse182739; xmlhttp182739.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8'); xmlhttp182739.send("message=" + melde_message + "&melde_id=" + melde_id); } } function handleServerResponse182739() { if (xmlhttp182739.readyState == 4) { if(xmlhttp182739.status == 200) { document.getElementById("melde_message_182739").value=''; } else { alert("Upsal! Da hat es jetzt irgendwo ein Problem geben! Probier es einfach nochmal!"); } } } var meldeEl_182740 = document.getElementById('melde_182740'); var meldeInst = new melde(meldeEl_182740, { openCallback: function() { console.log('Callback for when melde is open.'); }, closeCallback: function() { console.log('Callback for when melde is closed.'); } }); meldeInst.init(); var xmlhttp182740 = new getXMLObject(); function ajaxNewspost_182740() { if(xmlhttp182740) { var melde_message = document.getElementById("melde_message_182740").value; var melde_id = encodeURIComponent(document.getElementById("melde_id_182740").value); xmlhttp182740.open("POST","../meldung_send.php",true); xmlhttp182740.onreadystatechange = handleServerResponse182740; xmlhttp182740.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8'); xmlhttp182740.send("message=" + melde_message + "&melde_id=" + melde_id); } } function handleServerResponse182740() { if (xmlhttp182740.readyState == 4) { if(xmlhttp182740.status == 200) { document.getElementById("melde_message_182740").value=''; } else { alert("Upsal! Da hat es jetzt irgendwo ein Problem geben! Probier es einfach nochmal!"); } } } var meldeEl_182741 = document.getElementById('melde_182741'); var meldeInst = new melde(meldeEl_182741, { openCallback: function() { console.log('Callback for when melde is open.'); }, closeCallback: function() { console.log('Callback for when melde is closed.'); } }); meldeInst.init(); var xmlhttp182741 = new getXMLObject(); function ajaxNewspost_182741() { if(xmlhttp182741) { var melde_message = document.getElementById("melde_message_182741").value; var melde_id = encodeURIComponent(document.getElementById("melde_id_182741").value); xmlhttp182741.open("POST","../meldung_send.php",true); xmlhttp182741.onreadystatechange = handleServerResponse182741; xmlhttp182741.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8'); xmlhttp182741.send("message=" + melde_message + "&melde_id=" + melde_id); } } function handleServerResponse182741() { if (xmlhttp182741.readyState == 4) { if(xmlhttp182741.status == 200) { document.getElementById("melde_message_182741").value=''; } else { alert("Upsal! Da hat es jetzt irgendwo ein Problem geben! Probier es einfach nochmal!"); } } } var meldeEl_182742 = document.getElementById('melde_182742'); var meldeInst = new melde(meldeEl_182742, { openCallback: function() { console.log('Callback for when melde is open.'); }, closeCallback: function() { console.log('Callback for when melde is closed.'); } }); meldeInst.init(); var xmlhttp182742 = new getXMLObject(); function ajaxNewspost_182742() { if(xmlhttp182742) { var melde_message = document.getElementById("melde_message_182742").value; var melde_id = encodeURIComponent(document.getElementById("melde_id_182742").value); xmlhttp182742.open("POST","../meldung_send.php",true); xmlhttp182742.onreadystatechange = handleServerResponse182742; xmlhttp182742.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8'); xmlhttp182742.send("message=" + melde_message + "&melde_id=" + melde_id); } } function handleServerResponse182742() { if (xmlhttp182742.readyState == 4) { if(xmlhttp182742.status == 200) { document.getElementById("melde_message_182742").value=''; } else { alert("Upsal! Da hat es jetzt irgendwo ein Problem geben! Probier es einfach nochmal!"); } } } var meldeEl_182743 = document.getElementById('melde_182743'); var meldeInst = new melde(meldeEl_182743, { openCallback: function() { console.log('Callback for when melde is open.'); }, closeCallback: function() { console.log('Callback for when melde is closed.'); } }); meldeInst.init(); var xmlhttp182743 = new getXMLObject(); function ajaxNewspost_182743() { if(xmlhttp182743) { var melde_message = document.getElementById("melde_message_182743").value; var melde_id = encodeURIComponent(document.getElementById("melde_id_182743").value); xmlhttp182743.open("POST","../meldung_send.php",true); xmlhttp182743.onreadystatechange = handleServerResponse182743; xmlhttp182743.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8'); xmlhttp182743.send("message=" + melde_message + "&melde_id=" + melde_id); } } function handleServerResponse182743() { if (xmlhttp182743.readyState == 4) { if(xmlhttp182743.status == 200) { document.getElementById("melde_message_182743").value=''; } else { alert("Upsal! Da hat es jetzt irgendwo ein Problem geben! Probier es einfach nochmal!"); } } } var meldeEl_182744 = document.getElementById('melde_182744'); var meldeInst = new melde(meldeEl_182744, { openCallback: function() { console.log('Callback for when melde is open.'); }, closeCallback: function() { console.log('Callback for when melde is closed.'); } }); meldeInst.init(); var xmlhttp182744 = new getXMLObject(); function ajaxNewspost_182744() { if(xmlhttp182744) { var melde_message = document.getElementById("melde_message_182744").value; var melde_id = encodeURIComponent(document.getElementById("melde_id_182744").value); xmlhttp182744.open("POST","../meldung_send.php",true); xmlhttp182744.onreadystatechange = handleServerResponse182744; xmlhttp182744.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8'); xmlhttp182744.send("message=" + melde_message + "&melde_id=" + melde_id); } } function handleServerResponse182744() { if (xmlhttp182744.readyState == 4) { if(xmlhttp182744.status == 200) { document.getElementById("melde_message_182744").value=''; } else { alert("Upsal! Da hat es jetzt irgendwo ein Problem geben! Probier es einfach nochmal!"); } } } var meldeEl_182745 = document.getElementById('melde_182745'); var meldeInst = new melde(meldeEl_182745, { openCallback: function() { console.log('Callback for when melde is open.'); }, closeCallback: function() { console.log('Callback for when melde is closed.'); } }); meldeInst.init(); var xmlhttp182745 = new getXMLObject(); function ajaxNewspost_182745() { if(xmlhttp182745) { var melde_message = document.getElementById("melde_message_182745").value; var melde_id = encodeURIComponent(document.getElementById("melde_id_182745").value); xmlhttp182745.open("POST","../meldung_send.php",true); xmlhttp182745.onreadystatechange = handleServerResponse182745; xmlhttp182745.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8'); xmlhttp182745.send("message=" + melde_message + "&melde_id=" + melde_id); } } function handleServerResponse182745() { if (xmlhttp182745.readyState == 4) { if(xmlhttp182745.status == 200) { document.getElementById("melde_message_182745").value=''; } else { alert("Upsal! Da hat es jetzt irgendwo ein Problem geben! Probier es einfach nochmal!"); } } } var meldeEl_182746 = document.getElementById('melde_182746'); var meldeInst = new melde(meldeEl_182746, { openCallback: function() { console.log('Callback for when melde is open.'); }, closeCallback: function() { console.log('Callback for when melde is closed.'); } }); meldeInst.init(); var xmlhttp182746 = new getXMLObject(); function ajaxNewspost_182746() { if(xmlhttp182746) { var melde_message = document.getElementById("melde_message_182746").value; var melde_id = encodeURIComponent(document.getElementById("melde_id_182746").value); xmlhttp182746.open("POST","../meldung_send.php",true); xmlhttp182746.onreadystatechange = handleServerResponse182746; xmlhttp182746.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8'); xmlhttp182746.send("message=" + melde_message + "&melde_id=" + melde_id); } } function handleServerResponse182746() { if (xmlhttp182746.readyState == 4) { if(xmlhttp182746.status == 200) { document.getElementById("melde_message_182746").value=''; } else { alert("Upsal! Da hat es jetzt irgendwo ein Problem geben! Probier es einfach nochmal!"); } } } var meldeEl_182747 = document.getElementById('melde_182747'); var meldeInst = new melde(meldeEl_182747, { openCallback: function() { console.log('Callback for when melde is open.'); }, closeCallback: function() { console.log('Callback for when melde is closed.'); } }); meldeInst.init(); var xmlhttp182747 = new getXMLObject(); function ajaxNewspost_182747() { if(xmlhttp182747) { var melde_message = document.getElementById("melde_message_182747").value; var melde_id = encodeURIComponent(document.getElementById("melde_id_182747").value); xmlhttp182747.open("POST","../meldung_send.php",true); xmlhttp182747.onreadystatechange = handleServerResponse182747; xmlhttp182747.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8'); xmlhttp182747.send("message=" + melde_message + "&melde_id=" + melde_id); } } function handleServerResponse182747() { if (xmlhttp182747.readyState == 4) { if(xmlhttp182747.status == 200) { document.getElementById("melde_message_182747").value=''; } else { alert("Upsal! Da hat es jetzt irgendwo ein Problem geben! Probier es einfach nochmal!"); } } } var meldeEl_182748 = document.getElementById('melde_182748'); var meldeInst = new melde(meldeEl_182748, { openCallback: function() { console.log('Callback for when melde is open.'); }, closeCallback: function() { console.log('Callback for when melde is closed.'); } }); meldeInst.init(); var xmlhttp182748 = new getXMLObject(); function ajaxNewspost_182748() { if(xmlhttp182748) { var melde_message = document.getElementById("melde_message_182748").value; var melde_id = encodeURIComponent(document.getElementById("melde_id_182748").value); xmlhttp182748.open("POST","../meldung_send.php",true); xmlhttp182748.onreadystatechange = handleServerResponse182748; xmlhttp182748.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8'); xmlhttp182748.send("message=" + melde_message + "&melde_id=" + melde_id); } } function handleServerResponse182748() { if (xmlhttp182748.readyState == 4) { if(xmlhttp182748.status == 200) { document.getElementById("melde_message_182748").value=''; } else { alert("Upsal! Da hat es jetzt irgendwo ein Problem geben! Probier es einfach nochmal!"); } } } var meldeEl_182749 = document.getElementById('melde_182749'); var meldeInst = new melde(meldeEl_182749, { openCallback: function() { console.log('Callback for when melde is open.'); }, closeCallback: function() { console.log('Callback for when melde is closed.'); } }); meldeInst.init(); var xmlhttp182749 = new getXMLObject(); function ajaxNewspost_182749() { if(xmlhttp182749) { var melde_message = document.getElementById("melde_message_182749").value; var melde_id = encodeURIComponent(document.getElementById("melde_id_182749").value); xmlhttp182749.open("POST","../meldung_send.php",true); xmlhttp182749.onreadystatechange = handleServerResponse182749; xmlhttp182749.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8'); xmlhttp182749.send("message=" + melde_message + "&melde_id=" + melde_id); } } function handleServerResponse182749() { if (xmlhttp182749.readyState == 4) { if(xmlhttp182749.status == 200) { document.getElementById("melde_message_182749").value=''; } else { alert("Upsal! Da hat es jetzt irgendwo ein Problem geben! Probier es einfach nochmal!"); } } } var meldeEl_183728 = document.getElementById('melde_183728'); var meldeInst = new melde(meldeEl_183728, { openCallback: function() { console.log('Callback for when melde is open.'); }, closeCallback: function() { console.log('Callback for when melde is closed.'); } }); meldeInst.init(); var xmlhttp183728 = new getXMLObject(); function ajaxNewspost_183728() { if(xmlhttp183728) { var melde_message = document.getElementById("melde_message_183728").value; var melde_id = encodeURIComponent(document.getElementById("melde_id_183728").value); xmlhttp183728.open("POST","../meldung_send.php",true); xmlhttp183728.onreadystatechange = handleServerResponse183728; xmlhttp183728.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8'); xmlhttp183728.send("message=" + melde_message + "&melde_id=" + melde_id); } } function handleServerResponse183728() { if (xmlhttp183728.readyState == 4) { if(xmlhttp183728.status == 200) { document.getElementById("melde_message_183728").value=''; } else { alert("Upsal! Da hat es jetzt irgendwo ein Problem geben! Probier es einfach nochmal!"); } } } var meldeEl_183729 = document.getElementById('melde_183729'); var meldeInst = new melde(meldeEl_183729, { openCallback: function() { console.log('Callback for when melde is open.'); }, closeCallback: function() { console.log('Callback for when melde is closed.'); } }); meldeInst.init(); var xmlhttp183729 = new getXMLObject(); function ajaxNewspost_183729() { if(xmlhttp183729) { var melde_message = document.getElementById("melde_message_183729").value; var melde_id = encodeURIComponent(document.getElementById("melde_id_183729").value); xmlhttp183729.open("POST","../meldung_send.php",true); xmlhttp183729.onreadystatechange = handleServerResponse183729; xmlhttp183729.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8'); xmlhttp183729.send("message=" + melde_message + "&melde_id=" + melde_id); } } function handleServerResponse183729() { if (xmlhttp183729.readyState == 4) { if(xmlhttp183729.status == 200) { document.getElementById("melde_message_183729").value=''; } else { alert("Upsal! Da hat es jetzt irgendwo ein Problem geben! Probier es einfach nochmal!"); } } } var meldeEl_183730 = document.getElementById('melde_183730'); var meldeInst = new melde(meldeEl_183730, { openCallback: function() { console.log('Callback for when melde is open.'); }, closeCallback: function() { console.log('Callback for when melde is closed.'); } }); meldeInst.init(); var xmlhttp183730 = new getXMLObject(); function ajaxNewspost_183730() { if(xmlhttp183730) { var melde_message = document.getElementById("melde_message_183730").value; var melde_id = encodeURIComponent(document.getElementById("melde_id_183730").value); xmlhttp183730.open("POST","../meldung_send.php",true); xmlhttp183730.onreadystatechange = handleServerResponse183730; xmlhttp183730.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8'); xmlhttp183730.send("message=" + melde_message + "&melde_id=" + melde_id); } } function handleServerResponse183730() { if (xmlhttp183730.readyState == 4) { if(xmlhttp183730.status == 200) { document.getElementById("melde_message_183730").value=''; } else { alert("Upsal! Da hat es jetzt irgendwo ein Problem geben! Probier es einfach nochmal!"); } } } var meldeEl_183731 = document.getElementById('melde_183731'); var meldeInst = new melde(meldeEl_183731, { openCallback: function() { console.log('Callback for when melde is open.'); }, closeCallback: function() { console.log('Callback for when melde is closed.'); } }); meldeInst.init(); var xmlhttp183731 = new getXMLObject(); function ajaxNewspost_183731() { if(xmlhttp183731) { var melde_message = document.getElementById("melde_message_183731").value; var melde_id = encodeURIComponent(document.getElementById("melde_id_183731").value); xmlhttp183731.open("POST","../meldung_send.php",true); xmlhttp183731.onreadystatechange = handleServerResponse183731; xmlhttp183731.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8'); xmlhttp183731.send("message=" + melde_message + "&melde_id=" + melde_id); } } function handleServerResponse183731() { if (xmlhttp183731.readyState == 4) { if(xmlhttp183731.status == 200) { document.getElementById("melde_message_183731").value=''; } else { alert("Upsal! Da hat es jetzt irgendwo ein Problem geben! Probier es einfach nochmal!"); } } }