(function(){ var awards =[{"id":"b746a3500b2638fe4f775e575061cbc7","publication":"Trusted Reviews, 4.5 stars, Recommended Award","logourl":"https:\/\/secure.armourhome.co.uk\/awards\/resize\/200x200\/c279ae2109b99d0638a54413169d3b5c\/images\/Trusted Reviews logo.png","date":"2021-10-18","quote":"This impressive wireless hi-fi system is built around two floorstanding speakers and a central hub, with extensive inputs including HDMI-ARC. It\u2019s easy to set up, slick in operation, and sounds superb, with a cohesive performance, expansive delivery and deep bass.","link":"https:\/\/www.trustedreviews.com\/reviews\/q-acoustics-q-active-400","file":"","showsite":"Y","datef":"October 2021"}] var scriptElement=document.querySelector("[data-product='c279ae2109b99d0638a54413169d3b5c']"); let div = document.createElement("div"); div.className="newawards"; let quotes=[]; let noquotes=[]; awards = awards.sort((a,b)=>{ return a.date==b.date?0:a.date
`+awards[i].datef+`

"`+awards[i].quote+`"

`+awards[i].publication+`
`; quotes.push(award); }else{ let award = `
`; noquotes.push(award); } } if(quotes.length>0){ div.innerHTML+='
'+quotes.join("")+"
"; } if(noquotes.length>0){ div.innerHTML+='
'+noquotes.join("")+"
"; } scriptElement.parentElement.insertBefore(div,scriptElement); let styles=document.createElement("style"); styles.innerHTML=` i.awarddate{ display: block; text-align: center; } .newawards{ padding: 0 30px; text-align: left; } .newawards p{ width: auto; } .nawardimage{ width: 100%; padding-top: 100%; background-repeat: no-repeat; background-position: center; background-size: contain; display: block; } .nawardquotes{ display:grid; grid-template-columns: auto auto; } @media (max-width: 750px){ .nawardquotes{ grid-template-columns: 1fr; } } .awardwithquote .naward{ display:grid; grid-template-columns: 1fr 3fr; align-items: flex-start; } .nawardquote{ padding: 10px 20px; align-self: center; } .nawardquote p{ margin: 0;padding: 0; } .nawardquote a{ color: blue; text-deocration: none; font-weight: bold; text-decoration: none; } .awardnoquote{ width: 150px; display: inline-block; height: 150px; padding: 0px 20px 0px 0px; } .nnooverflow{ max-width: 100%; overflow: hidden; position: relative; text-align: center; } .nrelative{ position: relative; } .nrelative .nscrollleft{ position: absolute; left: 5px; top: 50px; background-color: rgba(255,255,255,0.7); border-radius: 5px; width: 30px; height: 50px; z-index: 1; } .nrelative .nscrollleft:before{ content: " "; position: absolute; top: 12px; left: 10px; transform: rotate(-45deg); border-top: 2px solid #000; border-left: 2px solid #000; height: 20px; width: 20px; } .nrelative .nscrollright{ position: absolute; right: 5px; top: 50px; background-color: rgba(255,255,255,0.7); border-radius: 5px; width: 30px; height: 50px; z-index: 1; } .nrelative .nscrollright:before{ content: " "; position: absolute; top: 12px; right: 10px; transform: rotate(135deg); border-top: 2px solid #000; border-left: 2px solid #000; height: 20px; width: 20px; } .nawardimages{ white-space: nowrap; } `; scriptElement.parentElement.insertBefore(styles,scriptElement); var scrollarea=div.querySelector(".nnooverflow"); var scrollright = div.querySelector(".nscrollright"); var scrollleft= div.querySelector(".nscrollleft"); scrollright.onclick=function(){ scrollarea.scrollTo({ top: 0, left: scrollarea.scrollLeft+scrollarea.scrollWidth, behavior: 'smooth' }); } scrollleft.onclick=function(){ scrollarea.scrollTo({ top: 0, left: scrollarea.scrollLeft-scrollarea.scrollWidth, behavior: 'smooth' }); } let setupOverflow = function(){ scrollright.style.display="none"; scrollleft.style.display="none"; if(scrollarea.offsetWidth