Skip to content

Commit 3577d9e

Browse files
committed
Add new Verifiable Credential views for example 4.
1 parent 34b9b92 commit 3577d9e

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

index.html

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
src="https://unpkg.com/browse/jquery/dist/jquery.min.js"></script>
1313
<script src='https://www.w3.org/Tools/respec/respec-w3c' class='remove'></script>
1414
<script src="./common.js" class="remove"></script>
15+
<script class="remove"
16+
src="https://cdn.jsdelivr.net/gh/digitalbazaar/[email protected]/dist/main.js"></script>
1517
<script type="text/javascript" class="remove">
1618
var respecConfig = {
1719
group: "vc",
@@ -46,7 +48,11 @@
4648
// Uncomment these to use the respec extension that generates a list of
4749
// normative statements:
4850
preProcess: [/*prepare_reqlist*/],
49-
postProcess: [/*add_reqlist_button*/, restrictRefs],
51+
postProcess: [
52+
restrictRefs,
53+
window.respecVc.createVcExamples
54+
/*add_reqlist_button*/
55+
],
5056

5157
github: "https://github.com/w3c/vc-data-model/",
5258
includePermalinks: false,
@@ -1191,7 +1197,8 @@ <h3>Identifiers</h3>
11911197
</dd>
11921198
</dl>
11931199

1194-
<pre class="example nohighlight" title="Usage of the id property">
1200+
<pre class="example nohighlight vc" title="Usage of the id property"
1201+
data-vc-verification-method="https://example.edu/issuers/565049/keys/1">
11951202
{
11961203
"@context": [
11971204
"https://www.w3.org/2018/credentials/v1",
@@ -1207,8 +1214,7 @@ <h3>Identifiers</h3>
12071214
"type": "BachelorDegree",
12081215
"name": "Bachelor of Science and Arts"
12091216
}
1210-
},
1211-
"proof": { <span class="comment">...</span> }
1217+
}
12121218
}
12131219
</pre>
12141220

0 commit comments

Comments
 (0)