diff --git a/BlazorBootstrap.Demo.RCL/Components/Shared/CarbonAds.razor b/BlazorBootstrap.Demo.RCL/Components/Shared/CarbonAds.razor index a49398ea0..8e3f7ba25 100644 --- a/BlazorBootstrap.Demo.RCL/Components/Shared/CarbonAds.razor +++ b/BlazorBootstrap.Demo.RCL/Components/Shared/CarbonAds.razor @@ -5,5 +5,5 @@ + Source="//cdn.carbonads.com/carbon.js?serve=CW7ILK7W&placement=docsblazorbootstrapcom&format=cover" /> } diff --git a/BlazorBootstrap.Demo.RCL/wwwroot/css/blazorbootstrap.demo.rcl.css b/BlazorBootstrap.Demo.RCL/wwwroot/css/blazorbootstrap.demo.rcl.css index bfde67c9d..f69fe503f 100644 --- a/BlazorBootstrap.Demo.RCL/wwwroot/css/blazorbootstrap.demo.rcl.css +++ b/BlazorBootstrap.Demo.RCL/wwwroot/css/blazorbootstrap.demo.rcl.css @@ -177,10 +177,10 @@ h1:focus-visible { background-color: transparent } -.bd-masthead #carbonads { +/*.bd-masthead #carbonads { margin-right: auto; margin-left: auto -} +}*/ @media (min-width: 768px) { .bd-masthead .lead { @@ -404,7 +404,7 @@ pre[class*=language-] { } /* carbon ads */ -#carbonads { +/*#carbonads { position: static; display: block; max-width: 400px; @@ -437,7 +437,7 @@ pre[class*=language-] { display: block; margin-top: .75rem; color: var(--bs-body-color) !important -} +}*/ .bg-body-tertiary { --bs-bg-opacity: 1; diff --git a/docs/src/js/carbon-ad.js b/docs/src/js/carbon-ad.js index b2c7af199..48d9783ef 100644 --- a/docs/src/js/carbon-ad.js +++ b/docs/src/js/carbon-ad.js @@ -5,9 +5,10 @@ class CarbonAd extends Component { super(props); this.name = this.props.name || "docsblazorbootstrapcom"; - this.serve = this.props.serve || "CWYICKJI"; + this.serve = this.props.serve || "CW7ILK7W"; this.script = this.props.script || null; this.placement = this.props.placement || ""; + this.format = this.props.format || "cover"; this.fallback = this.props.fallback || null; this.showFallback = false; } @@ -20,11 +21,7 @@ class CarbonAd extends Component { script.async = true; script.id = this.script ? "" : "_carbonads_js"; script.type = "text/javascript"; - script.src = - this.script || - `//cdn.carbonads.com/carbon.js?serve=${this.serve}&placement=${ - this.placement - }`; + script.src = this.script || `//cdn.carbonads.com/carbon.js?serve=${this.serve}&placement=${this.placement}&format=${this.format}`; script.onerror = () => { this.showFallback = true; this.forceUpdate();