@mjhls/mjh-framework 1.0.355 → 1.0.356

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 CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
- # mjh-framework v. 1.0.355
2
+ # mjh-framework v. 1.0.356
3
3
 
4
4
 
5
5
  > Foundation Framework
package/dist/cjs/index.js CHANGED
@@ -2989,10 +2989,12 @@ var ADWelcome = function ADWelcome(_ref) {
2989
2989
  var checkIsAdFound = function checkIsAdFound(isFound) {
2990
2990
  if (isFound) {
2991
2991
  var parent = document.getElementById('welcome-modal');
2992
+ document.body.style.overflow = 'hidden';
2992
2993
  parent.style.display = 'block';
2993
2994
  calculateTimeLeft(counter + 1);
2994
2995
  } else {
2995
2996
  setFlag(true);
2997
+ document.body.style.overflow = 'auto';
2996
2998
  }
2997
2999
  };
2998
3000
 
@@ -3001,40 +3003,45 @@ var ADWelcome = function ADWelcome(_ref) {
3001
3003
  { style: { outline: 'none', display: 'none' }, className: 'welcome-modal', id: 'welcome-modal' },
3002
3004
  React__default.createElement(
3003
3005
  'div',
3004
- { className: 'right-top', style: { position: 'absolute', top: 0, right: 0, textAlign: 'center', margin: '2rem' } },
3006
+ { className: 'welcome-ad-head-wrapper' },
3005
3007
  React__default.createElement(
3006
- 'span',
3007
- {
3008
- className: 'continue-site',
3009
- style: {
3010
- fontSize: '1.2rem',
3011
- fontWeight: 'bold',
3012
- fontFamily: "'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'"
3013
- },
3014
- onClick: function onClick() {
3015
- setFlag(true);
3016
- } },
3017
- 'CONTINUE TO SITE >'
3008
+ 'div',
3009
+ { className: 'left-top' },
3010
+ React__default.createElement('img', { style: { width: '100%' }, src: Website.logo, alt: Website.title })
3018
3011
  ),
3019
3012
  React__default.createElement(
3020
- 'p',
3021
- {
3022
- style: {
3023
- fontSize: '0.8rem',
3024
- fontFamily: "'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'"
3025
- },
3026
- className: 'timer-block' },
3027
- 'OR WAIT ' + timeLeft + ' SECS'
3013
+ 'div',
3014
+ { className: 'right-top' },
3015
+ React__default.createElement(
3016
+ 'span',
3017
+ {
3018
+ className: 'continue-site',
3019
+ style: {
3020
+ fontSize: '1.2rem',
3021
+ fontWeight: 'bold',
3022
+ fontFamily: "'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'"
3023
+ },
3024
+ onClick: function onClick() {
3025
+ document.body.style.overflow = 'auto';
3026
+ setFlag(true);
3027
+ } },
3028
+ 'CONTINUE TO SITE >'
3029
+ ),
3030
+ React__default.createElement(
3031
+ 'p',
3032
+ {
3033
+ style: {
3034
+ fontSize: '0.8rem',
3035
+ fontFamily: "'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'"
3036
+ },
3037
+ className: 'timer-block' },
3038
+ 'OR WAIT ' + timeLeft + ' SECS'
3039
+ )
3028
3040
  )
3029
3041
  ),
3030
3042
  React__default.createElement(
3031
3043
  'div',
3032
- { className: 'left-top', style: { position: 'absolute', top: 0, left: 0, maxWidth: '200px', margin: '2rem' } },
3033
- React__default.createElement('img', { style: { width: '100%' }, src: Website.logo, alt: Website.title })
3034
- ),
3035
- React__default.createElement(
3036
- 'div',
3037
- { className: title, style: { position: 'relative', width: '300px', height: '250px', margin: 'auto', top: '10rem' } },
3044
+ { className: title },
3038
3045
  React__default.createElement(AdSlot.DFPAdSlot, {
3039
3046
  className: className,
3040
3047
  slotId: slotId,
@@ -3049,7 +3056,7 @@ var ADWelcome = function ADWelcome(_ref) {
3049
3056
  React__default.createElement(
3050
3057
  'style',
3051
3058
  { jsx: 'true' },
3052
- '\n .continue-site:hover {\n cursor: pointer;\n }\n\n .welcome-modal {\n max-width: 100% !important;\n margin: 0px !important;\n }\n '
3059
+ '\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 '
3053
3060
  )
3054
3061
  );
3055
3062
  };
package/dist/esm/index.js CHANGED
@@ -2986,10 +2986,12 @@ var ADWelcome = function ADWelcome(_ref) {
2986
2986
  var checkIsAdFound = function checkIsAdFound(isFound) {
2987
2987
  if (isFound) {
2988
2988
  var parent = document.getElementById('welcome-modal');
2989
+ document.body.style.overflow = 'hidden';
2989
2990
  parent.style.display = 'block';
2990
2991
  calculateTimeLeft(counter + 1);
2991
2992
  } else {
2992
2993
  setFlag(true);
2994
+ document.body.style.overflow = 'auto';
2993
2995
  }
2994
2996
  };
2995
2997
 
@@ -2998,40 +3000,45 @@ var ADWelcome = function ADWelcome(_ref) {
2998
3000
  { style: { outline: 'none', display: 'none' }, className: 'welcome-modal', id: 'welcome-modal' },
2999
3001
  React__default.createElement(
3000
3002
  'div',
3001
- { className: 'right-top', style: { position: 'absolute', top: 0, right: 0, textAlign: 'center', margin: '2rem' } },
3003
+ { className: 'welcome-ad-head-wrapper' },
3002
3004
  React__default.createElement(
3003
- 'span',
3004
- {
3005
- className: 'continue-site',
3006
- style: {
3007
- fontSize: '1.2rem',
3008
- fontWeight: 'bold',
3009
- fontFamily: "'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'"
3010
- },
3011
- onClick: function onClick() {
3012
- setFlag(true);
3013
- } },
3014
- 'CONTINUE TO SITE >'
3005
+ 'div',
3006
+ { className: 'left-top' },
3007
+ React__default.createElement('img', { style: { width: '100%' }, src: Website.logo, alt: Website.title })
3015
3008
  ),
3016
3009
  React__default.createElement(
3017
- 'p',
3018
- {
3019
- style: {
3020
- fontSize: '0.8rem',
3021
- fontFamily: "'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'"
3022
- },
3023
- className: 'timer-block' },
3024
- 'OR WAIT ' + timeLeft + ' SECS'
3010
+ 'div',
3011
+ { className: 'right-top' },
3012
+ React__default.createElement(
3013
+ 'span',
3014
+ {
3015
+ className: 'continue-site',
3016
+ style: {
3017
+ fontSize: '1.2rem',
3018
+ fontWeight: 'bold',
3019
+ fontFamily: "'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'"
3020
+ },
3021
+ onClick: function onClick() {
3022
+ document.body.style.overflow = 'auto';
3023
+ setFlag(true);
3024
+ } },
3025
+ 'CONTINUE TO SITE >'
3026
+ ),
3027
+ React__default.createElement(
3028
+ 'p',
3029
+ {
3030
+ style: {
3031
+ fontSize: '0.8rem',
3032
+ fontFamily: "'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'"
3033
+ },
3034
+ className: 'timer-block' },
3035
+ 'OR WAIT ' + timeLeft + ' SECS'
3036
+ )
3025
3037
  )
3026
3038
  ),
3027
3039
  React__default.createElement(
3028
3040
  'div',
3029
- { className: 'left-top', style: { position: 'absolute', top: 0, left: 0, maxWidth: '200px', margin: '2rem' } },
3030
- React__default.createElement('img', { style: { width: '100%' }, src: Website.logo, alt: Website.title })
3031
- ),
3032
- React__default.createElement(
3033
- 'div',
3034
- { className: title, style: { position: 'relative', width: '300px', height: '250px', margin: 'auto', top: '10rem' } },
3041
+ { className: title },
3035
3042
  React__default.createElement(DFPAdSlot, {
3036
3043
  className: className,
3037
3044
  slotId: slotId,
@@ -3046,7 +3053,7 @@ var ADWelcome = function ADWelcome(_ref) {
3046
3053
  React__default.createElement(
3047
3054
  'style',
3048
3055
  { jsx: 'true' },
3049
- '\n .continue-site:hover {\n cursor: pointer;\n }\n\n .welcome-modal {\n max-width: 100% !important;\n margin: 0px !important;\n }\n '
3056
+ '\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 '
3050
3057
  )
3051
3058
  );
3052
3059
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mjhls/mjh-framework",
3
- "version": "1.0.355",
3
+ "version": "1.0.356",
4
4
  "description": "Foundation Framework",
5
5
  "author": "mjh-framework",
6
6
  "license": "MIT",