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.
Comment: Add deadline logic and update its styling

...

HTML
<style>
div.bigImageContainer {
    width: 50%;
    background-image: url('https://passport-media.s3-us-west-1.amazonaws.com/Morgan+Stanley/msSignUp.jpg');
    background-position: center; /* Center the image */
    background-repeat: no-repeat; /* Do not repeat the image */
    background-size: cover;
	box-shadow: 0 2px 10px 2px rgba(0, 0, 0, 0.1);
    margin-left: 10px;
}

div.signContainer {
    width: 90vw;
    height: 90%;
    margin: 60px auto;
}

div.signContainer > span {
    width: 100%;
}

.rw_content {
    background: var(--main-background);
}


div.formContainer {
    box-shadow: 0 2px 10px 2px rgba(0, 0, 0, 0.1);
    margin-right: 10px;
	/* width: 50%; */
}
</style>


Custom section
ClasssignContainer


Custom section
ClassformContainer

Sign up form generic
Destination/display/MEA
TCLinkhttp://support.theonevalley.com/en/articles/2546656-terms-and-conditions
BackgroundImagehttp://gsvlabs-confluence-files.s3-us-west-2.amazonaws.com/images/SMITH/background.jpg
PPLinkhttp://support.theonevalley.com/en/articles/2546657-privacy-policy
LoginLink/display/MSA/Login
SiteKeySmith Competition
EndpointUrl/rest/scriptrunner/latest/custom/signUpMorganStanley
WelcomeMessageSIGN UP


Custom section
ClassbigImageContainer

.


...

HTML
<style>

div#custom-footer {
    display: none;
}
.main-container {
    min-height: calc(100vh - 50px);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}
div#toggle {
    display: none;
}
input#signupButton {
	background-color: var(--primary-color) !important;
}


div.signContainer {
	position: relative;
}
div.bigImageContainer {
	position: absolute;
	right: 0px;
	height: 100%;
}

#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;
}

</style>

<script>
    const END_DATE_TIME = Date.parse("04/07/2023 23:59:59 PDT");
    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 Inclusive Ventures Lab has passed.</h4>
                <p>Contact <a href="mailto:msivl@morganstanley.com">msivl@morganstanley.com</a> for Americas and <a href="mailto:emsivl@morganstanley.com">emsivl@morganstanley.com</a> for EMEA with any inquiries.</p>
            </div>`);
        document.getElementsByClassName("formContainer")[0].style.width = "unset";
        document.getElementsByClassName("formContainer")[0].style.marginRight = "unset";
    }

    if (DEADLINE_PASSED_STATE_VAR === true) {
        handleDeadlinePassedState();
    }
</script>