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
<link rel="stylesheet" href="https://gsvlabs-confluence-files.s3-us-west-2.amazonaws.com/stylesheets/MorganStanley/mspartnersmsresources.css?v=84">


Custom section
ContainerIDpage-banner
Classbanner


Custom section
ClasstitleSection

Custom title
TitleOffers


Show If
groupmorganstanley-admins, confluence-administrators


Custom button container
CustomCSSwidth: unset; padding: unset;

Custom button
Typecustom-button
TextAdd a New Offer
Url/display/MSPER/Create+Partner



Content Layout Macro

banner
HTML
<div class="content">

<style>
div#resources-container {
    width: 80%;
}

#resources-container .resources-links {
    text-transform: uppercase;
    text-align: center;
}


.rw_search_icon.rw_icon.rw_iconfont_search {
   color: var(--primary-color);
}

@media only screen and (min-width : 320px) and (max-width : 480px) {
    div.titleSection    <div class="cards-section">
        <div id="category-cards" class="horizontal-cards">
        </div>
    </div>
</div>

<script>
const categories = [
    {
      title: "Finance & Accounting",
      imgSrc: "https://gsvlabs-confluence-files.s3.us-west-2.amazonaws.com/images/MStanley/resourcePlaceholders/Finance+%26+Operations.jpeg",
      redirect: "/display/MSPER/Finance+and+Accounting"
    },
    {
      title: "Fundraising & Capital Markets",
      imgSrc: "https://gsvlabs-confluence-files.s3.us-west-2.amazonaws.com/images/MStanley/resourcePlaceholders/Fundraising.jpeg",
      redirect: "/display/MSPER/Fundraising+and+Capital+Markets"
    }, {
      title: "Leadership & Management",
      imgSrc: "https://gsvlabs-confluence-files.s3.us-west-2.amazonaws.com/images/MStanley/resourcePlaceholders/Leadership.jpeg",
      redirect: "/display/MSPER/Leadership+and+Management"
    }, {
      title: "Legal",
      imgSrc: "https://gsvlabs-confluence-files.s3.us-west-2.amazonaws.com/images/MStanley/resourcePlaceholders/Legal.jpeg",
      redirect: "/display/MSPER/Legal"
    }, {
      title: "PR & Communications",
      imgSrc: "https://gsvlabs-confluence-files.s3.us-west-2.amazonaws.com/images/MStanley/resourcePlaceholders/Marketing+%26+PR.jpg",
      redirect: "/display/MSPER/PR+and+Communications"
    }, {
      title: "Productivity",
      imgSrc: "https://gsvlabs-confluence-files.s3.us-west-2.amazonaws.com/images/MStanley/resourcePlaceholders/Productivity.jpg",
      redirect: "/display/MSPER/Productivity"
    }, {
      title:  justify-content: center;
  "Sales & Marketing",
      imgSrc: "https://gsvlabs-confluence-files.s3.us-west-2.amazonaws.com/images/MStanley/resourcePlaceholders/Sales+%26+Customer+Acquisition.jpeg",
      marginredirect: unset;"/display/MSPER/Sales+and+Marketing"
    }, {
      title: "Talent Management",
      imgSrc: .titleSection .custom-button-container {
 "https://gsvlabs-confluence-files.s3.us-west-2.amazonaws.com/images/MStanley/resourcePlaceholders/Talent+%26+HR.jpeg",
      redirect: "/display/MSPER/Talent+Management"
    }, {
      title: "Technology & Product Development",
       display: none;imgSrc: "https://gsvlabs-confluence-files.s3.us-west-2.amazonaws.com/images/MStanley/resourcePlaceholders/TechAndProductDev.jpg",
      redirect: "/display/MSPER/Technology+and+Product+Development"
    }
]

// renders the profile cards
async function renderCards(cards, tab) {
  let cardsDiv = .rw_cell.rw_search_module_containerdocument.getElementById('category-cards')
  cardsDiv.innerHTML = "";

  let cardsArray = []

  if (cards.length) {
    let promiseArr =  padding: 0;
Object.values(cards).map((card) => createProfileHTML(card, tab));

    cardsArray = await  background: var(--main-backgroundPromise.all(promiseArr) // wait for array of promises to resolve
  } else {
    cardsArray.push(`<p class="not-available">Not Available!</p>`);
  }
  cardsDiv.insertAdjacentHTML('beforeend', cardsArray.join(""));
}

// create html for the profile cards
async function createProfileHTML(card, tab) {
  div#resources-containerconst {
        width: calc(100vw - 20px) !important; title, imgSrc, redirect } = card;

  let myPromise = new Promise(async (resolve, reject) => {
    try {
      const profileHTML padding:= 10px;`
        display: flex;
    <a class="custom-card-link-styling" onclick="handleCardClick('${title}','${redirect}')">
               justify-content: center;
    }
    
    #resources-container .resources-links<div class="card" style="background-image: url(${imgSrc});">
                <div class="body">
                    <p class="name"> ${title}</p>
                </div>
              </div>
            </a>`
      resolve(profileHTML);
    } catch (error) {
      throw  width: 80%;(error);
      reject()
    }
  });

  return await myPromise;
}

function handleCardClick(title, redirect) {
	window.location.href = redirect;
}
</style>
Custom section
CustomCSS flex-direction: row; align-items: center; justify-content: space-between;
Class

renderCards(categories);

</script>


custom-titleunset;border-radius: 6px; background-color: var(--primary-color); border: none; width
Custom section
ClasstitleSection
TitlePerks
Show If
groupmorganstanley-admins
Custom button container
CustomCSSwidth:
Custom button
CustomCSS
95vw; margin: auto;
lastContainer
Typecustom-button
TextAdd a New Perk
Url/display/MSPER/Create+Partner

...

true

This website contains links to third-party websites. These links are provided only as a convenience. The inclusion of any link is not and does not imply an affiliation, sponsorship, endorsement, approval, investigation, verification or monitoring by Morgan Stanley of any information contained in any third-party website. In no event shall Morgan Stanley be responsible for the information contained on that site or your use of or inability to use such site. You should also be aware that the terms and conditions of such site and the site's privacy policy may be different from those applicable to your use of this website.