PageSourceSearch

https://www.hzwei.info/modules/custom/verticals_ads/assets/js/google_ads_prepare.js?tlv7wr

js hzwei.info collected 2026-09-24 20:02:36 UTC 4,876 bytes, 118 lines download raw bytes

1var gptadslots = [];
2var googletag = googletag || { cmd: [] };
3
4if (drupalSettings.hasOwnProperty('verticals_ads')) {
5  var adCodes = drupalSettings.verticals_ads.adCodes;
6  var dfpCode = drupalSettings.verticals_ads.dfpCode;
7
8  googletag.cmd.push(function () {
9
10    var mapping1 = googletag.sizeMapping()
11      .addSize([800, 0], [[728, 90]])
12      .addSize([1339, 0], [[728, 90], [728, 91]])
13      .addSize([0, 0], []).build();
14
15    var mapping2 = googletag.sizeMapping()
16      .addSize([1862, 0], [[160, 600], [120, 600], [300, 600]])
17      .addSize([1582, 0], [[160, 600], [120, 600]])
18      .addSize([0, 0], [])
19      .build();
20
21    var mapping3 = googletag.sizeMapping()
22      .addSize([800, 0], [[300, 250]])
23      .addSize([0, 0], [])
24      .build();
25
26    var mapping4 = googletag.sizeMapping()
27      .addSize([0, 0], [])
28      .addSize([300, 0], [[300, 150], [300, 250]])
29      .addSize([500, 0], [[468, 60]])
30      .addSize([769, 0], [])
31      .addSize([820, 0], [[468, 60]])
32      .build();
33
34    var mapping5 = googletag.sizeMapping()
35      .addSize([980, 0], [[1, 1]])
36      .addSize([0, 0], [])
37      .build();
38
39    var mapping6 = googletag.sizeMapping()
40      .addSize([980, 0], [[940, 250]])
41      .addSize([0, 0], [])
42      .build();
43
44    //Adslot 1 declaration
45    gptadslots.push(googletag.defineSlot('/21679363686' + dfpCode, [[728, 90], [728, 91]], 'div-gpt-ad-' + adCodes.super_banner)
46      .defineSizeMapping(mapping1)
47      .addService(googletag.pubads()));
48
49    //Adslot 2 declaration
50    gptadslots.push(googletag.defineSlot('/21679363686' + dfpCode, [[160, 600], [120, 600]], 'div-gpt-ad-' + adCodes.skyscraper_left)
51      .setTargeting('pos', ['left'])
52      .defineSizeMapping(mapping2)
53      .addService(googletag.pubads()));
54
55    //Adslot 3 declaration
56    gptadslots.push(googletag.defineSlot('/21679363686' + dfpCode, [[160, 600], [120, 600], [160, 601]], 'div-gpt-ad-' + adCodes.skyscraper_right)
57      .setTargeting('pos', ['right'])
58      .defineSizeMapping(mapping2)
59      .addService(googletag.pubads()));
60    //Adslot 4 declaration
61    gptadslots.push(googletag.defineSlot('/21679363686' + dfpCode, [[300, 250]], 'div-gpt-ad-' + adCodes.medium_rectangle_1)
62      .setTargeting('pos', ['1'])
63      .defineSizeMapping(mapping3)
64      .addService(googletag.pubads()));
65    //Adslot 5 declaration
66    gptadslots.push(googletag.defineSlot('/21679363686' + dfpCode, [[300, 250]], 'div-gpt-ad-' + adCodes.medium_rectangle_2)
67      .setTargeting('pos', ['2'])
68      .defineSizeMapping(mapping3)
69      .addService(googletag.pubads()));
70    //Adslot 6 declaration
71    gptadslots.push(googletag.defineSlot('/21679363686' + dfpCode, [[300, 250]], 'div-gpt-ad-' + adCodes.medium_rectangle_3)
72      .setTargeting('pos', ['3'])
73      .defineSizeMapping(mapping3)
74      .addService(googletag.pubads()));
75    //Adslot 7 declaration
76    gptadslots.push(googletag.defineSlot('/21679363686' + dfpCode, [[468, 60], [300, 250], [300, 150]], 'div-gpt-ad-' + adCodes.full_banner)
77      .setTargeting('pos', ['4'])
78      .defineSizeMapping(mapping4)
79      .addService(googletag.pubads()));
80
81    // Two new Full Banners from #27207:
82    //Adslot 10 declaration
83    gptadslots.push(googletag.defineSlot('/21679363686' + dfpCode, [[468, 60], [300, 250], [300, 150]], 'div-gpt-ad-' + adCodes.full_banner_2)
84      .setTargeting('pos', ['5'])
85      .defineSizeMapping(mapping4)
86      .addService(googletag.pubads()));
87    //Adslot 11 declaration
88    gptadslots.push(googletag.defineSlot('/21679363686' + dfpCode, [[468, 60], [300, 250], [300, 150]], 'div-gpt-ad-' + adCodes.full_banner_3)
89      .setTargeting('pos', ['6'])
90      .defineSizeMapping(mapping4)
91      .addService(googletag.pubads()));
92
93    //Adslot 9 declaration
94    gptadslots.push(googletag.defineSlot('/21679363686' + dfpCode, [[940, 250]], 'div-gpt-ad-' + adCodes.billboard)
95      .defineSizeMapping(mapping6)
96      .addService(googletag.pubads()));
97
98    //Adslot 11 declaration – 1x1 Banderole
99    gptadslots.push(googletag.defineSlot('/21679363686' + dfpCode, [[1, 1]], 'div-gpt-ad-' + adCodes.banderole).defineSizeMapping(mapping5).addService(googletag.pubads()));
100
101    //Adslot 12 declaration
102    gptadslots.push(googletag.defineSlot('/21679363686' + dfpCode, [[160, 600], [120, 600]], 'div-gpt-ad-' + adCodes.skyscraper_left_2)
103      .setTargeting('pos', ['left1'])
104      .defineSizeMapping(mapping2)
105      .addService(googletag.pubads()));
106
107    //Adslot 13 declaration
108    gptadslots.push(googletag.defineSlot('/21679363686' + dfpCode, [[160, 600], [120, 600]], 'div-gpt-ad-' + adCodes.skyscraper_right_2)
109      .setTargeting('pos', ['right1'])
110      .defineSizeMapping(mapping2)
111      .addService(googletag.pubads()));
112
113    googletag.pubads().enableSingleRequest();
114    googletag.pubads().collapseEmptyDivs();
115    googletag.pubads().setCentering(true);
116    googletag.enableServices();
117  });
118}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.