Skip to content

Commit 89a3611

Browse files
committed
IMPORT jquery updates.
1 parent a4ccd8c commit 89a3611

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

jquery/header.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<!--[if IE 8 ]> <html class="no-js ie ie8 lte8 lte9" <?php language_attributes(); ?>> <![endif]-->
44
<!--[if IE 9 ]> <html class="no-js ie ie9 lte9>" <?php language_attributes(); ?>> <![endif]-->
55
<!--[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; ?>">
77
<meta charset="utf-8">
88
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
99

jquery/js/main.js

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,28 @@ $(function() {
2828

2929
// Banner ads
3030
(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+
3150
window.ados = {
3251
run: [function() {
33-
ados_add_placement( 5449, 32018, "broadcast", 1314 );
52+
ados_add_placement( 5449, siteId, "broadcast", 1314 );
3453
ados_load();
3554
}]
3655
};

0 commit comments

Comments
 (0)