JSFiddle - React, Tailwind, and code Playground
by Avi Algaly
JavaScript
if (window.taValidate == undefined) {
window.taOnLoad = window.onload;
window.taValList = Array();
window.taValIndex = 0;
window.taValidate = function () {
if (window.taOnLoad != null) {
try {
window.taOnLoad();
} catch (err) { }
}
for (ii = 0; ii < window.taValIndex; ii=ii+1) {
fname = window.taValList[ii]
fname();
}
}
window.taAddValidator = function (fname) {
window.taValList[window.taValIndex] = fname;
window.taValIndex = window.taValIndex + 1;
}
window.onload = window.taValidate
}
window.taAddValidator (injectcdspropertydetail5385)
if(document.createStyleSheet) {
document.createStyleSheet("https://static.tacdn.com/css2/rtl/t4b_widget_propertydetail-v22395254991b.css");
} else {
var stylesImport = "@import url(' https://static.tacdn.com/css2/rtl/t4b_widget_propertydetail-v22395254991b.css ');";
var newSS=document.createElement('link');
newSS.rel='stylesheet';
newSS.href='data:text/css,'+escape(stylesImport);
if (document.getElementsByTagName("head")[0]) {
document.getElementsByTagName("head")[0].appendChild(newSS);
} else { document.write('<link rel="stylesheet" href="data:text/css,' + escape(stylesImport) + '"/>');
}
}
var newJs = document.createElement('script');
newJs.setAttribute('type', 'text/javascript');
newJs.setAttribute('src', 'https://static.tacdn.com/js3/widget/cdswidgetspropertydetail-c-v23485580296b.js');
document.getElementsByTagName("head")[0].appendChild(newJs);
// Returns true if we find a homepage link. Also, nofollows it if the homepage link in the embed code is nofollowed.
function checkHomePageLink(link, isHomePageLinkNoFollow) {
var href = link.getAttribute('href');
if (href) {
var hrefsplit = href.split("/");
// Check for homepage link - if...