var vhdWidget167975468234 = {};
vhdWidget167975468234.widgetWrap = document.createElement('div');
vhdWidget167975468234.widgetHtml = '<div style="width: auto; height: auto; position: relative; overflow-y: auto; display: block;"> <!-- HEADER sf --> <div style="border-top-left-radius: 8px; border-top-right-radius: 8px; padding: 10px; border: 2px solid #49a33d; background: #FFFFFF;"> <a href="#" style="display: block; text-align: center; line-height: 1px;"> <img border="0" src="https://vethelpdirect.com/dashboard/assets/images/logo/logo.svg" style="max-width: 200px; border: 0px !important; padding: 0px !important; margin: 0px !important; background: none !important; display: inline !important; outline: none !important; " height="43" style="margin-top: 7px" alt="Vet Help Direct Logo"> </a> </div> <!-- BODY --> <div style="border: 2px solid #49a33d; background: #FAFCFF; border-top: none; border-bottom: none; padding: 10px 20px;"> <!-- REVIEW INFO --> <div style="padding-bottom: 6px; border-bottom: 2px solid #49a33d"> <p style="font-family: arial, sans-serif; color: #333333; font-size: 13px; padding: 0; margin: 0 0 2px 0;"> Our Reviews</p> <div itemscope itemtype="http://schema.org/Organization"> <meta itemprop="name" content="Blackheath Veterinary Surgery"> <div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating"> <span style="width: 120px; height: auto; position: relative; display:block;"> <span style="width: 120px; display:block; margin-left: -1px;"> <img border="0" style="width: 22px !important; border: 0px !important; padding: 0px !important; margin: 0px 1px !important; background: none !important; display: inline !important; outline: none !important;" src="https://vethelpdirect.com/dashboard/assets/images/star-grey.png" alt="Star Grey" width="22"><img border="0" style="width: 22px !important; border: 0px !important; padding: 0px !important; margin: 0px 1px !important; background: none !important; display: inline !important; outline: none !important;" src="https://vethelpdirect.com/dashboard/assets/images/star-grey.png" alt="Star Grey" width="22"><img border="0" style="width: 22px !important; border: 0px !important; padding: 0px !important; margin: 0px 1px !important; background: none !important; display: inline !important; outline: none !important;" src="https://vethelpdirect.com/dashboard/assets/images/star-grey.png" alt="Star Grey" width="22"><img border="0" style="width: 22px !important; border: 0px !important; padding: 0px !important; margin: 0px 1px !important; background: none !important; display: inline !important; outline: none !important;" src="https://vethelpdirect.com/dashboard/assets/images/star-grey.png" alt="Star Grey" width="22"><img border="0" style="width: 22px !important; border: 0px !important; padding: 0px !important; margin: 0px 1px !important; background: none !important; display: inline !important; outline: none !important;" src="https://vethelpdirect.com/dashboard/assets/images/star-grey.png" alt="Star Grey" width="22"> </span> <span style="width: 100%; position: absolute; top: 0; overflow: hidden; display:block; margin-left: -1px;"> <span style="width: 120px; display:block;"> <img border="0" src="https://vethelpdirect.com/dashboard/assets/images/star-gold.png" alt="Star Gold" style="width: 22px !important; border: 0px !important; padding: 0px !important; margin: 0px 1px !important; background: none !important; display: inline !important; outline: none !important; " width="22"><img border="0" src="https://vethelpdirect.com/dashboard/assets/images/star-gold.png" alt="Star Gold" style="width: 22px !important; border: 0px !important; padding: 0px !important; margin: 0px 1px !important; background: none !important; display: inline !important; outline: none !important; " width="22"><img border="0" src="https://vethelpdirect.com/dashboard/assets/images/star-gold.png" alt="Star Gold" style="width: 22px !important; border: 0px !important; padding: 0px !important; margin: 0px 1px !important; background: none !important; display: inline !important; outline: none !important; " width="22"><img border="0" src="https://vethelpdirect.com/dashboard/assets/images/star-gold.png" alt="Star Gold" style="width: 22px !important; border: 0px !important; padding: 0px !important; margin: 0px 1px !important; background: none !important; display: inline !important; outline: none !important; " width="22"><img border="0" src="https://vethelpdirect.com/dashboard/assets/images/star-gold.png" alt="Star Gold" style="width: 22px !important; border: 0px !important; padding: 0px !important; margin: 0px 1px !important; background: none !important; display: inline !important; outline: none !important; " width="22"> </span> </span> </span> <meta itemprop="ratingValue" content="4.8"> <p style="font-family: arial, sans-serif; color: #454545; font-size: 10px; letter-spacing: 3px; margin: 6px 0 0 0; padding: 0;"> <span itemprop="ratingCount">315</span> REVIEWS - <a href="https://vethelpdirect.com/blackheath-veterinary-surgery-in-blackheath-947#startofreviews" target="_blank" id="js-vhdWidget167975468234-read-review-link" onclick="vhdWidget167975468234.showOverlay(\'read\', event, event);" style="color: #49a33d; font-weight: bold; letter-spacing: normal; font-size: 12px; font-family: arial, sans-serif; text-decoration: underline; text-transform: uppercase;"> See all our reviews</a> </p> <meta itemprop="bestRating" content="5"> <meta itemprop="worstRating" content="0"> </div> </div> </div> <!-- REVIEWS --> <div class="review-toggle" style="padding: 4px 0 0 0; border-bottom: 1px solid #E0E0E0;; cursor: pointer;" onclick="vhdWidget167975468234.showFullText(event)"> <p style="margin: 0; padding: 0;"> <span style="width: 60px; height: auto; position: relative; display:block;"> <span style="width: 60px; display:block; margin-left: -1px;"> <img border="0" style="width: 10px !important; border: 0px !important; padding: 0px !important; margin: 0px 1px !important; background: none !important; display: inline !important; outline: none !important;" src="https://vethelpdirect.com/dashboard/assets/images/star-grey.png" alt="Star Grey" width="10"><img border="0" style="width: 10px !important; border: 0px !important; padding: 0px !important; margin: 0px 1px !important; background: none !important; display: inline !important; outline: none !important;" src="https://vethelpdirect.com/dashboard/assets/images/star-grey.png" alt="Star Grey" width="10"><img border="0" style="width: 10px !important; border: 0px !important; padding: 0px !important; margin: 0px 1px !important; background: none !important; display: inline !important; outline: none !important;" src="https://vethelpdirect.com/dashboard/assets/images/star-grey.png" alt="Star Grey" width="10"><img border="0" style="width: 10px !important; border: 0px !important; padding: 0px !important; margin: 0px 1px !important; background: none !important; display: inline !important; outline: none !important;" src="https://vethelpdirect.com/dashboard/assets/images/star-grey.png" alt="Star Grey" width="10"><img border="0" style="width: 10px !important; border: 0px !important; padding: 0px !important; margin: 0px 1px !important; background: none !important; display: inline !important; outline: none !important;" src="https://vethelpdirect.com/dashboard/assets/images/star-grey.png" alt="Star Grey" width="10"> </span> <span style="width: 100%; position: absolute; top: 0; overflow: hidden; display: block; margin-left: -1px;"> <span style="width: 60px; display:block;"> <img border="0" src="https://vethelpdirect.com/dashboard/assets/images/star-gold.png" alt="Star Gold" style="width: 10px !important; border: 0px !important; padding: 0px !important; margin: 0px 1px !important; background: none !important; display: inline !important; outline: none !important; " width="10"><img border="0" src="https://vethelpdirect.com/dashboard/assets/images/star-gold.png" alt="Star Gold" style="width: 10px !important; border: 0px !important; padding: 0px !important; margin: 0px 1px !important; background: none !important; display: inline !important; outline: none !important; " width="10"><img border="0" src="https://vethelpdirect.com/dashboard/assets/images/star-gold.png" alt="Star Gold" style="width: 10px !important; border: 0px !important; padding: 0px !important; margin: 0px 1px !important; background: none !important; display: inline !important; outline: none !important; " width="10"><img border="0" src="https://vethelpdirect.com/dashboard/assets/images/star-gold.png" alt="Star Gold" style="width: 10px !important; border: 0px !important; padding: 0px !important; margin: 0px 1px !important; background: none !important; display: inline !important; outline: none !important; " width="10"><img border="0" src="https://vethelpdirect.com/dashboard/assets/images/star-gold.png" alt="Star Gold" style="width: 10px !important; border: 0px !important; padding: 0px !important; margin: 0px 1px !important; background: none !important; display: inline !important; outline: none !important; " width="10"> </span> </span> </span> </p> <p style="margin: 0 0 3px 0; padding: 0;"> <time style="color: #454545; font-size: 13px; font-family: arial, sans-serif; font-style: italic; font-weight: bold;">Feb 24 - </time> <q style="color: #454545; font-size: 14px; font-family: arial, sans-serif; padding: 0;"> <span>We had a raisin/sultana incident this afternoon so Bella needed to visit so they could make her vomit. My poor little girl was so scared but Michelle gave her cuddles to try and re</span><span class="ellipsis">...</span><span class="more" style="display: none;">assure her and even brought her a blanket to lay on while she was sick. Lizzy then had the fun part of sorting through said sick to make sure everything was out, but she didn&#039;t just do that. She was there with Bella (and a very worried me) the entire time, giving her strokes, talking to her and even holding her ears while she was vomiting. She was so lovely and kind to Bella, I knew she was in good hands. Thank you so much Lizzy and Michelle x</span> </q> <span style="color: #454545; font-style: italic; font-size: 14px; font-family: arial, sans-serif;"> - Tracy</span> </p> </div> <div class="review-toggle" style="padding: 4px 0 0 0; border-bottom: 1px solid #E0E0E0;; cursor: pointer;" onclick="vhdWidget167975468234.showFullText(event)"> <p style="margin: 0; padding: 0;"> <span style="width: 60px; height: auto; position: relative; display:block;"> <span style="width: 60px; display:block; margin-left: -1px;"> <img border="0" style="width: 10px !important; border: 0px !important; padding: 0px !important; margin: 0px 1px !important; background: none !important; display: inline !important; outline: none !important;" src="https://vethelpdirect.com/dashboard/assets/images/star-grey.png" alt="Star Grey" width="10"><img border="0" style="width: 10px !important; border: 0px !important; padding: 0px !important; margin: 0px 1px !important; background: none !important; display: inline !important; outline: none !important;" src="https://vethelpdirect.com/dashboard/assets/images/star-grey.png" alt="Star Grey" width="10"><img border="0" style="width: 10px !important; border: 0px !important; padding: 0px !important; margin: 0px 1px !important; background: none !important; display: inline !important; outline: none !important;" src="https://vethelpdirect.com/dashboard/assets/images/star-grey.png" alt="Star Grey" width="10"><img border="0" style="width: 10px !important; border: 0px !important; padding: 0px !important; margin: 0px 1px !important; background: none !important; display: inline !important; outline: none !important;" src="https://vethelpdirect.com/dashboard/assets/images/star-grey.png" alt="Star Grey" width="10"><img border="0" style="width: 10px !important; border: 0px !important; padding: 0px !important; margin: 0px 1px !important; background: none !important; display: inline !important; outline: none !important;" src="https://vethelpdirect.com/dashboard/assets/images/star-grey.png" alt="Star Grey" width="10"> </span> <span style="width: 100%; position: absolute; top: 0; overflow: hidden; display: block; margin-left: -1px;"> <span style="width: 60px; display:block;"> <img border="0" src="https://vethelpdirect.com/dashboard/assets/images/star-gold.png" alt="Star Gold" style="width: 10px !important; border: 0px !important; padding: 0px !important; margin: 0px 1px !important; background: none !important; display: inline !important; outline: none !important; " width="10"><img border="0" src="https://vethelpdirect.com/dashboard/assets/images/star-gold.png" alt="Star Gold" style="width: 10px !important; border: 0px !important; padding: 0px !important; margin: 0px 1px !important; background: none !important; display: inline !important; outline: none !important; " width="10"><img border="0" src="https://vethelpdirect.com/dashboard/assets/images/star-gold.png" alt="Star Gold" style="width: 10px !important; border: 0px !important; padding: 0px !important; margin: 0px 1px !important; background: none !important; display: inline !important; outline: none !important; " width="10"><img border="0" src="https://vethelpdirect.com/dashboard/assets/images/star-gold.png" alt="Star Gold" style="width: 10px !important; border: 0px !important; padding: 0px !important; margin: 0px 1px !important; background: none !important; display: inline !important; outline: none !important; " width="10"><img border="0" src="https://vethelpdirect.com/dashboard/assets/images/star-gold.png" alt="Star Gold" style="width: 10px !important; border: 0px !important; padding: 0px !important; margin: 0px 1px !important; background: none !important; display: inline !important; outline: none !important; " width="10"> </span> </span> </span> </p> <p style="margin: 0 0 3px 0; padding: 0;"> <time style="color: #454545; font-size: 13px; font-family: arial, sans-serif; font-style: italic; font-weight: bold;">Jan 13 - </time> <q style="color: #454545; font-size: 14px; font-family: arial, sans-serif; padding: 0;"> <span>I originally came here for a heart scan for my two chihuahua&#039;s and have stayed with this clinic ever since. I usually see Seohee here and she is fantastic with my dogs. She is calm</span><span class="ellipsis">...</span><span class="more" style="display: none;">, careful, gentle and listens to my concerns every time. My lovely dogs are very old and she has done her utmost to keep them comfortable and as healthy as we can do. I have only high praise of this place and the reception staff are also excellent!</span> </q> <span style="color: #454545; font-style: italic; font-size: 14px; font-family: arial, sans-serif;"> - Angela</span> </p> </div> <div class="review-toggle" style="padding: 4px 0 0 0; ; cursor: pointer;" onclick="vhdWidget167975468234.showFullText(event)"> <p style="margin: 0; padding: 0;"> <span style="width: 60px; height: auto; position: relative; display:block;"> <span style="width: 60px; display:block; margin-left: -1px;"> <img border="0" style="width: 10px !important; border: 0px !important; padding: 0px !important; margin: 0px 1px !important; background: none !important; display: inline !important; outline: none !important;" src="https://vethelpdirect.com/dashboard/assets/images/star-grey.png" alt="Star Grey" width="10"><img border="0" style="width: 10px !important; border: 0px !important; padding: 0px !important; margin: 0px 1px !important; background: none !important; display: inline !important; outline: none !important;" src="https://vethelpdirect.com/dashboard/assets/images/star-grey.png" alt="Star Grey" width="10"><img border="0" style="width: 10px !important; border: 0px !important; padding: 0px !important; margin: 0px 1px !important; background: none !important; display: inline !important; outline: none !important;" src="https://vethelpdirect.com/dashboard/assets/images/star-grey.png" alt="Star Grey" width="10"><img border="0" style="width: 10px !important; border: 0px !important; padding: 0px !important; margin: 0px 1px !important; background: none !important; display: inline !important; outline: none !important;" src="https://vethelpdirect.com/dashboard/assets/images/star-grey.png" alt="Star Grey" width="10"><img border="0" style="width: 10px !important; border: 0px !important; padding: 0px !important; margin: 0px 1px !important; background: none !important; display: inline !important; outline: none !important;" src="https://vethelpdirect.com/dashboard/assets/images/star-grey.png" alt="Star Grey" width="10"> </span> <span style="width: 100%; position: absolute; top: 0; overflow: hidden; display: block; margin-left: -1px;"> <span style="width: 60px; display:block;"> <img border="0" src="https://vethelpdirect.com/dashboard/assets/images/star-gold.png" alt="Star Gold" style="width: 10px !important; border: 0px !important; padding: 0px !important; margin: 0px 1px !important; background: none !important; display: inline !important; outline: none !important; " width="10"><img border="0" src="https://vethelpdirect.com/dashboard/assets/images/star-gold.png" alt="Star Gold" style="width: 10px !important; border: 0px !important; padding: 0px !important; margin: 0px 1px !important; background: none !important; display: inline !important; outline: none !important; " width="10"><img border="0" src="https://vethelpdirect.com/dashboard/assets/images/star-gold.png" alt="Star Gold" style="width: 10px !important; border: 0px !important; padding: 0px !important; margin: 0px 1px !important; background: none !important; display: inline !important; outline: none !important; " width="10"><img border="0" src="https://vethelpdirect.com/dashboard/assets/images/star-gold.png" alt="Star Gold" style="width: 10px !important; border: 0px !important; padding: 0px !important; margin: 0px 1px !important; background: none !important; display: inline !important; outline: none !important; " width="10"><img border="0" src="https://vethelpdirect.com/dashboard/assets/images/star-gold.png" alt="Star Gold" style="width: 10px !important; border: 0px !important; padding: 0px !important; margin: 0px 1px !important; background: none !important; display: inline !important; outline: none !important; " width="10"> </span> </span> </span> </p> <p style="margin: 0 0 3px 0; padding: 0;"> <time style="color: #454545; font-size: 13px; font-family: arial, sans-serif; font-style: italic; font-weight: bold;">Aug 6 - </time> <q style="color: #454545; font-size: 14px; font-family: arial, sans-serif; padding: 0;"> <span>Alan was brilliant with my cat and helped with some difficult matted fur that was impossible for me to shift . Always professional and friendly and a sense of humour too!</span> </q> <span style="color: #454545; font-style: italic; font-size: 14px; font-family: arial, sans-serif;"> - Sharon Sillito</span> </p> </div> </div> <!-- FOOTER BUTTON --> <a href="https://vethelpdirect.com/dashboard/write-review?id=947&amp;color=ffffff&amp;color2=ffffff" id="js-vhdWidget167975468234-write-review-link" onclick="vhdWidget167975468234.showOverlay(\'write\', event);" target="_blank" style="display: block; background: #49a33d; border: 2px solid #49a33d; border-top: none; border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; height: 50px; text-align: center; line-height: 50px; color: #fff; font-size: 11px; font-family: arial, sans-serif; font-weight: bold; letter-spacing: 3px;"> ADD A REVIEW </a> <div id="js-vhdWidget167975468234-overlay" style="position: absolute; background: rgba(0,0,0, 0.85); left: 0; right: 0; top: 0; bottom: 0; border-radius: 8px; text-align: center; visibility: hidden;"> <p style="padding: 15px 0; margin: 0; color: #ffffff; text-align: center;"> Which practice?</p> <div> <select style="max-width: 95%; margin: 0 auto; height: auto; width: auto; float: none; padding: 8px; font-size: 16px; background: #FFF; appearance: auto;" id="js-vhdWidget167975468234-vet-select-menu" onchange="vhdWidget167975468234.onVetChange();"> <option data-practice-id="947" value="https://vethelpdirect.com/blackheath-veterinary-surgery-in-blackheath-947">Blackheath Veterinary Surgery</option> </select> </div> <a href="#" target="_blank" data-write-url="https://vethelpdirect.com/dashboard/write-review?id=947&amp;color=ffffff&amp;color2=ffffff" data-read-url="https://vethelpdirect.com/blackheath-veterinary-surgery-in-blackheath-947#startofreviews" onclick="vhdWidget167975468234.onContinue();" id="js-vhdWidget167975468234-continue-btn" style="background: #49a33d; height: 35px; text-align: center; line-height: 35px; color: #fff; font-size: 10px; font-family: arial, sans-serif; font-weight: bold; letter-spacing: 3px; display: inline-block; border-radius: 20px; margin: 20px 0 15px 0; padding: 0 35px;">CONTINUE</a> <div> <a href="#" id="js-vhdWidget167975468234-cancel" onclick="vhdWidget167975468234.onCancel(event);" style="font-size: 12px; color: #bdbdbd;">Cancel</a> </div> </div> </div>';
vhdWidget167975468234.widgetWrap.innerHTML = vhdWidget167975468234.widgetHtml;
vhdWidget167975468234.scripts = document.getElementsByTagName('script');
/*vhdWidget167975468234.thisScript = vhdWidget167975468234.scripts[vhdWidget167975468234.scripts.length - 1];*/
/* Instead of the above, which has problems with async and dynamically inserted scripts being on the page, iterate until we find the one we want */
vhdWidget167975468234.thisScript = null;
function isMe(scriptElem){
    var string = scriptElem.getAttribute('src');
    if(string != null){
      return string.indexOf("/dashboard/api/widget?widgetid=876") !== -1;
    } else {
      return false;
    }
}
for (var i = 0; i < vhdWidget167975468234.scripts.length; ++i) {
    if( isMe(vhdWidget167975468234.scripts[i])){
      console.log("script tag found!");
      vhdWidget167975468234.thisScript = vhdWidget167975468234.scripts[i];
    }
}
if(vhdWidget167975468234.thisScript != null){
  vhdWidget167975468234.thisScript.parentNode.insertBefore(vhdWidget167975468234.widgetWrap, vhdWidget167975468234.thisScript.nextSibling);
}


vhdWidget167975468234.getSelectedPracticeDetails = function() {
    var selectMenu = document.getElementById('js-vhdWidget167975468234-vet-select-menu');
    var selectedOption = selectMenu.options[selectMenu.selectedIndex];

    return {
        id: selectedOption.getAttribute('data-practice-id'),
        readUrl: selectMenu.value,
        practiceCount: selectMenu.options.length
    };
};

vhdWidget167975468234.onVetChange = function() {
    var continueBtn = document.getElementById('js-vhdWidget167975468234-continue-btn');
    var practiceDetails = vhdWidget167975468234.getSelectedPracticeDetails();

    if (continueBtn.getAttribute('data-role') === 'write') {
        continueBtn.href = continueBtn.getAttribute('data-write-url').replace(/(id=)[0-9]+/, '$1' + practiceDetails.id);
    }
    else {
        continueBtn.href = practiceDetails.readUrl;
    }
};

vhdWidget167975468234.showOverlay = function(type, event) {
    var continueBtn = document.getElementById('js-vhdWidget167975468234-continue-btn');
    var practiceDetails = vhdWidget167975468234.getSelectedPracticeDetails();

    if (type === 'write') {
        continueBtn.href = continueBtn.getAttribute('data-write-url').replace(/(id=)[0-9]+/, '$1' + practiceDetails.id);
        continueBtn.setAttribute('data-role', 'write');
    }
    else {
        continueBtn.href = practiceDetails.readUrl;
        continueBtn.setAttribute('data-role', 'read');
    }

    if (practiceDetails.practiceCount === 1) {
        if (continueBtn.getAttribute('data-role') === 'write') {
            event.preventDefault();
            vhdWidget167975468234.openWriteReviewWindow(continueBtn.href);
        }
    }
    else {

        event.preventDefault();
        document.getElementById('js-vhdWidget167975468234-overlay').style.visibility = 'visible';

    }
};

vhdWidget167975468234.showPhotoOverlay = function(imageUrl, event) {
    event.preventDefault();
   
    var image = document.getElementById('js-vhdWidget167975468234-img');
    var newImg = new Image;
    newImg.onload = function() {
        image.src = imageUrl;
    }
    newImg.src = imageUrl;
    document.getElementById('js-vhdWidget167975468234-overlay-photo').style.visibility = 'visible';
};


vhdWidget167975468234.onContinue = function(e) {
    if (!e) var e = window.event;

    var continueBtn = document.getElementById('js-vhdWidget167975468234-continue-btn');

    e.preventDefault();

    if (continueBtn.getAttribute('data-role') === 'write') {
        vhdWidget167975468234.openWriteReviewWindow(continueBtn.href);
    } else {
        window.open(continueBtn.href, '_blank');
    }

    document.getElementById('js-vhdWidget167975468234-overlay').style.visibility = 'hidden';
};

vhdWidget167975468234.onCancel = function(e) {
    if (!e) var e = window.event;
    e.preventDefault();
    document.getElementById('js-vhdWidget167975468234-overlay').style.visibility = 'hidden';
};

vhdWidget167975468234.onCancelPhoto = function(e) {
    if (!e) var e = window.event;
    e.preventDefault();
    document.getElementById('js-vhdWidget167975468234-img').src = '';
    document.getElementById('js-vhdWidget167975468234-overlay-photo').style.visibility = 'hidden';
};

vhdWidget167975468234.openWriteReviewWindow = function(href) {
    window.open(href, 'WriteReview', 'width=650,height=600');
};


vhdWidget167975468234.showFullText = function(e) {
    if (!e) var e = window.event;
    e.preventDefault();
    var target = e.target;
    
    if (! e.target.classList.contains('review-toggle')) {
        target = findAncestor(e.target, 'review-toggle')
    }

    var ellipsis = target.querySelector('.ellipsis');
    var moreText = target.querySelector('.more');
    if ( typeof ellipsis != "undefined" && ellipsis != null ) {
        ellipsis.style.display = 'none';
        moreText.style.display = 'inline';
    }
}

vhdWidget167975468234.showFullTextV2 = function(e) {
    if (!e) var e = window.event;
    e.preventDefault();
    var target = e.target;
    
    if (! e.target.classList.contains('review-toggle')) {
        target = findAncestor(e.target, 'review-toggle')
    }

    var ellipsis = target.querySelector('.ellipsis');
    var moreText = target.querySelector('.more');
    if ( typeof ellipsis != "undefined" && ellipsis != null ) {
        ellipsis.style.display = 'none';
        moreText.style.display = 'inline';
        e.target.style.display = 'none';
    }
}

function findAncestor (el, cls) {
    while ((el = el.parentElement) && !el.classList.contains(cls));
    return el;
}