@mjhls/mjh-framework 1.0.355 → 1.0.357

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