(function(){ var awards =[{"id":"c12f529541d53a054bc6501c3c46c8b6","publication":"What Hi-Fi? Awards 2023, Best Cartridge under \u00a3100","logourl":"https:\/\/secure.armourhome.co.uk\/awards\/resize\/200x200\/127e85cfb608eea58889f7b89c13d8b7\/images\/BB_81_Best cartridge under \u00a3100.png","date":"2023-10-11","quote":"A flexible unit that works across a range of music genres","link":"https:\/\/www.whathifi.com\/awards\/best-accessories-2023","file":"","showsite":"Y","datef":"October 2023"},{"id":"18e78a35c699aee79a335634630b70ed","publication":"What Hi-Fi? Awards 2022, Best Cartridge under \u00a3100","logourl":"https:\/\/secure.armourhome.co.uk\/awards\/resize\/200x200\/127e85cfb608eea58889f7b89c13d8b7\/images\/bb_cartridgeunder100.jpg","date":"2022-10-17","quote":"A well-balanced performer that works well across a wide range of music.","link":"https:\/\/www.whathifi.com\/goldring\/e3\/review","file":"","showsite":"Y","datef":"October 2022"},{"id":"510c47047971d37670c3e0b501dcdeb7","publication":"What Hi-Fi? Awards 2021, Best Cartridge under \u00a3150","logourl":"https:\/\/secure.armourhome.co.uk\/awards\/resize\/200x200\/127e85cfb608eea58889f7b89c13d8b7\/images\/Best cartridge under \u00a3150 copy[1].png","date":"2021-10-06","quote":"If you\u2019ve got a good mid-priced deck that\u2019s in need of an upgrade to the cartridge, we can\u2019t think of an alternative that\u2019s so capable. Simply, the E3 is a great buy.","link":"https:\/\/www.whathifi.com\/goldring\/e3\/review","file":"","showsite":"Y","datef":"October 2021"}] var scriptElement=document.querySelector("[data-product='127e85cfb608eea58889f7b89c13d8b7']"); 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