@mjhls/mjh-framework 1.0.740 → 1.0.741
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/ADWelcome.js +54 -51
- package/dist/esm/ADWelcome.js +54 -51
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# mjh-framework v. 1.0.
|
|
1
|
+
# mjh-framework v. 1.0.741
|
|
2
2
|
[](https://www.npmjs.com/package/mjh-framework) [](https://standardjs.com)
|
|
3
3
|
|
|
4
4
|
## Install
|
package/dist/cjs/ADWelcome.js
CHANGED
|
@@ -88,66 +88,69 @@ var ADWelcome = function ADWelcome(_ref) {
|
|
|
88
88
|
}
|
|
89
89
|
});
|
|
90
90
|
|
|
91
|
-
return
|
|
92
|
-
|
|
93
|
-
{ style: { outline: 'none', display: 'block' }, className: 'welcome-modal', id: 'welcome-modal' },
|
|
91
|
+
return (
|
|
92
|
+
// Setting welcome ad to display:none and Setting to display:block after checking for cookie in site level.
|
|
94
93
|
React__default['default'].createElement(
|
|
95
94
|
'div',
|
|
96
|
-
{ className: 'welcome-
|
|
95
|
+
{ style: { outline: 'none', display: 'none' }, className: 'welcome-modal', id: 'welcome-modal' },
|
|
97
96
|
React__default['default'].createElement(
|
|
98
97
|
'div',
|
|
99
|
-
{ className: '
|
|
100
|
-
React__default['default'].createElement('img', { style: { width: '100%' }, src: Website.logo, alt: Website.title })
|
|
101
|
-
),
|
|
102
|
-
React__default['default'].createElement(
|
|
103
|
-
'div',
|
|
104
|
-
{ className: 'right-top' },
|
|
98
|
+
{ className: 'welcome-ad-head-wrapper' },
|
|
105
99
|
React__default['default'].createElement(
|
|
106
|
-
'
|
|
107
|
-
{
|
|
108
|
-
|
|
109
|
-
style: {
|
|
110
|
-
fontSize: '1.2rem',
|
|
111
|
-
fontWeight: 'bold',
|
|
112
|
-
fontFamily: "'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'"
|
|
113
|
-
},
|
|
114
|
-
onClick: function onClick() {
|
|
115
|
-
document.body.style.overflow = 'auto';
|
|
116
|
-
setFlag(true);
|
|
117
|
-
} },
|
|
118
|
-
'CONTINUE TO SITE >'
|
|
100
|
+
'div',
|
|
101
|
+
{ className: 'left-top' },
|
|
102
|
+
React__default['default'].createElement('img', { style: { width: '100%' }, src: Website.logo, alt: Website.title })
|
|
119
103
|
),
|
|
120
104
|
React__default['default'].createElement(
|
|
121
|
-
'
|
|
122
|
-
{
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
105
|
+
'div',
|
|
106
|
+
{ className: 'right-top' },
|
|
107
|
+
React__default['default'].createElement(
|
|
108
|
+
'span',
|
|
109
|
+
{
|
|
110
|
+
className: 'continue-site',
|
|
111
|
+
style: {
|
|
112
|
+
fontSize: '1.2rem',
|
|
113
|
+
fontWeight: 'bold',
|
|
114
|
+
fontFamily: "'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'"
|
|
115
|
+
},
|
|
116
|
+
onClick: function onClick() {
|
|
117
|
+
document.body.style.overflow = 'auto';
|
|
118
|
+
setFlag(true);
|
|
119
|
+
} },
|
|
120
|
+
'CONTINUE TO SITE >'
|
|
121
|
+
),
|
|
122
|
+
React__default['default'].createElement(
|
|
123
|
+
'p',
|
|
124
|
+
{
|
|
125
|
+
style: {
|
|
126
|
+
fontSize: '0.8rem',
|
|
127
|
+
fontFamily: "'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'"
|
|
128
|
+
},
|
|
129
|
+
className: 'timer-block' },
|
|
130
|
+
'OR WAIT ' + timeLeft + ' SECS'
|
|
131
|
+
)
|
|
129
132
|
)
|
|
133
|
+
),
|
|
134
|
+
React__default['default'].createElement(
|
|
135
|
+
'div',
|
|
136
|
+
{ className: title },
|
|
137
|
+
React__default['default'].createElement(AdSlot, {
|
|
138
|
+
className: className,
|
|
139
|
+
slotId: slotId,
|
|
140
|
+
networkID: networkID,
|
|
141
|
+
sizes: sizes,
|
|
142
|
+
adUnit: adUnit,
|
|
143
|
+
targeting: adTargeting,
|
|
144
|
+
refreshFlag: false
|
|
145
|
+
/* Passing function to check for ad creative only if it is not in preview. */
|
|
146
|
+
// checkIsAdFound={previewAd ? null : checkIsAdFound}
|
|
147
|
+
})
|
|
148
|
+
),
|
|
149
|
+
React__default['default'].createElement(
|
|
150
|
+
'style',
|
|
151
|
+
{ jsx: 'true' },
|
|
152
|
+
'\n .continue-site:hover {\n cursor: pointer;\n }\n\n .welcome-modal {\n max-width: 100% !important;\n margin: 0px !important;\n height: 100vh;\n }\n .welcome-ad-head-wrapper {\n display: flex;\n justify-content: space-between;\n }\n .right-top {\n max-width: 250px;\n padding: 10px;\n }\n .left-top {\n max-width: 250px;\n padding: 10px;\n }\n .' + title + ' {\n width: auto !important;\n padding-top: 25px;\n justify-content: center;\n align-items: center;\n display: flex;\n }\n /* setting height to 0px when the ad slot is empty. */\n .' + title + ' div[id*=\'google_ads_iframe\']:empty {\n height: 0px !important;\n }\n '
|
|
130
153
|
)
|
|
131
|
-
),
|
|
132
|
-
React__default['default'].createElement(
|
|
133
|
-
'div',
|
|
134
|
-
{ className: title },
|
|
135
|
-
React__default['default'].createElement(AdSlot, {
|
|
136
|
-
className: className,
|
|
137
|
-
slotId: slotId,
|
|
138
|
-
networkID: networkID,
|
|
139
|
-
sizes: sizes,
|
|
140
|
-
adUnit: adUnit,
|
|
141
|
-
targeting: adTargeting,
|
|
142
|
-
refreshFlag: false
|
|
143
|
-
/* Passing function to check for ad creative only if it is not in preview. */
|
|
144
|
-
// checkIsAdFound={previewAd ? null : checkIsAdFound}
|
|
145
|
-
})
|
|
146
|
-
),
|
|
147
|
-
React__default['default'].createElement(
|
|
148
|
-
'style',
|
|
149
|
-
{ jsx: 'true' },
|
|
150
|
-
'\n .continue-site:hover {\n cursor: pointer;\n }\n\n .welcome-modal {\n max-width: 100% !important;\n margin: 0px !important;\n height: 100vh;\n }\n .welcome-ad-head-wrapper {\n display: flex;\n justify-content: space-between;\n }\n .right-top {\n max-width: 250px;\n padding: 10px;\n }\n .left-top {\n max-width: 250px;\n padding: 10px;\n }\n .' + title + ' {\n width: auto !important;\n padding-top: 25px;\n justify-content: center;\n align-items: center;\n display: flex;\n }\n /* setting height to 0px when the ad slot is empty. */\n .' + title + ' div[id*=\'google_ads_iframe\']:empty {\n height: 0px !important;\n }\n '
|
|
151
154
|
)
|
|
152
155
|
);
|
|
153
156
|
};
|
package/dist/esm/ADWelcome.js
CHANGED
|
@@ -82,66 +82,69 @@ var ADWelcome = function ADWelcome(_ref) {
|
|
|
82
82
|
}
|
|
83
83
|
});
|
|
84
84
|
|
|
85
|
-
return
|
|
86
|
-
|
|
87
|
-
{ style: { outline: 'none', display: 'block' }, className: 'welcome-modal', id: 'welcome-modal' },
|
|
85
|
+
return (
|
|
86
|
+
// Setting welcome ad to display:none and Setting to display:block after checking for cookie in site level.
|
|
88
87
|
React.createElement(
|
|
89
88
|
'div',
|
|
90
|
-
{ className: 'welcome-
|
|
89
|
+
{ style: { outline: 'none', display: 'none' }, className: 'welcome-modal', id: 'welcome-modal' },
|
|
91
90
|
React.createElement(
|
|
92
91
|
'div',
|
|
93
|
-
{ className: '
|
|
94
|
-
React.createElement('img', { style: { width: '100%' }, src: Website.logo, alt: Website.title })
|
|
95
|
-
),
|
|
96
|
-
React.createElement(
|
|
97
|
-
'div',
|
|
98
|
-
{ className: 'right-top' },
|
|
92
|
+
{ className: 'welcome-ad-head-wrapper' },
|
|
99
93
|
React.createElement(
|
|
100
|
-
'
|
|
101
|
-
{
|
|
102
|
-
|
|
103
|
-
style: {
|
|
104
|
-
fontSize: '1.2rem',
|
|
105
|
-
fontWeight: 'bold',
|
|
106
|
-
fontFamily: "'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'"
|
|
107
|
-
},
|
|
108
|
-
onClick: function onClick() {
|
|
109
|
-
document.body.style.overflow = 'auto';
|
|
110
|
-
setFlag(true);
|
|
111
|
-
} },
|
|
112
|
-
'CONTINUE TO SITE >'
|
|
94
|
+
'div',
|
|
95
|
+
{ className: 'left-top' },
|
|
96
|
+
React.createElement('img', { style: { width: '100%' }, src: Website.logo, alt: Website.title })
|
|
113
97
|
),
|
|
114
98
|
React.createElement(
|
|
115
|
-
'
|
|
116
|
-
{
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
99
|
+
'div',
|
|
100
|
+
{ className: 'right-top' },
|
|
101
|
+
React.createElement(
|
|
102
|
+
'span',
|
|
103
|
+
{
|
|
104
|
+
className: 'continue-site',
|
|
105
|
+
style: {
|
|
106
|
+
fontSize: '1.2rem',
|
|
107
|
+
fontWeight: 'bold',
|
|
108
|
+
fontFamily: "'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'"
|
|
109
|
+
},
|
|
110
|
+
onClick: function onClick() {
|
|
111
|
+
document.body.style.overflow = 'auto';
|
|
112
|
+
setFlag(true);
|
|
113
|
+
} },
|
|
114
|
+
'CONTINUE TO SITE >'
|
|
115
|
+
),
|
|
116
|
+
React.createElement(
|
|
117
|
+
'p',
|
|
118
|
+
{
|
|
119
|
+
style: {
|
|
120
|
+
fontSize: '0.8rem',
|
|
121
|
+
fontFamily: "'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'"
|
|
122
|
+
},
|
|
123
|
+
className: 'timer-block' },
|
|
124
|
+
'OR WAIT ' + timeLeft + ' SECS'
|
|
125
|
+
)
|
|
123
126
|
)
|
|
127
|
+
),
|
|
128
|
+
React.createElement(
|
|
129
|
+
'div',
|
|
130
|
+
{ className: title },
|
|
131
|
+
React.createElement(DFPAdSlot, {
|
|
132
|
+
className: className,
|
|
133
|
+
slotId: slotId,
|
|
134
|
+
networkID: networkID,
|
|
135
|
+
sizes: sizes,
|
|
136
|
+
adUnit: adUnit,
|
|
137
|
+
targeting: adTargeting,
|
|
138
|
+
refreshFlag: false
|
|
139
|
+
/* Passing function to check for ad creative only if it is not in preview. */
|
|
140
|
+
// checkIsAdFound={previewAd ? null : checkIsAdFound}
|
|
141
|
+
})
|
|
142
|
+
),
|
|
143
|
+
React.createElement(
|
|
144
|
+
'style',
|
|
145
|
+
{ jsx: 'true' },
|
|
146
|
+
'\n .continue-site:hover {\n cursor: pointer;\n }\n\n .welcome-modal {\n max-width: 100% !important;\n margin: 0px !important;\n height: 100vh;\n }\n .welcome-ad-head-wrapper {\n display: flex;\n justify-content: space-between;\n }\n .right-top {\n max-width: 250px;\n padding: 10px;\n }\n .left-top {\n max-width: 250px;\n padding: 10px;\n }\n .' + title + ' {\n width: auto !important;\n padding-top: 25px;\n justify-content: center;\n align-items: center;\n display: flex;\n }\n /* setting height to 0px when the ad slot is empty. */\n .' + title + ' div[id*=\'google_ads_iframe\']:empty {\n height: 0px !important;\n }\n '
|
|
124
147
|
)
|
|
125
|
-
),
|
|
126
|
-
React.createElement(
|
|
127
|
-
'div',
|
|
128
|
-
{ className: title },
|
|
129
|
-
React.createElement(DFPAdSlot, {
|
|
130
|
-
className: className,
|
|
131
|
-
slotId: slotId,
|
|
132
|
-
networkID: networkID,
|
|
133
|
-
sizes: sizes,
|
|
134
|
-
adUnit: adUnit,
|
|
135
|
-
targeting: adTargeting,
|
|
136
|
-
refreshFlag: false
|
|
137
|
-
/* Passing function to check for ad creative only if it is not in preview. */
|
|
138
|
-
// checkIsAdFound={previewAd ? null : checkIsAdFound}
|
|
139
|
-
})
|
|
140
|
-
),
|
|
141
|
-
React.createElement(
|
|
142
|
-
'style',
|
|
143
|
-
{ jsx: 'true' },
|
|
144
|
-
'\n .continue-site:hover {\n cursor: pointer;\n }\n\n .welcome-modal {\n max-width: 100% !important;\n margin: 0px !important;\n height: 100vh;\n }\n .welcome-ad-head-wrapper {\n display: flex;\n justify-content: space-between;\n }\n .right-top {\n max-width: 250px;\n padding: 10px;\n }\n .left-top {\n max-width: 250px;\n padding: 10px;\n }\n .' + title + ' {\n width: auto !important;\n padding-top: 25px;\n justify-content: center;\n align-items: center;\n display: flex;\n }\n /* setting height to 0px when the ad slot is empty. */\n .' + title + ' div[id*=\'google_ads_iframe\']:empty {\n height: 0px !important;\n }\n '
|
|
145
148
|
)
|
|
146
149
|
);
|
|
147
150
|
};
|