(function() { function addEvent(element, eventName, fn) { if (element.addEventListener) element.addEventListener(eventName, fn, false); else if (element.attachEvent) element.attachEvent('on' + eventName, fn); } function render() { var e = document.getElementById('reviews'); if (!e) { console.error('target is undefined'); } e.innerHTML = '
'; } if(document.createStyleSheet) { document.createStyleSheet("https://s3-ap-southeast-2.amazonaws.com/ls-widgets/styles.css"); } else { var stylesImport = "@import url('https://s3-ap-southeast-2.amazonaws.com/ls-widgets/styles.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(''); } } addEvent(window, 'load', render); })();