var iframeWidget,iframeHeight=410;function scheidungsrechnerWidget(){var rechner=document.querySelectorAll("scheidung-widget, div.ox2Eikiela2u");if(0===rechner.length)return!1;for(var i=0;i<rechner.length;i++)if(!1!==new RegExp("(^|\\s)scheidung-widget(\\s|$)").test(rechner[i].className)){var type=rechner[i].getAttribute("data-type");null!==type&&""!==type||(type="scheidung");var backgroundColor=rechner[i].getAttribute("data-background-color");null!==backgroundColor&&""!==backgroundColor||(backgroundColor="#fff");var fontColor=rechner[i].getAttribute("data-font-color");null!==fontColor&&""!==fontColor||(fontColor="#313c45");var buttonBackgroundColor=rechner[i].getAttribute("data-button-background-color");null!==buttonBackgroundColor&&""!==buttonBackgroundColor||(buttonBackgroundColor="#8a3434");var buttonFontColor=rechner[i].getAttribute("data-button-font-color");null!==buttonFontColor&&""!==buttonFontColor||(buttonFontColor="#fff");var borderColor=rechner[i].getAttribute("data-border-color");null!==borderColor&&""!==borderColor||(borderColor="#f6f8fa");var publisherId=rechner[i].getAttribute("data-publisher-id");null!==publisherId&&""!==publisherId||(publisherId=0);var theme=rechner[i].getAttribute("data-theme");null!==theme&&""!==theme||(theme=0);var webmaster=rechner[i].getAttribute("data-show-webmaster");null!==webmaster&&""!==webmaster||(webmaster=1);var dropdown=rechner[i].getAttribute("data-show-dropdown");null!==dropdown&&""!==dropdown||(dropdown=0),1==dropdown&&(iframeHeight+=55);var url="//widget.scheidung.org/"+type+".php";url+="?publisherId="+encodeURIComponent(publisherId),url+="&dropdown="+encodeURIComponent(dropdown),url+="&backgroundColor="+encodeURIComponent(backgroundColor),url+="&fontColor="+encodeURIComponent(fontColor),url+="&buttonBackgroundColor="+encodeURIComponent(buttonBackgroundColor),url+="&buttonFontColor="+encodeURIComponent(buttonFontColor),url+="&borderColor="+encodeURIComponent(borderColor),url+="&webmaster="+encodeURIComponent(webmaster),(iframeWidget=document.createElement("iframe")).setAttribute("class","scheidungsrechnerIframe"),iframeWidget.setAttribute("width","100%"),iframeWidget.setAttribute("frameBorder","0"),iframeWidget.setAttribute("src",encodeURI(url)),iframeWidget.setAttribute("scrolling","no"),rechner[i].appendChild(iframeWidget),setHeight()}}function setHeight(){iframeWidget.clientWidth<=340?iframeWidget.height=iframeHeight+160:iframeWidget.clientWidth<=680?iframeWidget.height=iframeHeight+130:iframeWidget.height=iframeHeight}window.onresize=function(event){iframeWidget&&setHeight()},scheidungsrechnerWidget();