Final save before Thanksgiving holiday! Blacklane has been completed. Some small scripts were updates. Downloaded new - but error prone - SPS templates.
This commit is contained in:
@ -1,4 +1,3 @@
|
||||
|
||||
<div class="sign-up-follow-up-container" onload="">
|
||||
<div class="sign-up-follow-up-content">
|
||||
<h1 class="sign-up-follow-up-prompt">Please select your region: </h1>
|
||||
@ -20,19 +19,30 @@
|
||||
</div>
|
||||
|
||||
<style>
|
||||
.sign-up-follow-up-prompt {
|
||||
color: black;
|
||||
}
|
||||
.logo-img {
|
||||
width: 500px;
|
||||
padding: 0;
|
||||
display: block;
|
||||
margin: 0 auto;
|
||||
max-height: 100%;
|
||||
max-width: 100%;
|
||||
}
|
||||
.logo-container {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
max-width: 100%;
|
||||
width: 100%;
|
||||
height: 20%;
|
||||
}
|
||||
.logo-itself {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
padding: 35px;
|
||||
width: 40%;
|
||||
}
|
||||
.region-container {
|
||||
border: none;
|
||||
@ -43,7 +53,7 @@
|
||||
}
|
||||
.info-group-option {
|
||||
text-transform: none;
|
||||
font-size: 20px;
|
||||
font-size: 25px;
|
||||
border-radius: 10px;
|
||||
background-color: black;
|
||||
color: white;
|
||||
@ -79,40 +89,5 @@
|
||||
|
||||
</style>
|
||||
<script>
|
||||
|
||||
let submitData = async () => {
|
||||
//if(
|
||||
// ($(".sign-up-region")[0].value.length > 0)
|
||||
// ){
|
||||
|
||||
function webhookCaller(){
|
||||
return new Promise(function(res, rej) {
|
||||
let xhr = new XMLHttpRequest();
|
||||
url = "https://webhooks.workato.com/webhooks/rest/a36b1f7c-07c7-48ff-bc0f-cb3777d02c81/blacklane-new-driver-region-seg";
|
||||
|
||||
xhr.addEventListener("load", e => {
|
||||
window.location.replace('/app/');
|
||||
//window.location.replace('/app');
|
||||
});
|
||||
xhr.open("POST", url, true);
|
||||
xhr.send(JSON.stringify({
|
||||
email: '{{ current_person.email }}',
|
||||
name: "{{ current_person.first_name }} {{ current_person.last_name }}",
|
||||
user_id: '{{ current_person.id }}',
|
||||
user_region: $(".sign-up-region")[0].value,
|
||||
}))
|
||||
})
|
||||
}
|
||||
|
||||
try {
|
||||
await webhookCaller()
|
||||
.then((res) => {
|
||||
window.location.replace('/app/dashboard')
|
||||
})
|
||||
} catch(err) {
|
||||
console.log(err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
localStorage.setItem("learnerCompletedAdditionalInfo", true);
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user