Skip to content

Commit 29b8044

Browse files
committed
Add privacy library and footer
1 parent 808c48a commit 29b8044

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.storybook/manager-head.html

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
1+
<script src="https://consentdeliveryfd.azurefd.net/mscc/lib/v2/wcp-consent.js"></script>
12
<script src="https://az725175.vo.msecnd.net/scripts/jsll-4.js" type="text/javascript"></script>
23
<script type="text/javascript">
4+
function onConsentChanged(categoryPreferences) {
5+
console.log('onConsentChanged', categoryPreferences);
6+
}
7+
8+
WcpConsent.init(
9+
'en-US',
10+
'cookie-banner',
11+
function(err, _siteConsent) {
12+
if (err != undefined) {
13+
return error;
14+
} else {
15+
siteConsent = _siteConsent; //siteConsent is used to get the current consent
16+
}
17+
},
18+
onConsentChanged
19+
);
20+
321
var config = {
422
autoCapture: {
523
lineage: true
@@ -11,3 +29,29 @@
1129
awa.init(config);
1230
</script>
1331
<link rel="shortcut icon" type="image/png" href="/favicon.png" />
32+
<div id="cookie-banner"></div>
33+
<footer class="storybook-footer">
34+
Microsoft Graph Toolkit Playground was founded by Microsoft as a community guided, open source project.
35+
<a href="https://privacy.microsoft.com/en-us/privacystatement">Privacy & cookies</a>
36+
<a href="https://www.microsoft.com/en-us/legal/intellectualproperty/copyright/default">Term of use</a>
37+
</footer>
38+
<style>
39+
.storybook-footer {
40+
position: absolute;
41+
bottom: 0;
42+
font-size: 11px;
43+
padding: 10px;
44+
width: 100%;
45+
text-align: center;
46+
z-index: 9999;
47+
background-color: #f2f2f2;
48+
}
49+
50+
.storybook-footer a {
51+
color: #616161;
52+
}
53+
54+
.storybook-footer a:hover {
55+
color: #323232;
56+
}
57+
</style>

0 commit comments

Comments
 (0)