@mjhls/mjh-framework 1.0.486 → 1.0.487
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cjs/AD300x250.js +1 -1
- package/dist/cjs/AD300x250x600.js +20 -6
- package/dist/esm/AD300x250.js +1 -1
- package/dist/esm/AD300x250x600.js +20 -6
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/cjs/AD300x250.js
CHANGED
|
@@ -49,7 +49,7 @@ var AD300x250 = function AD300x250(_ref) {
|
|
|
49
49
|
};
|
|
50
50
|
|
|
51
51
|
var browserSizes = [[300, 250], [300, 100]];
|
|
52
|
-
var mobileSizes = [[300, 50][
|
|
52
|
+
var mobileSizes = [[300, 50], [320, 50], [300, 250], [300, 100]];
|
|
53
53
|
|
|
54
54
|
return React__default.createElement(AdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: adTargeting, className: 'AD300x250', sizes: mobileView ? mobileSizes : browserSizes });
|
|
55
55
|
};
|
|
@@ -31,10 +31,8 @@ var AD300x250x600 = function AD300x250x600(_ref) {
|
|
|
31
31
|
_ref$pos = _ref.pos,
|
|
32
32
|
pos = _ref$pos === undefined ? 'rec2' : _ref$pos;
|
|
33
33
|
|
|
34
|
-
var mobileView = false;
|
|
35
34
|
if (main.main_39) {
|
|
36
35
|
pos = 'rec2-mobile';
|
|
37
|
-
mobileView = true;
|
|
38
36
|
}
|
|
39
37
|
|
|
40
38
|
var adTargeting = {
|
|
@@ -48,10 +46,26 @@ var AD300x250x600 = function AD300x250x600(_ref) {
|
|
|
48
46
|
publication_url: targeting.publication_url
|
|
49
47
|
};
|
|
50
48
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
49
|
+
return React__default.createElement(AdSlot, {
|
|
50
|
+
networkID: networkID,
|
|
51
|
+
adUnit: adUnit,
|
|
52
|
+
className: 'AD300x250',
|
|
53
|
+
slotId: slotId,
|
|
54
|
+
targeting: adTargeting
|
|
55
|
+
// passing all possible sizes.
|
|
56
|
+
, sizes: ([300, 600])
|
|
57
|
+
// setting responsive sizemapping to make the ads responsive.
|
|
58
|
+
, sizeMapping: [{
|
|
59
|
+
viewport: [1200, 900],
|
|
60
|
+
sizes: [[300, 100], [300, 250], [300, 600]]
|
|
61
|
+
}, {
|
|
62
|
+
viewport: [1200, 1],
|
|
63
|
+
sizes: [[300, 100], [300, 250]]
|
|
64
|
+
}, {
|
|
65
|
+
viewport: [1, 1],
|
|
66
|
+
sizes: [[300, 50], [300, 100], [320, 50], [300, 250]]
|
|
67
|
+
}]
|
|
68
|
+
});
|
|
55
69
|
};
|
|
56
70
|
|
|
57
71
|
module.exports = AD300x250x600;
|
package/dist/esm/AD300x250.js
CHANGED
|
@@ -44,7 +44,7 @@ var AD300x250 = function AD300x250(_ref) {
|
|
|
44
44
|
};
|
|
45
45
|
|
|
46
46
|
var browserSizes = [[300, 250], [300, 100]];
|
|
47
|
-
var mobileSizes = [[300, 50][
|
|
47
|
+
var mobileSizes = [[300, 50], [320, 50], [300, 250], [300, 100]];
|
|
48
48
|
|
|
49
49
|
return React__default.createElement(DFPAdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: adTargeting, className: 'AD300x250', sizes: mobileView ? mobileSizes : browserSizes });
|
|
50
50
|
};
|
|
@@ -26,10 +26,8 @@ var AD300x250x600 = function AD300x250x600(_ref) {
|
|
|
26
26
|
_ref$pos = _ref.pos,
|
|
27
27
|
pos = _ref$pos === undefined ? 'rec2' : _ref$pos;
|
|
28
28
|
|
|
29
|
-
var mobileView = false;
|
|
30
29
|
if (main_39) {
|
|
31
30
|
pos = 'rec2-mobile';
|
|
32
|
-
mobileView = true;
|
|
33
31
|
}
|
|
34
32
|
|
|
35
33
|
var adTargeting = {
|
|
@@ -43,10 +41,26 @@ var AD300x250x600 = function AD300x250x600(_ref) {
|
|
|
43
41
|
publication_url: targeting.publication_url
|
|
44
42
|
};
|
|
45
43
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
44
|
+
return React__default.createElement(DFPAdSlot, {
|
|
45
|
+
networkID: networkID,
|
|
46
|
+
adUnit: adUnit,
|
|
47
|
+
className: 'AD300x250',
|
|
48
|
+
slotId: slotId,
|
|
49
|
+
targeting: adTargeting
|
|
50
|
+
// passing all possible sizes.
|
|
51
|
+
, sizes: ([300, 600])
|
|
52
|
+
// setting responsive sizemapping to make the ads responsive.
|
|
53
|
+
, sizeMapping: [{
|
|
54
|
+
viewport: [1200, 900],
|
|
55
|
+
sizes: [[300, 100], [300, 250], [300, 600]]
|
|
56
|
+
}, {
|
|
57
|
+
viewport: [1200, 1],
|
|
58
|
+
sizes: [[300, 100], [300, 250]]
|
|
59
|
+
}, {
|
|
60
|
+
viewport: [1, 1],
|
|
61
|
+
sizes: [[300, 50], [300, 100], [320, 50], [300, 250]]
|
|
62
|
+
}]
|
|
63
|
+
});
|
|
50
64
|
};
|
|
51
65
|
|
|
52
66
|
export default AD300x250x600;
|