File tree Expand file tree Collapse file tree 2 files changed +21
-2
lines changed Expand file tree Collapse file tree 2 files changed +21
-2
lines changed Original file line number Diff line number Diff line change 3
3
<!--[if IE 8 ]> <html class="no-js ie ie8 lte8 lte9" <?php language_attributes (); ?> > <![endif]-->
4
4
<!--[if IE 9 ]> <html class="no-js ie ie9 lte9>" <?php language_attributes (); ?> > <![endif]-->
5
5
<!--[if (gt IE 9)|!(IE)]><!--> <html class="no-js" <?php language_attributes (); ?> > <!--<![endif]-->
6
- <head>
6
+ <head data-live-domain=" <?php echo JQUERY_LIVE_DOMAIN ; ?> " >
7
7
<meta charset="utf-8">
8
8
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
9
9
Original file line number Diff line number Diff line change @@ -28,9 +28,28 @@ $(function() {
28
28
29
29
// Banner ads
30
30
( function ( ) {
31
+
32
+ // Default site id
33
+ var siteId = 53829 ,
34
+
35
+ // Sites can contain two properties: all and homepage
36
+ site = ( {
37
+ "jquery.com" : {
38
+ homepage : 32018
39
+ }
40
+ } ) [ $ ( "head" ) . attr ( "data-live-domain" ) ] ;
41
+
42
+ if ( site ) {
43
+ if ( location . pathname === "/" && site . homepage ) {
44
+ siteId = site . homepage ;
45
+ } else if ( site . all ) {
46
+ siteId = site . all ;
47
+ }
48
+ }
49
+
31
50
window . ados = {
32
51
run : [ function ( ) {
33
- ados_add_placement ( 5449 , 32018 , "broadcast" , 1314 ) ;
52
+ ados_add_placement ( 5449 , siteId , "broadcast" , 1314 ) ;
34
53
ados_load ( ) ;
35
54
} ]
36
55
} ;
You can’t perform that action at this time.
0 commit comments