Skip to content

Commit 1b7add0

Browse files
authored
carbonads updates (#1139)
1 parent 68d4eb9 commit 1b7add0

File tree

3 files changed

+8
-11
lines changed

3 files changed

+8
-11
lines changed

BlazorBootstrap.Demo.RCL/Components/Shared/CarbonAds.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
<ScriptLoader Async="true"
66
Class="@Class"
77
ScriptId="_carbonads_js"
8-
Source="//cdn.carbonads.com/carbon.js?serve=CWYICKQU&placement=docsblazorbootstrapcom&format=cover" />
8+
Source="//cdn.carbonads.com/carbon.js?serve=CW7ILK7W&placement=docsblazorbootstrapcom&format=cover" />
99
}

BlazorBootstrap.Demo.RCL/wwwroot/css/blazorbootstrap.demo.rcl.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,10 @@ h1:focus-visible {
177177
background-color: transparent
178178
}
179179

180-
.bd-masthead #carbonads {
180+
/*.bd-masthead #carbonads {
181181
margin-right: auto;
182182
margin-left: auto
183-
}
183+
}*/
184184

185185
@media (min-width: 768px) {
186186
.bd-masthead .lead {
@@ -404,7 +404,7 @@ pre[class*=language-] {
404404
}
405405

406406
/* carbon ads */
407-
#carbonads {
407+
/*#carbonads {
408408
position: static;
409409
display: block;
410410
max-width: 400px;
@@ -437,7 +437,7 @@ pre[class*=language-] {
437437
display: block;
438438
margin-top: .75rem;
439439
color: var(--bs-body-color) !important
440-
}
440+
}*/
441441

442442
.bg-body-tertiary {
443443
--bs-bg-opacity: 1;

docs/src/js/carbon-ad.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ class CarbonAd extends Component {
55
super(props);
66

77
this.name = this.props.name || "docsblazorbootstrapcom";
8-
this.serve = this.props.serve || "CWYICKJI";
8+
this.serve = this.props.serve || "CW7ILK7W";
99
this.script = this.props.script || null;
1010
this.placement = this.props.placement || "";
11+
this.format = this.props.format || "cover";
1112
this.fallback = this.props.fallback || null;
1213
this.showFallback = false;
1314
}
@@ -20,11 +21,7 @@ class CarbonAd extends Component {
2021
script.async = true;
2122
script.id = this.script ? "" : "_carbonads_js";
2223
script.type = "text/javascript";
23-
script.src =
24-
this.script ||
25-
`//cdn.carbonads.com/carbon.js?serve=${this.serve}&placement=${
26-
this.placement
27-
}`;
24+
script.src = this.script || `//cdn.carbonads.com/carbon.js?serve=${this.serve}&placement=${this.placement}&format=${this.format}`;
2825
script.onerror = () => {
2926
this.showFallback = true;
3027
this.forceUpdate();

0 commit comments

Comments
 (0)