|
1 | 1 | <!DOCTYPE html> |
2 | 2 | <html lang="{{ .Site.LanguageCode }}"> |
3 | 3 |
|
4 | | -<head> |
| 4 | +<head> |
5 | 5 | <style> |
6 | 6 | body { |
7 | 7 | /* Hide entire body for first paint. This suppresses flicker when theme is loading. */ |
|
11 | 11 | flex-direction: column; |
12 | 12 | } |
13 | 13 | </style> |
14 | | - |
| 14 | + |
15 | 15 | <noscript> |
16 | 16 | <style> |
17 | 17 | /* Styles when JavaScript is disabled. Fallsback to old theme. */ |
|
20 | 20 | } |
21 | 21 | </style> |
22 | 22 | </noscript> |
23 | | - |
| 23 | + |
24 | 24 |
|
25 | 25 |
|
26 | 26 | <script> |
|
56 | 56 | } |
57 | 57 | }); |
58 | 58 |
|
59 | | - // swap out v1 and v2 elements |
60 | | - const v1ElementIds = ["sidebar", "footer", "toc", "api", "search-v1", "breadcrumb-v1", "list-v1"] |
61 | | - |
62 | | - v1ElementIds.forEach((elementId) => { |
63 | | - const element = document.getElementById(elementId); |
64 | | - if (element !== null) { |
65 | | - element.style.display = isNewTheme ? "none" : ""; |
66 | | - } |
67 | | - |
68 | | - const trustarc = document.getElementById("teconsent-v1"); |
69 | | - if (trustarc) { |
70 | | - trustarc.id = isNewTheme ? "teconsent-v1" : "teconsent"; |
71 | | - } |
72 | | - }); |
73 | 59 |
|
74 | 60 | document.querySelectorAll(".table-v1").forEach((table) => { |
75 | 61 | table.style.display = isNewTheme ? "none" : ""; |
76 | 62 | }); |
77 | 63 |
|
78 | | - const notMfElements = ['[data-mf="false"]']; |
79 | | - notMfElements.forEach((elementId) => { |
80 | | - document.querySelectorAll(elementId).forEach((element) => { |
81 | | - element.style.display = isNewTheme ? "none" : ""; |
82 | | - }); |
83 | | - }) |
84 | | - |
85 | | - const mfElements = ['[data-mf="true"]']; |
86 | | - mfElements.forEach((elementId) => { |
87 | | - document.querySelectorAll(elementId).forEach((element) => { |
88 | | - element.style.display = isNewTheme ? "" : "none"; |
89 | | - |
90 | | - const trustarc = document.getElementById("teconsent-v2"); |
91 | | - if (trustarc) { |
92 | | - trustarc.id = isNewTheme ? "teconsent" : "teconsent-v2"; |
93 | | - } |
94 | | - }); |
95 | | - }); |
96 | | - |
97 | 64 | document.getElementById("body").style.visibility = "visible"; |
98 | 65 | }; |
99 | 66 |
|
|
131 | 98 | {{ block "head" . }} |
132 | 99 |
|
133 | 100 | {{ partial "meta.html" . }} |
134 | | - |
| 101 | + |
135 | 102 | {{ partial "favicon.html" . }} |
136 | | - |
| 103 | + |
137 | 104 | {{ partial "styles.html" . }} |
138 | | - |
| 105 | + |
139 | 106 | {{ if in .Params.doctypes "devportal" }} |
140 | 107 | {{ partial "devportal/style.html" . }} |
141 | 108 | {{ end }} |
142 | | - |
| 109 | + |
143 | 110 | {{ if fileExists "/layouts/partials/head_custom.html" }} |
144 | 111 | {{ partial "head_custom.html" . }} |
145 | 112 | {{ end }} |
146 | | - |
| 113 | + |
147 | 114 | {{ if or ( not hugo.IsServer ) ( not ( in .Site.Params.buildtype "package" ) ) }} |
148 | | - |
| 115 | + |
149 | 116 | {{ partial "trustarc.html" . }} |
150 | | - |
| 117 | + |
151 | 118 | {{ partial "tealium-profile.html" . }} |
152 | | - |
| 119 | + |
153 | 120 | {{ end }} |
154 | | - |
| 121 | + |
155 | 122 | {{ end }} |
156 | | - |
| 123 | + |
157 | 124 | <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': |
158 | 125 | new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], |
159 | 126 | j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= |
160 | 127 | 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); |
161 | 128 | })(window,document,'script','dataLayer','GTM-K5HG9JT');</script> |
162 | | - |
| 129 | + |
163 | 130 | </head> |
164 | | - |
| 131 | + |
165 | 132 | <body id="body"> |
166 | 133 | {{ if or ( not hugo.IsServer ) ( not ( in .Site.Params.buildtype "package" ) ) }} |
167 | 134 | {{ partial "universal-tag.html" . }} |
168 | 135 | {{ end }} |
169 | | - |
| 136 | + |
170 | 137 | <header> |
171 | 138 | {{ block "header" . }}{{end}} |
172 | 139 | </header> |
173 | | - |
| 140 | + |
174 | 141 | <section class="base-layout" data-testid="base-layout"> |
175 | | - <section id="breadcrumb-v1"> |
| 142 | + <section id="breadcrumb-v1" data-mf="false"> |
176 | 143 | {{ if not .IsHome }} |
177 | 144 | {{ if not (in .Params.display_breadcrumb "false" ) }} |
178 | | - {{ partial "breadcrumb" .}} |
| 145 | + {{ partial "breadcrumb" .}} |
179 | 146 | {{ end }} |
180 | 147 | {{ end }} |
181 | 148 | </section> |
182 | | - |
| 149 | + |
183 | 150 | <div class="main container-fluid min-page-height" data-menu-id="{{.RelPermalink}}"> |
184 | 151 | {{ block "main" . }}{{ end }} |
185 | 152 | </div> |
186 | 153 | </section> |
187 | 154 |
|
188 | | - <footer id="footer"> |
| 155 | + <footer id="footer" data-mf="false"> |
189 | 156 | {{ block "footer" . }} |
190 | 157 | {{ partial "footer.html" . }} |
191 | 158 | {{ end }} |
|
196 | 163 | {{ partial "footer-v2.html" . }} |
197 | 164 | {{ end }} |
198 | 165 | </footer> |
199 | | - {{ partial "scripts.html" . }} |
| 166 | + {{ partial "scripts.html" . }} |
200 | 167 | <div id="consent_blackbar"></div> |
201 | 168 | </body> |
202 | 169 | </html> |
0 commit comments