x
x
x
x
Only portrait mode is currently supported - please rotate your device.
HTML |
---|
<link rel="stylesheet" href="https://gsvlabs-confluence-files.s3-us-west-2.amazonaws.com/stylesheets/MorganStanley/msresources.css?v=84"> |
Custom section | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||
|
Content Layout Macro |
---|
HTML | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
<div class="content"> <div class="cards-section"> <div id="category-cards" class="horizontal-cards"> </div> </div> </div> <script> const categories = [ <style> /* REMOVE EXTRA SPACE AT TOP #main-content p:first-child { display: none; } div#myCards-techproddevcards { margin: 20px auto; display: grid !important; grid-template-columns: repeat(auto-fill, 300px); grid-gap: 30px; width: 100%; justify-content: space-evenly !important; height: auto !important; } */ /* BANNER */ div.banner p:first-child { display: none; } div.banner { height: 368px; title: "Finance & Accounting", backgroundimgSrc: url('"https://passportgsvlabs-confluence-mediafiles.s3-.us-west-12.amazonaws.com/Morgan+Stanley/msResourcesBanner.jpg'); background-position: center; /* Center the image */ background-repeat: no-repeat; /* Do not repeat the image */images/MStanley/resourcePlaceholders/Finance+%26+Operations.jpeg", redirect: "/display/MSRES/Finance+and+Accounting" background-size: cover; } div.titleSection { }, { margin: 90px 80px; flex-directiontitle: row; "Fundraising & Capital justify-content: space-between; Markets", align-items: center; } .titleSection .custom-title {imgSrc: "https://gsvlabs-confluence-files.s3.us-west-2.amazonaws.com/images/MStanley/resourcePlaceholders/Fundraising.jpeg", font-family: 'MS Gloria II Std'; color: #ffffff; redirect: "/display/MSRES/Fundraising+and+Capital+Markets" font-size: 60px; } button.tab-control-button}, { width: 155px; title: "Industry Research height: 54px; & Whitepapers", margin: 0 12px 0 0;imgSrc: "https://gsvlabs-confluence-files.s3.us-west-2.amazonaws.com/images/MStanley/resourcePlaceholders/IndustryResearchAndWhitepapers.jpg", border-radius: 8px; border: solid 2px rgba(255, 255, 255, 0.75); redirect: "/display/MSRES/Industry+Research+and+Whitepapers" }, { background: transparent; font-family: Karla; font-size: 16px; title: "Leadership & Management", font-weight: bold; color: #ffffff; outline: none; } button.tab-control-button:hover { cursor: pointer; } div#resources-container { box-sizing: content-box; flex-grow: 1; overflow-y: auto; background-color: var(--secondary-color) !important; flex-direction: column; border-radius: var(--border-radius); color: white !important; min-height: 500px; margin-left: 40px; } .categories imgSrc: "https://gsvlabs-confluence-files.s3.us-west-2.amazonaws.com/images/MStanley/resourcePlaceholders/Leadership.jpeg", redirect: "/display/MSRES/Leadership+and+Management" }, { title: "Legal", imgSrc: "https://gsvlabs-confluence-files.s3.us-west-2.amazonaws.com/images/MStanley/resourcePlaceholders/Legal.jpeg", redirect: "/display/MSRES/Legal" }, { color: white; title: "Podcasts & font-family: AmazonEmberRegular, Helvetica, sans-serif; font-weight: unset; Digital Media", widthimgSrc: 80%; padding: 20px 0px 2px 20px; font-size: 12px; text-transform: uppercase;"https://gsvlabs-confluence-files.s3.us-west-2.amazonaws.com/images/MStanley/resourcePlaceholders/Podcasts%26DigitalMedia.jpg", redirect: "/display/MSRES/Podcast+and+Digital+Media" letter-spacing: unset; } #resources-container .resources-links { }, { paddingtitle: 8px"PR 16px !important;& Communications", color: white !important; font-size: var(--font-size-m); imgSrc: "https://gsvlabs-confluence-files.s3.us-west-2.amazonaws.com/images/MStanley/resourcePlaceholders/Marketing+%26+PR.jpg", font-family: var(--main-font-family); redirect: "/display/MSRES/PR+and+Communications" font-weight: unset;}, { border-radius: 8px; title: "Sales width: 60%;& Marketing", margin: 7px auto; backgroundimgSrc: var(--primary-color); } #resources-container .resources-links:hover {"https://gsvlabs-confluence-files.s3.us-west-2.amazonaws.com/images/MStanley/resourcePlaceholders/Sales+%26+Customer+Acquisition.jpeg", background: #0f5380 !important; } a.resources-links:active { redirect: "/display/MSRES/Sales+and+Marketing" background: var(--s-label-fill); } a.resources-links:hover{ cursor: pointer; text-decoration: none; } .currently-selected}, { background: #0f5380 !important; } #main-content { margin-top: 40px !important; } @media only screen and (min-width: 320px) and (max-width: 480px) { div#main-content { title: "Talent Management", imgSrc: "https://gsvlabs-confluence-files.s3.us-west-2.amazonaws.com/images/MStanley/resourcePlaceholders/Talent+%26+HR.jpeg", margin-top: 0px !important;redirect: "/display/MSRES/Talent+Management" } .rw_content_layout_macro, { margin-toptitle: -10px; } "Technology & Product Development", .rw_table_cell { width: 100% !important;imgSrc: "https://gsvlabs-confluence-files.s3.us-west-2.amazonaws.com/images/MStanley/resourcePlaceholders/TechAndProductDev.jpg", margin: auto;redirect: "/display/MSRES/Technology+and+Product+Development" } ] // renders the profile cards async function .rw_tablerenderCards(cards, tab) { let cardsDiv = document.getElementById('category-cards') cardsDiv.innerHTML display:= flex""; let cardsArray flex-direction: column; }= [] if (cards.length) { div#resources-container { margin: auto; width: 100% !important;let promiseArr = Object.values(cards).map((card) => createProfileHTML(card, tab)); cardsArray = await max-width: unset; height: fit-content; min-height: unset;Promise.all(promiseArr) // wait for array of promises to resolve } else { flex-direction: rowcardsArray.push(`<p class="not-available">Not Available!</p>`); flex-wrap: wrap;} padding: 20px 20px 23px 20px; } .rw_search_item.rw_formatting_item .rw_search_module_container>divcardsDiv.insertAdjacentHTML('beforeend', cardsArray.join("")); } // create html for the profile cards async function createProfileHTML(card, tab) { const { title, imgSrc, redirect } width:= 100%card; let } font.categoriesmyPromise = new Promise(async (resolve, reject) => { display: none;try { } const profileHTML #resources-container .resources-links {= ` margin: 3px; <a width: fit-content;class="custom-card-link-styling" onclick="handleCardClick('${title}','${redirect}')"> } .rw_cell.rw_search_module_container { <div backgroundclass="card" style="background-image: var(--secondary-colorurl(${imgSrc});"> padding-bottom: 23px; display: flex; <div class="body"> padding-left: 23px; padding: 0px 23px 23px 23px;<p class="name"> ${title}</p> margin-top: -1px; } </div> div#myCards-resourceContainer { width: 90%; </div> justify-content: center !important; </a>` margin-top: -20pxresolve(profileHTML); } catch div.largeimagewithtextbelow-autocards (error) { width: 100%throw (error); margin: 10px 0px;reject() } div.largeimagewithtextbelow-autocards .image-container {}); return width: 100%; } a#create-resource { display: none; } } </style> | ||||||||||
Custom section | ||||||||||
| ||||||||||
Custom section | ||||||||||
|
Custom title | ||
---|---|---|
|
group | morganstanley-admins |
---|
Custom button container | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
|
...
await myPromise;
}
function handleCardClick(title, redirect) {
window.location.href = redirect;
}
renderCards(categories);
</script>
|
OneValley