x x x
x
Only portrait mode is currently supported - please rotate your device.

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


HTML
<style>
button{
	color: white!important;
}

.custom-card-container .image-container img{
	width: 200px!important;
	height: 200px!important;
	border-radius: 0px;
}

.custom-card-container .card-text-container .card-title{
	text-align: left;
}

.custom-card-container .card-text-container{
	width: 100%;
}

</style>

<script>
const url_params = new URLSearchParams(window.location.search);
</script>
Hide If
groupconfluence-administrators
HTML
<script>
var param_name = url_params.get('company');
if(param_name == null){
	window.location.href = "/display/MSCOM";
}
</script>
HTML
<script>
var param_name = url_params.get('company');
if(param_name == null){
	param_name = AJS.params.remoteUser
}

</script>

...

Heightauto
Width15%

...

Heightauto
Width15%
HTML
<a class="edit-btn" id="edit-profile-btn"> <button> Edit Profile</button></a>
<a class="edit-btn" id="edit-picture-btn"> <button> Edit Profile Picture</button></a>

<script>
const getCurrentUserGroups = async () => {
  let res = await jQuery.ajax({
    url: "/rest/api/user/memberof?username=" + AJS.params.remoteUser, 
    type: "get", 
    dataType: 'json', 
    async: true
  }).then(res => res);

  res = res.results;
  let groupNames = [];
  for(var i = 0; i < res.length; i++){
    groupNames.push(res[i].name);
  }

  return groupNames;
}

let companyName = new URLSearchParams(window.location.search).get("company");
const companyMember = `morganstanley-${companyName}-users`;
getCurrentUserGroups().then((groups) => {
    if (groups.includes("confluence-administrators") || groups.includes("morganstanley-admins") || groups.includes(companyMember)) {
      document.getElementById('edit-profile-btn').href = `/display/MSCOM/Edit+Company+Profile?username=${param_name}`;
      document.getElementById('edit-picture-btn').href = `/display/MSCOM/Edit+Profile+Picture?username=${param_name}`;
      document.getElementById('edit-profile-btn').display = "initial";
      document.getElementById('edit-picture-btn').display = "initial";
    }
    else {
      document.getElementById('edit-profile-btn').display = "none";
      document.getElementById('edit-picture-btn').display = "none";
    }
})
</script>

Dynamic general sidebar
MessageButtonTitleWebsite
MessageButtonCustomCSSbackground-color: #6781ca;
BackButtonCustomCSSbackground-color: #636363;
BackButtonUrl/display/MEM/Network#tab-COMPANIES
SidebarHeight100%
BackButtonTitleBack to Companies

...

Heightauto
Width85%

...

ContentHeight120hv
HTML
<img src="" class="service-banner hide-on-mobile">
General description
MyTitle-

-

...

MyTitle-
BodyCSScontent: "";
General info cards

List members company
GroupNamemorganstanley- -users
CardURL/display/MSPEOP/Bio+Profile?mentor=

HTML
<style>
/* MAIN / OUTER CONTAINERS */
#company-profile-container {
	position: relative;
	flex-direction: column;
    height: auto !important;
    width: 100%;
}
#company-profile-content {
    display: flex !important;
    flex-direction: row;
    width: 85%;
    margin: 0 auto;
    position: relative;
	height: auto !important;
    top: -200px;
  	border: 1px solid var(--primary-color);
	max-width: 1100px;
}
#main-content > p {
	display: none;
}
.custom-column-container {
	width: 100%;
}
#main-content > .custom-section-container {
	position: relative;
}

/* SIDEBAR */
.sidebar-container {
	height: auto !important;
}
#company-sidebar-container {
	width: 300px;
	flex-direction: column;
	height: auto !important;
    background-color: var(--primary-color);
    min-width: 300px;
}
#company-sidebar-container .custom-column-container {
	width: 100% !important;
}
#edit-profile-button-container {
	height: max-content !important;
}
#edit-profile-button {
	height: max-content;
	width: 100%
}
#edit-profile-button button {
	padding: 10px 0px;
}
.badges-container-sidebar {
	display: none !important;
}
.general-sidebar-content {
	padding-top: 0px !important;
	width: 100% !important;
}
.general-image-wrapper {
	width: 100% !important;
}
.general-image-wrapper img {
	width: 100% !important;
	height: 100% !important;
	border-radius: 0px !important; 
}
.sidebar-container .general-description-wrapper {
	padding: 30px;
}
.general-description-wrapper .general-name {
    font-size: var(--font-size-l);
    font-weight: var(--font-weight-title);
    text-transform: none;
    color: var(--secondary-font-color);
}
.general-description-wrapper .general-tagline {
    font-family: var(--secondary-font-family);
    font-size: var(--font-size-s);
    font-weight: var(--font-weight-title);
    color: var(--secondary-font-color);
}
#company-sidebar-container .info-wrapper h3 {
	font-family: var(--main-font-family);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-title);
    color: var(--secondary-font-color);
}
#company-sidebar-container .info-wrapper p {
	font-family: var(--secondary-font-family);
	font-weight: var(--font-weight-title);
    color: var(--secondary-font-color) !important;
	font-size: var(--font-size-s);
}
#company-sidebar-container .info-wrapper p span {
	color: var(--secondary-font-color) !important;
}
#company-sidebar-container .info-wrapper {
    border-top: 1px solid #505050;
    padding: 30px;
	padding-bottom: 45px;
}


/* MAIN CONTENT / DESCRIPTION */
#company-profile-content .content-container {
	height: auto;
	position: relative;
    min-height: calc(100% - 150px);
    border-left: 1px solid gray;
}

.content-container {
    background-color: transparent;
}

.content-container > .general-text-container {
	width: 100%;
	padding: 0px;
}

.content-container .body-container {
    font-family: var(--main-font-family);
    font-size: var(--font-size-s);
    font-weight: var(--font-weight-paragraph-text);
    font-style: normal;
    font-stretch: normal;
    line-height: 2.3;
    letter-spacing: var(--letter-spacing);
    padding: 50px;
}

.content-container .body-container p span  {
	color: var(--primary-font-color) !important;
}

.content-container .buttons-wrapper {
    display: flex;
    flex-direction: row;
    padding: 50px;
    justify-content: space-between;
    align-items: center;
    margin-top: 0px;
    width: calc(100% - 100px);
    position: absolute;
    bottom: 0px;
}

#message-button-link > button, #back-button-link > button {
	border-radius: var(--border-radius);
	font-size: 14px;
	font-weight: var(--font-weight-super-title);
    text-transform: uppercase;
    width: 200px;
}

#message-button-link > button:hover {
	opacity: 0.95;
}

#back-button-link > button {
    border: 1px solid var(--primary-color);
    background-color: var(--secondary-color);
    color: var(--primary-font-color);
    width: 200px;
    margin-top: 0px;
}

button.msg-button {
    background-color: var(--sidebar-bb-fill) !important;
}

#back-button-link > button {
	background-color: var(--secondary-color) !important;
}

.my-title {
    letter-spacing: var(--letter-spacing);
}

#company-description-container {
    background-color: var(--mainprof-background);
}

#company-description-container .my-title {
	background-color: var(--primary-color);
    color: var(--secondary-font-color);
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    font-weight: var(--font-weight-title);
    font-size: var(--font-size-l);
    letter-spacing: var(--letter-spacing);
    line-height: var(--paragraph-line-height);
    padding: 40px 50px;
}

/* COMPANY TEAM (BOTTOM SECTION) */
#company-team-container {
    flex-direction: column;
    height: fit-content !important;
    min-height: 300px;
    padding-bottom: 100px;
    width: 84%;
    margin: 0 auto;
	  position: relative;
    top: -100px;
	  max-width: 1100px;
}
#company-team-container .general-text-container {
  padding: 0px;
  width: 100%;
  height: max-content !important;
}
.general-text-container {
    padding: 0px;
    width: 100%;
}
#company-team-container .info-cards-container {
    margin: 0px;
    padding: 0px;
    width: 100%;
}
#company-team-container #myCards-companyteam-listmembers {
  	display: grid !important;
    grid-template-columns: repeat(auto-fill, 320px);
    grid-gap: 20px;
    justify-content: space-evenly;
  	width: 100%;
}
#myCards-companyteam-listmembers .tintedrect-listmempag {
	margin: 0px !important;
}
#company-team-container .info-cards-container > p {
	display: none;
}
#company-team-container .info-cards-container {
	display: grid !important;
    grid-template-columns: repeat(auto-fill, 320px);
    grid-gap: 20px;
    justify-content: space-evenly;
}


@media only screen and (max-width: 1000px) {
	.content-container .buttons-wrapper {
		flex-direction: column;
	}
	#message-button-link, #back-button-link {
		width: 100% !important;
		margin: 10px 0px;
	}
	#message-button-link > button, #back-button-link > button {
		width: 100%;
	}
}

@media only screen and (max-width: 750px) {
	.none-found {
		text-align: center;
	}
	#company-description-container .my-title {
		font-size: var(--font-size-m);
        text-align: left;
        color: var(--secondary-font-color) !important;
        background: var(--primary-color);
        -webkit-background-clip: unset !important;
        -webkit-text-fill-color: var(--secondary-font-color);
	}

	#rw_wrapper #rw_main #rw_theme_content #main {
		background-color: var(--secondary-color);
	}
	#company-sidebar-container {
		width: 100%;
	}
	.service-banner {
		height: 150px; 
	}
	#company-profile-content { 
		top: -30px
	}
	#company-profile-content .content-container {
		flex-direction: column-reverse;
		border: none;
	}
	.content-container .buttons-wrapper {
		position: relative;
	}
	#company-profile-content {
		flex-direction: column;
		width: 100%;
		border: none;
	}
	.general-sidebar-content {
		position: relative;
	}
	.general-sidebar-content .general-image-wrapper {
		position: absolute;
		top: -70px;
    	width: 90px !important;
    	height: 90px !important;
    	left: 40px;
		border: 1px solid var(--primary-color);
	}
	#company-team-container .general-text-container .my-title {
		font-weight: var(--font-weight-title);
		text-align: left;
    }
    
    #company-sidebar-container .info-wrapper p {
        padding: 0px 40px;
    }
	
}

@media only screen and (max-device-width: 480px) and (min-device-width: 320px) {

	
    #company-profile-content .content-container {
        padding-bottom: 70px;
    }
	#company-profile-content { 
		top: unset;
	}
	#company-sidebar-container .info-wrapper {
    	width: 100%;
	}
	.content-container .buttons-wrapper { 
		padding: 40px;
		width: calc(100% - 80px);
	}
	.service-banner {
		display: block !important;
		width: 100%;
        height: 110px;
	}
	.sidebar-container .general-description-wrapper {
    	padding-top: 35px;
    	padding-bottom: 10px;
	}
	#company-team-container {
		width: 320px;
	}
	#page .rw_content_spaces_white1 #likes-and-labels-container, #page .rw_content_spaces_white1 .rw_blogpost_share {
		display: none;
	}
	.none-found { 
		font-size: var(--font-size-s) !important; 
    	color: var(--primary-color);
		letter-spacing: var(--letter-spacing) !important; 
	}

	
div.sidebar-container {
    width: auto;
    padding: unset;
}


.general-sidebar-content {
    position: unset;
}


.general-sidebar-content .general-image-wrapper {
    position: unset;
}

div.sidebar-container .general-description-wrapper {
    width: 90%;
}

div.sidebar-container {border-right: unset !important;}

div#\$paramContainerID {
    width: 90% !important;
    margin: auto !important;
    margin-top: 80px !important;
    padding-top: 20px !important;
}

img.service-banner.hide-on-mobile {
    display: none !important;
}

.general-sidebar-content .general-image-wrapper {
    width: 100% !important;
    height: auto !important;
}

div.sidebar-container {
    width: 100% !important;
    padding: unset !important;
}

.custom-column-container:nth-child(2) {
    width: auto !important;
}

.buttons-wrapper {
    flex-direction: column;
}

.info-wrapper {
    width: 100% !important;
}

.custom-column-container:nth-child(4) {
    width: 100% !important;
}

p.my-title {
    padding: unset ;
}

.content-container .body-container {
    padding: 20px 30px;
    width: 90%;
}

p.my-title {
}

div.info-cards-container {
    padding: unset !important;
    margin-top: 50px !important;
}

}
</style>
HTML
<style>
div.general-image-wrapper {
    border: solid 1px #e0e0e0;
    background-color: #ffffff;
    height: unset !important;
}

div.sidebar-container {
    border-right: solid 1px #e0e0e0;
    background-color: #ffffff;
    width: calc(100% - 60px);
    padding: 30px;
    height: 100% !important;
    font-family: var(--main-font-family);
    color: var(--primary-font-color);
    text-align: left;
}

div.sidebar-container .general-description-wrapper {
    padding: 30px 0;
    text-align: left;
}

div.info-wrapper {
    color: var(--primary-font-color);
    
}

.info-wrapper h3 span, .info-wrapper p span {
    color: var(--primary-font-color) !important;
    font-family: var(--main-font-family);
	text-align: left !important;
}

.info-wrapper h3 span {
    font-size: 18px;
    font-weight: bold;
}

.info-wrapper p span {
    font-size: 18px;
}

div#\$paramContainerID {
    width: calc(100vw - 160px);
    margin: 80px;
    border: solid 1px #e0e0e0;
    background-color: #ffffff;
}


div#main-content {
    background: #ffffff;
}

/* .custom-column-container:nth-child(2) {
    width: calc(15% + 60px) !important;
} */

.custom-column-container:nth-child(4) {
    width: calc(85% - 60px) !important;
}

.info-wrapper h3, .info-wrapper p {
    display: flex;
}

div.info-wrapper {
    padding: 20px 0;
}

div.sidebar-container .general-description-wrapper {
    width: 100%;
}

.buttons-wrapper {
    /* margin-top: 40px; */
}

.buttons-wrapper #message-button-link > button, #back-button-link > button {
    border-radius: 8px;
    background: var(--primary-color) !important;
    border: none;
    color: #ffffff;
    font-family: var(--main-font-family);
    font-size: 14px;
    padding: 10px;
    height: 54px;
    width: 100%;
}

button.msg-button {
    margin-bottom: 15px;
}

a#message-button-link, a#back-button-link {
    width: 100%;
}

p.my-title {
    padding: 50px 50px 0 50px;
    font-size: 28px;
    font-weight: bold;
    font-family: var(--main-font-family);
}

.body-container {
    font-size: 18px !important;
    letter-spacing: 0.45px !important;
}

div.info-cards-container {
    width: 100%;
    padding: 50px;
}

.general-text-container:nth-child(5) .my-title {
    padding-top: 0;
}

.general-text-container:nth-child(5) .body-container {
    display: none;
}

.custom-column-container:nth-child(2) {
    margin: 0 auto;
}

button.my-button {
    border-radius: 8px;
    background: var(--primary-color) !important;
    border: none;
    color: #ffffff;
    font-family: var(--main-font-family);
    font-size: 14px;
    padding: 18px;
    height: 54px;
    margin-top: 10px;
}


a.edit-btn button {
    border: unset;
    background: var(--primary-color);
    margin-top: 20px;
    padding: 10px 20px;
    border-radius: 8px;
    width: 70%;
    height: 54px;
    font-weight: bold;
}

a.edit-btn {
    display: flex;
    justify-content: center;
}
</style>
HTML
<script>
$( document ).ready(function() {
    document.getElementsByClassName('service-banner')[0].setAttribute('src','https://passport-media.s3-us-west-1.amazonaws.com/Morgan+Stanley/Company+Images/screen.jpg');
});
</script>
<link rel="stylesheet" href="https://gsvlabs-confluence-files.s3.us-west-2.amazonaws.com/stylesheets/MorganStanley/profile.css" > </link>

<div class="content">
    <a id="back-btn" href="#">Go Back</a>
    <div class="profile-container">
        <section class="left">
            <div class="profile-card">
                <div class="img">
                    <img id="profile-picture" />
                </div>
                <p id="name"> </p>
                <p id="designation"> </p>
                <p id="tagline"> </p>
                <div id="distinction"> </div>
                <hr />
                <div class="strengths" hidden>
                    <p class="left-col-titles strengths-title">Strengths</p>
                    <div id="filterOptions">
                    </div>
                </div>
                <div id="location-section" hidden>
                    <p class="left-col-titles">Location</p>
                    <p id="location"> </p>
                </div>
                <div id="stage-section" hidden>
                    <p class="left-col-titles">Stage</p>
                    <p id="stage"> </p>
                </div>
                <div id="connect">
                    <div class="connecttoContainer">
                        <a href="#calendly" id="connecttoHref">
                            <button class="connecttoButton" onclick="setAnalytics('Booking', '')">REQUEST A MEETING</button>
                        </a>
                    </div>
                    <!--<a id="slack" class="link">SLACK</a>-->
                    <a id="linkedIn" class="link"><button>VIEW LINKEDIN</button></a>
                    <a id="company-website" class="link" hidden><button>VISIT WEBSITE</button></a>
                </div>
            </div>
        </section>

        <section class="right">
            <p id="about-title" class="title">ABOUT</p>
            <p class="text" id="description"> </p>
            <div class="member-section cards-section" hidden>
		        <p class="title">MEET THE TEAM</p>
		        <div id="members-cards" class="vertical-cards"> <div>
		    </div>
        </section>
    </div>
</div>

<script type="text/javascript" src="https://assets.calendly.com/assets/external/widget.js"> </script>
<script src="https://gsvlabs-confluence-files.s3.us-west-2.amazonaws.com/js/Morgan+Stanley/profile.js?v=2"> </script>