Skip to content

Commit

Permalink
update dynamic share
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilPank authored and davidgrayston committed Aug 5, 2020
1 parent 5a54634 commit 2260136
Showing 1 changed file with 22 additions and 16 deletions.
38 changes: 22 additions & 16 deletions examples/profile/views/pages/dynamic-share.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,6 @@

<h1 class="yoti-top-header">Dynamic Share Example</h1>

<div class="yoti-sdk-integration-section">
<div id="yoti-share-button"></div>
</div>

<div class="yoti-login-or-separator">or</div>

<div class="yoti-login-dialog">
<h2 class="yoti-login-dialog-header">Login with your email:</h2>

Expand All @@ -39,6 +33,12 @@

<button class="yoti-login-button">login</button>
</div>
</div>

<div class="yoti-login-or-separator">or</div>

<div class="yoti-sdk-integration-section">
<div id="yoti-share-button"></div>
</div>
</section>

Expand All @@ -64,16 +64,22 @@
</main>
<script src="https://www.yoti.com/share/client/"></script>
<script>
window.Yoti.Share.init({
"elements": [{
"domId": "yoti-share-button",
"clientSdkId": "<%= yotiClientSdkId %>",
"shareUrl": "<%= yotiShareUrl %>",
"button": {
"label": "Use Yoti"
}
}]
});
window.Yoti.Share.init({
"elements": [
{
"domId": "yoti-share-button",
"clientSdkId": "<%= yotiClientSdkId %>",
"shareUrl": "<%= yotiShareUrl %>",
"button": {
"label": "Use Yoti",
"align": "center",
"width": "auto",
"verticalAlign": "top"
},
"type": "modal"
}
]
});
</script>
</body>

Expand Down

0 comments on commit 2260136

Please sign in to comment.