x
x
x
x
Only portrait mode is currently supported - please rotate your device.
...
HTML |
---|
<style>
#deadline-passed-signup {
  display: flex;
flex-direction: column;
justify-content: center;
font-size: 16px;
background-color: var(--main-background);
margin-bottom: 100px;
padding: 20px;
margin-top: 10px;
}
#deadline-passed-signup h4 {
font-size: 18px;
font-weight: bold !important;
}
.custom-section-container .learn-more-section a.external-link {
background: #fff!important;
border: 2px solid #187ABA !important;
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1)!important;
color: #187ABA !important;
font-weight: bold !important;
}
#main-content{
position: relative;
}
.bannerImg{
position: absolute;
top: 100px;
width: 100%;
height: 400px;
object-fit: cover;
object-position: right;
z-index: -1;
}
.custom-section-container .conf-macro div.bigImageContainer.deadline-passed {
background: url("https://dwmysgmxkr93k.cloudfront.net/images/MS+Strategy+Challenge/strategy_challenge_banner_long.png") !important;
background-position: center !important;
width: 100%;
}
.bigImageContainer.deadline-passed .learn-more-section {
display: none !important;
}
</style>
<script>
const END_DATE_TIME = Date.parse("12/05/2022 17:00:00 EST");
// const END_DATE_TIME = Date.parse("12/05/2023 00:00:00 EST");
const DEADLINE_PASSED_STATE_VAR = END_DATE_TIME < Date.now();
const handleDeadlinePassedState = () => {
$("form[name='signupform']").html(`<div id='deadline-passed-signup'><h4>The deadline for the Morgan Stanley Strategy Challenge has passed.</h4> <p>Please contact us at <a href='mailto:morganstanleystrategychallenge@theonevalley.com' style='color:#187ABA !important; font-weight: bold !important;'>morganstanleystrategychallenge@theonevalley.com</a> if you have any questions.</p></div>`);
$(".custom-section-container .conf-macro div.bigImageContainer").addClass("deadline-passed");
$(".learn-more-section").hide();
}
if (DEADLINE_PASSED_STATE_VAR == true) {
handleDeadlinePassedState();
}
$('.conditions-message')[0].innerHTML = $('.conditions-message')[0].innerHTML.replace("Innovation Awards", "Strategy Challenge")
window.addEventListener('load', ()=>{
$('#main-content').append(`<img src='https://dwmysgmxkr93k.cloudfront.net/images/MS+Strategy+Challenge/strategy_challenge_banner_long.png' class='bannerImg'>`)
})
 </script> |
...
OneValley