(function () {
try {
var head = document.head || document.getElementsByTagName("head")[0],
content = "Treffe anne Ruhr 5,0 von 5 1 Bewertung(en) ",
error = "",
comment,
link,
// where to insert the dynamic html
target = document.getElementById("dz-rating-widget-12619");
if (!target || target.nodeName.toUpperCase() !== 'A') {
alert("Expected the target to be an anchor with id 'dz-rating-widget-12619'.");
} else {
link = document.createElement('link');
link.rel = "stylesheet";
link.type = "text/css";
link.href = "https://reparadius.de/Themes/Reparadius/Styles/rating-widget.css";
head.appendChild(link);
if (error.length === 0) {
// fix for SVG not showing in FF when tag is used and set to a url != current url
// prepend the whole url to the id selector
content = content.replace(/#dzrw/g, window.location + '#dzrw');
// if successful, replace the existing content
target.innerHTML = content;
} else {
// in case of error, write the error as an html comment after the existing content
comment = document.createComment(error);
target.appendChild(comment);
}
}
} catch (e) {
// catch errors here so that the containing page won't fail to load other javascript
}
})();