Spendenaktionen bearbeiten

if(typeof __twingleFindGetParameter !== „function“) {
window.__twingleFindGetParameter = function() {
var result = „“,
tmp = [];
var items = location.search.substr(1).split(„&“);
for (var index = 0; index < items.length; index++) { tmp = items[index].split("="); if (tmp[0].indexOf("tw_") === 0) result += tmp[0] + "=" + decodeURIComponent(tmp[1]) + "&"; } return result; } } var __twingleEventIframe = document.createElement("iframe"); __twingleEventIframe.height = "1200"; __twingleEventIframe.style = {width: "100%", border: "none", overflow: "hidden", height: "1200px"}; __twingleEventIframe.scrolling = "no"; __twingleEventIframe.src = "https://spenden.twingle.de/event/beispielno-ausw/tw58e63a91dc1a8/editcreate?rand=" + Math.random().toString(36).substr(2, 9); var parameters = __twingleFindGetParameter(); if(parameters) { __twingleEventIframe.src += (__twingleEventIframe.src.search(/\?/) === -1)? "?" : "&"; __twingleEventIframe.src += parameters; } document.getElementById('twingle-event').appendChild(__twingleEventIframe);[/cs_content_seo]