File tree Expand file tree Collapse file tree 3 files changed +8
-11
lines changed Expand file tree Collapse file tree 3 files changed +8
-11
lines changed Original file line number Diff line number Diff line change 5
5
<ScriptLoader Async =" true"
6
6
Class =" @Class"
7
7
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" />
9
9
}
Original file line number Diff line number Diff line change @@ -177,10 +177,10 @@ h1:focus-visible {
177
177
background-color : transparent
178
178
}
179
179
180
- .bd-masthead # carbonads {
180
+ /* .bd-masthead #carbonads {
181
181
margin-right: auto;
182
182
margin-left: auto
183
- }
183
+ }*/
184
184
185
185
@media (min-width : 768px ) {
186
186
.bd-masthead .lead {
@@ -404,7 +404,7 @@ pre[class*=language-] {
404
404
}
405
405
406
406
/* carbon ads */
407
- # carbonads {
407
+ /* #carbonads {
408
408
position: static;
409
409
display: block;
410
410
max-width: 400px;
@@ -437,7 +437,7 @@ pre[class*=language-] {
437
437
display: block;
438
438
margin-top: .75rem;
439
439
color: var(--bs-body-color) !important
440
- }
440
+ }*/
441
441
442
442
.bg-body-tertiary {
443
443
--bs-bg-opacity : 1 ;
Original file line number Diff line number Diff line change @@ -5,9 +5,10 @@ class CarbonAd extends Component {
5
5
super ( props ) ;
6
6
7
7
this . name = this . props . name || "docsblazorbootstrapcom" ;
8
- this . serve = this . props . serve || "CWYICKJI " ;
8
+ this . serve = this . props . serve || "CW7ILK7W " ;
9
9
this . script = this . props . script || null ;
10
10
this . placement = this . props . placement || "" ;
11
+ this . format = this . props . format || "cover" ;
11
12
this . fallback = this . props . fallback || null ;
12
13
this . showFallback = false ;
13
14
}
@@ -20,11 +21,7 @@ class CarbonAd extends Component {
20
21
script . async = true ;
21
22
script . id = this . script ? "" : "_carbonads_js" ;
22
23
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 } ` ;
28
25
script . onerror = ( ) => {
29
26
this . showFallback = true ;
30
27
this . forceUpdate ( ) ;
You can’t perform that action at this time.
0 commit comments