|
14 | 14 | function gtag(){dataLayer.push(arguments);} |
15 | 15 | gtag('js', new Date()); |
16 | 16 | gtag('config', 'G-MYCEY8S1MG'); |
17 | | - </script><!-- Google Ads --> |
18 | | - <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> |
19 | | - <script> |
20 | | - (adsbygoogle = window.adsbygoogle || []).push({ |
21 | | - google_ad_client: "ca-pub-7996505557003356", |
22 | | - enable_page_level_ads: true |
23 | | - }); |
24 | | - |
25 | | - // Define dataLayer and the gtag function. |
26 | | - window.dataLayer = window.dataLayer || []; |
27 | | - function gtag(){dataLayer.push(arguments);} |
28 | | - |
29 | | - // Set default consent to 'denied' |
30 | | - gtag('consent', 'default', { |
31 | | - 'ad_storage': 'denied', |
32 | | - 'ad_user_data': 'denied', |
33 | | - 'ad_personalization': 'denied', |
34 | | - 'analytics_storage': 'denied' |
35 | | - }); |
36 | | - </script> |
37 | | - <script> |
38 | | - // The way Google handles the element is that the height (with the ad) is fixed, |
39 | | - // appearing and disappearing is handled by making the bottom or top style negative |
40 | | - window.setInterval(function() { |
41 | | - var paddingBottom = 0; |
42 | | - var paddingTop = 0; |
43 | | - var headerPosition = "fixed"; |
44 | | - var ins = document.getElementsByTagName("ins"); |
45 | | - for (i of ins) { |
46 | | - if ( |
47 | | - i.className && i.className.indexOf("adsbygoogle") != -1 && |
48 | | - i.style && i.style.display == "block") { |
49 | | - if (i.style.bottom) { |
50 | | - var bottom = parseInt(i.style.bottom) |
51 | | - if (!isNaN(bottom)) { |
52 | | - var space = i.offsetHeight + bottom; |
53 | | - if (space < 0) { |
54 | | - space = 0; |
55 | | - } |
56 | | - paddingBottom = space; |
57 | | - } |
58 | | - } else if (i.style.top) { |
59 | | - var top = parseInt(i.style.top) |
60 | | - if (!isNaN(top)) { |
61 | | - var space = i.offsetHeight + top; |
62 | | - if (space < 0) { |
63 | | - space = 0; |
64 | | - } |
65 | | - paddingTop = space; |
66 | | - } |
67 | | - } |
68 | | - } |
69 | | - } |
70 | | - |
71 | | - document.getElementById("cargo-navigation").style.paddingBottom = paddingBottom + "px"; |
72 | | - document.getElementById("cargo-content").style.paddingBottom = paddingBottom + "px"; |
73 | | - document.getElementById("cargo-header").style.paddingTop = paddingTop + "px"; |
74 | | - document.getElementById("cargo-header-spacing").style.height = (83 + paddingTop) + "px"; |
75 | | - document.getElementById("cargo-header").style.position = headerPosition; |
76 | | - }, 100); |
77 | 17 | </script> |
78 | 18 | </head> |
79 | 19 | <body> |
|
0 commit comments