Skip to content

Commit fe3d7bf

Browse files
committed
small html fix and correcting frameAncestors link
1 parent 1661248 commit fe3d7bf

2 files changed

Lines changed: 33 additions & 29 deletions

File tree

app/eSignature/examples/eg044_focused_view.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def worker(cls, args):
6565
return_url=envelope_args["ds_return_url"],
6666
user_name=envelope_args["signer_name"],
6767
email=envelope_args["signer_email"],
68-
frame_ancestors=["https://localhost:3000", "https://apps-d.docusign.com"],
68+
frame_ancestors=["http://localhost:3000", "https://apps-d.docusign.com"],
6969
message_origins=["https://apps-d.docusign.com"]
7070
)
7171
#ds-snippet-end:eSign1Step4
Lines changed: 32 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,37 @@
11
<!-- extend base layout --> {% extends "base.html" %} {% block content %}
22

33
<br />
4-
<h2>Embedded document using focused view</h2>
4+
<h2>The document has been embedded with focused view.</h2>
55
<br />
66

7-
<div id="agreement"></div>
7+
<!--
8+
//ds-snippet-start:eSign44Step6
9+
-->
10+
11+
<!DOCTYPE html>
12+
<html>
13+
<head>
14+
<meta charset="utf-8" />
15+
<title>Signing</title>
16+
<style>
17+
html,
18+
body {
19+
padding: 0;
20+
margin: 0;
21+
font: 13px Helvetica, Arial, sans-serif;
22+
}
23+
24+
.docusign-agreement {
25+
width: 75%;
26+
height: 800px;
27+
}
28+
</style>
29+
</head>
30+
<body>
31+
<div class="docusign-agreement" id="agreement"></div>
32+
<script src="script.js"></script>
33+
</body>
34+
</html>
835

936
<p><a href="/">Continue</a></p>
1037

@@ -15,7 +42,6 @@ <h2>Embedded document using focused view</h2>
1542
const signing = docusign.signing({
1643
url: '{{ url }}',
1744
displayFormat: 'focused',
18-
//ds-snippet-start:eSign44Step6
1945
style: {
2046
/** High-level variables that mirror our existing branding APIs. Reusing the branding name here for familiarity. */
2147
branding: {
@@ -33,7 +59,6 @@ <h2>Embedded document using focused view</h2>
3359
position: 'bottom-center'
3460
}
3561
}
36-
//ds-snippet-end:eSign44Step6
3762
});
3863

3964
signing.on('ready', (event) => {
@@ -51,29 +76,8 @@ <h2>Embedded document using focused view</h2>
5176
// Any configuration or API limits will be caught here
5277
});</script>
5378

54-
<!DOCTYPE html>
55-
<html>
56-
<head>
57-
<meta charset="utf-8" />
58-
<title>Signing</title>
59-
<style>
60-
html,
61-
body {
62-
padding: 0;
63-
margin: 0;
64-
font: 13px Helvetica, Arial, sans-serif;
65-
}
66-
67-
.docusign-agreement {
68-
width: 50%;
69-
height: 1600px;
70-
}
71-
</style>
72-
</head>
73-
<body>
74-
<div class="docusign-agreement" id="docusign"></div>
75-
<script src="script.js"></script>
76-
</body>
77-
</html>
79+
<!--
80+
//ds-snippet-end:eSign44Step6
81+
-->
7882

7983
{% endblock %}

0 commit comments

Comments
 (0)