Skip to content

Commit 40616e0

Browse files
authored
Merge pull request #100 from IABTechLab/syw-uid2-3925-uid2-cstg-example-improvement
port EUID CSTG Example website to UID2 so that 'has opted out' is shown
2 parents f51a19a + c2cdb40 commit 40616e0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

examples/cstg/html/index.html

+7
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929
$('#login_required').text(
3030
sdk.isLoginRequired() || sdk.isLoginRequired() === undefined ? 'yes' : 'no'
3131
);
32+
$(`#has_opted_out`).text(
33+
sdk.hasOptedOut() ? 'yes' : 'no'
34+
);
3235
$('#update_counter').text(callbackCounter);
3336
$('#identity_state').text(String(JSON.stringify(state, null, 2)));
3437

@@ -109,6 +112,10 @@ <h1>UID2 Publisher Client-Side Integration Example using UID2 JavaScript SDK</h1
109112
<td class="label">Is Login Required?</td>
110113
<td class="value"><pre id="login_required"></pre></td>
111114
</tr>
115+
<tr>
116+
<td class="label">Has opted out?</td>
117+
<td class="value"><pre id="has_opted_out"></pre></td>
118+
</tr>
112119
<tr>
113120
<td class="label">Identity Updated Counter:</td>
114121
<td class="value"><pre id="update_counter"></pre></td>

0 commit comments

Comments
 (0)