var WorkingFeedback_AdvancedSidePeel_Components_Style1 = document.createElement("link");
WorkingFeedback_AdvancedSidePeel_Components_Style1.setAttribute("rel", "stylesheet")
WorkingFeedback_AdvancedSidePeel_Components_Style1.setAttribute("type", "text/css")
WorkingFeedback_AdvancedSidePeel_Components_Style1.setAttribute("href", 'https://features.workingfeedback.co.uk/web-feature-assets/review-tab/int-style.css');
document.getElementsByTagName('head')[0].appendChild(WorkingFeedback_AdvancedSidePeel_Components_Style1);
'use strict';
var floatingWidgetPosition = "--right";
var WFreviewsTabWidget = function() {
var node;
node = document.createElement("div");
node.setAttribute("id", 'WorkingFeedback_SideWidgetBtn_ActualWidget');
document.body.appendChild(node);
var href = "https://features.workingfeedback.co.uk/review-tab/9269992/content?originalID=9269992";
var el = document.createElement("iframe");
el.name += "WorkingFeedback_SideWidgetBtn_ActualWidget_frame";
el.id += "WorkingFeedback_SideWidgetBtn_ActualWidget_frame";
el.setAttribute("frameborder", 0);
el.width = "100%";
el.scrolling = "no";
el.maxWidth = "100%";
el.minWidth = "100%";
el.height = '100px';
el.title = "Working Feedback Reviews Tab Widget";
el.setAttribute('class', 'WorkingFeedback_SideWidget' + floatingWidgetPosition);
if ( window.location.hostname.indexOf('chinneckshaw.co.uk') > -1 ) { el.style.marginBottom = '30px'; }
node.innerHTML = "";
node.appendChild(el);
window.onresize = function() {
el.width = window.getComputedStyle(node, null).getPropertyValue("width");
el.style.width = window.getComputedStyle(node, null).getPropertyValue("width") + "px";
};
el.setAttribute("src", href);
var handleWorkingFeedback_SideWidget_FrameMessage = function(message) {
var err_el;
try {
err_el = window.document.querySelector("iframe#WorkingFeedback_SideWidgetBtn_ActualWidget_frame");
switch(message.data) {
case "WorkingFeedback_SideWidgetBtn_ActualWidget" + floatingWidgetPosition + "#Ready":
err_el.classList.add("WorkingFeedback_SideWidget" + floatingWidgetPosition);
var mediaQuery = window.matchMedia('(max-width:640px)');
if ( mediaQuery.matches )
{
window.document.getElementById("WorkingFeedback_SideWidgetBtn_ActualWidget_frame").contentWindow.postMessage('yes', '*');
} else {
window.document.getElementById("WorkingFeedback_SideWidgetBtn_ActualWidget_frame").contentWindow.postMessage('no', '*');
}
break;
case "WorkingFeedback_SideWidgetBtn_ActualWidget" + floatingWidgetPosition + "#Expand":
err_el.classList.add("expanded");
break;
case "WorkingFeedback_SideWidgetBtn_ActualWidget" + floatingWidgetPosition + "#Retract":
err_el.classList.remove("expanded");
break;
}
} catch (a) {
}
};
if (window.addEventListener) {
addEventListener("message", handleWorkingFeedback_SideWidget_FrameMessage, false);
} else {
attachEvent("onmessage", handleWorkingFeedback_SideWidget_FrameMessage);
}
setTimeout(function() {
}, 1000);
}
WFreviewsTabWidget();
console.log('Working Feedback | Review Tab: Displayed using server options successfully');