mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
chore(docs): add mandatory IBM instrumentation tags (#1988)
Co-authored-by: Jeff Chew <jeff.chew@gmail.com>
This commit is contained in:
parent
ba27830b2f
commit
ee70fbfa80
2 changed files with 49 additions and 1 deletions
|
@ -11,10 +11,47 @@
|
|||
|
||||
if (["white", "g10", "g80", "g90", "g100"].includes(theme)) {
|
||||
document.documentElement.setAttribute("theme", theme);
|
||||
document.documentElement.style.setProperty("color-scheme", ["white", "g10"].includes(theme) ? "light" : "dark");
|
||||
document.documentElement.style.setProperty(
|
||||
"color-scheme",
|
||||
["white", "g10"].includes(theme) ? "light" : "dark"
|
||||
);
|
||||
}
|
||||
} catch (e) {}
|
||||
</script>
|
||||
|
||||
<!-- Tealium/GA Set up -->
|
||||
<script type="text/javascript">
|
||||
window._ibmAnalytics = {
|
||||
settings: {
|
||||
name: "CarbonSvelte",
|
||||
isSpa: true,
|
||||
tealiumProfileName: "ibm-web-app",
|
||||
},
|
||||
onLoad: [["ibmStats.pageview", []]],
|
||||
};
|
||||
digitalData = {
|
||||
page: {
|
||||
pageInfo: {
|
||||
ibm: {
|
||||
siteId: "IBM_" + _ibmAnalytics.settings.name,
|
||||
},
|
||||
},
|
||||
category: {
|
||||
primaryCategory: "PC100",
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
<script
|
||||
type="module"
|
||||
async
|
||||
src="https://1.www.s81c.com/common/carbon-for-ibm-dotcom/tag/v1/latest/footer.min.js"
|
||||
></script>
|
||||
<script
|
||||
src="//1.www.s81c.com/common/stats/ibm-common.js"
|
||||
type="text/javascript"
|
||||
async
|
||||
></script>
|
||||
</head>
|
||||
<body>
|
||||
<script type="module" src="/src/index.js"></script>
|
||||
|
|
|
@ -312,7 +312,18 @@
|
|||
</Grid>
|
||||
</Content>
|
||||
|
||||
<footer>
|
||||
<dds-footer-container disable-locale-button="true" size="micro"
|
||||
></dds-footer-container>
|
||||
</footer>
|
||||
|
||||
<style>
|
||||
@media (min-width: 1056px) {
|
||||
footer {
|
||||
margin-left: 256px;
|
||||
}
|
||||
}
|
||||
|
||||
p {
|
||||
margin-bottom: var(--cds-spacing-05);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue