<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">$(function () {
    $('.translateWrap').css('visibility', 'visible');

    //n-th child fix on content boxes (change this to 3n+3 if SC is not here)
    $('.contentBoxes .homeBoxes:nth-child(3n+3)').css('padding', '0');
    //to shorten slider blurb for mobile
    if (screen.width &lt;= 768) {
        $('.contentBoxes .homeBoxes:nth-child(3n+2)').css('padding', '0');
    };

    //break long Adult &amp; Pediatric Topic Index titles 
    $('#innerColumn #contentBodyMain .MiniContent h1:contains("Topic Index - Diabetes and Other Endocrine and Metabolic Disorders")').html('Topic Index - Diabetes and Other Endocrine&lt;br/&gt;and Metabolic Disorders');
    $('#innerColumn #contentBodyMain .MiniContent h1:contains("Topic Index - Common Childhood Injuries and Poisonings")').html('Topic Index - Common Childhood Injuries&lt;br/&gt;and Poisonings');

    $('#HealthLibraryMenu &gt; li &gt; ul').wrap('&lt;div&gt;&lt;/div&gt;');


    $('img[src="_Images/ico_instagram.png"]').replaceWith('&lt;i class="fa fa-instagram fa-3x SocialImage" title="Instagram"&gt;&lt;/i&gt;');

    //remove Interactive Tools breadcrumb from Spanish
    if (window.location.pathname.toLowerCase().indexOf('/spanish/interactivetools/symptomchecker/') != -1) {
        $('.BreadCrumbs a:contains("Interactive Tools")').next('span').remove();
        $('.BreadCrumbs a:contains("Interactive Tools")').remove();
    }
    //remove link from last breadcrumb
    $('.BreadCrumbs a:last-of-type').addClass('last').removeAttr('href');

    $('.scSidebar').remove();

    $('.site-search__submit').click(function (e) {
    	ClientSearch();
    	return false;
    });
	
    $('.site-search__search-field').keyup(function (e) {
		var keycode = e.keyCode ? e.keyCode : e.which;
		if (keycode == 13) {
			ClientSearch();
		}
	});
 

});




function truncateDivText(divId, numChars) {
    var str = $(divId).text();
    if (str.length &gt;= numChars) {
        str = str.substring(0, numChars) + "...";
        $(divId).text(str);
    }
}

//to change page title to client name
$(document).ready(function () {
    "use strict";
    $('.megamenu').accessibleMegaMenu();
});

$(window).load(function () {
    //move blurbToggle up when See All is hidden
    if (!$('a.seeAllLink').is(':visible')) {
        $('span.blurbToggle').css('clear', 'none');
    }
});

function ClientSearch() {
	var searchVal = $('.site-search__search-field').val();
	window.location.href = "https://www.brighamandwomens.org/search-results.page?text=" + searchVal;
}</pre></body></html>