Skip to content

Commit

Permalink
Integrate register form with IAS landing page
Browse files Browse the repository at this point in the history
  • Loading branch information
bensonpaul committed Mar 4, 2024
1 parent 5b1b729 commit a48aad8
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 9 deletions.
39 changes: 31 additions & 8 deletions layouts/section/individual-access-services.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"> */}}

{{/* <script type="text/javascript" src="//script.crazyegg.com/pages/scripts/0092/8173.js" async="async"></script> */}}
<script src="{{"js/vendor/jquery-2.1.1.min.js" | absURL}}"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
</head>

<body>
Expand Down Expand Up @@ -100,9 +102,12 @@ <h1>Medical records at your fingertips</h1>
<p style="font-size: 23px; line-height:34px;">A new three-way partnership between Unblock Health, Health Gorilla, and CLEAR&reg; brings Individual Access Services (IAS) one step closer to reality.</p>
<div class="slds-grid slds-wrap slds-gutters slds-m-bottom_medium">
<div class="slds-col slds-size_12-of-12 slds-medium-size_6-of-12">
<a href="/register"><button class="slds-button bg-btn-style" style="width:250px; margin:20px 0px 0px;">
<!--<a href="/register"><button id="start-free-account" class="slds-button bg-btn-style" style="width:250px; margin:20px 0px 0px;">
<span class="slds-text-heading_medium"><b>Start your<br> free account</b></span>
</button></a>
</button></a>-->
<button id="start-free-account" class="slds-button bg-btn-style" style="width:250px; margin:20px 0px 0px;">
<span class="slds-text-heading_medium"><b>Start your<br> free account</b></span>
</button>
</div>
</div>
</aside>
Expand Down Expand Up @@ -219,9 +224,9 @@ <h2 class="slds-text-align_center">How can you help move IAS forward?</h2>
<p>The more pressure we place on healthcare organizations to share medical records, the faster we’re likely to see enforcement begin.</p>
<div class="slds-grid slds-gutters">
<div class="slds-col">
<a href="/register"><button class="slds-button bg-btn-style" style="width:250px;">
<button id="free-account" class="slds-button bg-btn-style" style="width:250px;">
<span class="slds-text-heading_medium"><b>Start your<br> free account</b></span>
</button></a>
</button>
</div>
</div>
</div>
Expand Down Expand Up @@ -269,9 +274,9 @@ <h2 class="">
</div>
<div class="slds-col slds-size_8-of-8 slds-medium-size_2-of-8">
<div class="slds-col slds-size_12-of-12 slds-medium-size_6-of-12">
<a href="/register"><button class="slds-button bg-btn-style" style="width:250px;">
<button id="pat-register" class="slds-button bg-btn-style" style="width:250px;">
<span class="slds-text-heading_medium"><b>Start your<br> free account</b></span>
</button></a>
</button>
</div>
</div>
<div class="slds-col slds-size_8-of-8 slds-medium-size_1-of-8">
Expand All @@ -288,6 +293,24 @@ <h2 class="">
</div>
</div>
</article>

</body>
</html>
</html>
<script>
$(document).ready(function () {
$("#start-free-account").on("click", function () {
var selectedValue = 'PAT';
var url = '/register?option=' + selectedValue;
window.location.href = url;
});
$("#free-account").on("click", function () {
var selectedValue = 'PAT';
var url = '/register?option=' + selectedValue;
window.location.href = url;
});
$("#pat-register").on("click", function () {
var selectedValue = 'PAT';
var url = '/register?option=' + selectedValue;
window.location.href = url;
});
});
</script>
2 changes: 1 addition & 1 deletion static/js/main-new.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ var settings = {
"Content-Type": "application/json"
},
"data": JSON.stringify({
query: "mutation MyMutation {\r\n notifyUserRegistrationV1(input: {email: \"" + email + "\", name: \"" + first_name + "\", userType: \"" + patientdetails + "\"}) {\r\n requestApiResponse {\r\n data\r\n status {\r\n code\r\n message\r\n }\r\n success\r\n }\r\n }\r\n}",
query: "mutation MyMutation {\r\n notifyUserRegistrationV1(input: {name: \"" + first_name + "\", userType: \"" + patientdetails + "\", email: \"" + email + "\"}) {\r\n requestApiResponse {\r\n data\r\n status {\r\n code\r\n message\r\n }\r\n success\r\n }\r\n }\r\n}",
variables: {}
})
};
Expand Down

0 comments on commit a48aad8

Please sign in to comment.