VK All in One Expansion Unit - Version 9.68.4.0

Version Description

  • [ Bug fix ][ smooth scroll ] fix scroll top position on admin bar
Download this release

Release Info

Developer kurudrive
Plugin Icon 128x128 VK All in One Expansion Unit
Version 9.68.4.0
Comparing to
See all releases

Code changes from version 9.68.3.0 to 9.68.4.0

inc/smooth-scroll/js/smooth-scroll.js CHANGED
@@ -35,7 +35,7 @@
35
  y = destination.getBoundingClientRect().top + scroll
36
  }
37
 
38
- // G3 の場合要の補正
39
  // * header_scrolled の方が適切だが、クリック時に header_scrolled が消えて判定に使えないため
40
  if ( document.body.classList.contains('scrolled') == true ) {
41
  // ヘッダーを取得
@@ -49,8 +49,15 @@
49
  }
50
  }
51
 
 
 
 
 
 
 
 
52
  window.scrollTo({
53
- top: y,
54
  behavior: 'smooth'
55
  })
56
  e.preventDefault()
35
  y = destination.getBoundingClientRect().top + scroll
36
  }
37
 
38
+ // G3 の場合用の補正
39
  // * header_scrolled の方が適切だが、クリック時に header_scrolled が消えて判定に使えないため
40
  if ( document.body.classList.contains('scrolled') == true ) {
41
  // ヘッダーを取得
49
  }
50
  }
51
 
52
+ // Adminbar adjustment
53
+ let adminbar = document.getElementById('wpadminbar');
54
+ let adminbarHeight = 0;
55
+ if (adminbar){
56
+ adminbarHeight = adminbar.clientHeight;
57
+ }
58
+
59
  window.scrollTo({
60
+ top: y - adminbarHeight,
61
  behavior: 'smooth'
62
  })
63
  e.preventDefault()
inc/smooth-scroll/js/smooth-scroll.min.js CHANGED
@@ -1 +1 @@
1
- "use strict";function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function polyfill(){var t,l,c,s,e,o,f=window,a=document;function p(t,o){this.scrollLeft=t,this.scrollTop=o}function r(t){if(null===t||"object"!==_typeof(t)||void 0===t.behavior||"auto"===t.behavior||"instant"===t.behavior)return!0;if("object"===_typeof(t)&&"smooth"===t.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+t.behavior+" is not a valid value for enumeration ScrollBehavior.")}function i(t,o){return"Y"===o?t.clientHeight+e<t.scrollHeight:"X"===o?t.clientWidth+e<t.scrollWidth:void 0}function n(t,o){o=f.getComputedStyle(t,null)["overflow"+o];return"auto"===o||"scroll"===o}function d(t){for(;t!==a.body&&!1===(e=void 0,e=i(o=t,"Y")&&n(o,"Y"),o=i(o,"X")&&n(o,"X"),e||o);)t=t.parentNode||t.host;var o,e;return t}function u(t){var o,e=(s()-t.startTime)/l;o=e=1<e?1:e,e=.5*(1-Math.cos(Math.PI*o)),o=t.startX+(t.x-t.startX)*e,e=t.startY+(t.y-t.startY)*e,t.method.call(t.scrollable,o,e),o===t.x&&e===t.y||f.requestAnimationFrame(u.bind(f,t))}function h(t,o,e){var l,r,i,n=s(),t=t===a.body?(r=(l=f).scrollX||f.pageXOffset,i=f.scrollY||f.pageYOffset,c.scroll):(r=(l=t).scrollLeft,i=t.scrollTop,p);u({scrollable:l,method:t,startTime:n,startX:r,startY:i,x:o,y:e})}"scrollBehavior"in a.documentElement.style&&!0!==f.__forceSmoothScrollPolyfill__||(t=f.HTMLElement||f.Element,l=468,c={scroll:f.scroll||f.scrollTo,scrollBy:f.scrollBy,elementScroll:t.prototype.scroll||p,scrollIntoView:t.prototype.scrollIntoView},s=f.performance&&f.performance.now?f.performance.now.bind(f.performance):Date.now,o=f.navigator.userAgent,e=new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(o)?1:0,f.scroll=f.scrollTo=function(){void 0!==arguments[0]&&(!0!==r(arguments[0])?h.call(f,a.body,void 0!==arguments[0].left?~~arguments[0].left:f.scrollX||f.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:f.scrollY||f.pageYOffset):c.scroll.call(f,void 0!==arguments[0].left?arguments[0].left:"object"!==_typeof(arguments[0])?arguments[0]:f.scrollX||f.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:f.scrollY||f.pageYOffset))},f.scrollBy=function(){void 0!==arguments[0]&&(r(arguments[0])?c.scrollBy.call(f,void 0!==arguments[0].left?arguments[0].left:"object"!==_typeof(arguments[0])?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):h.call(f,a.body,~~arguments[0].left+(f.scrollX||f.pageXOffset),~~arguments[0].top+(f.scrollY||f.pageYOffset)))},t.prototype.scroll=t.prototype.scrollTo=function(){if(void 0!==arguments[0])if(!0!==r(arguments[0])){var t=arguments[0].left,o=arguments[0].top;h.call(this,this,void 0===t?this.scrollLeft:~~t,void 0===o?this.scrollTop:~~o)}else{if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");c.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!==_typeof(arguments[0])?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop)}},t.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0!==r(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):c.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop))},t.prototype.scrollIntoView=function(){var t,o,e;!0!==r(arguments[0])?(o=(t=d(this)).getBoundingClientRect(),e=this.getBoundingClientRect(),t!==a.body?(h.call(this,t,t.scrollLeft+e.left-o.left,t.scrollTop+e.top-o.top),"fixed"!==f.getComputedStyle(t).position&&f.scrollBy({left:o.left,top:o.top,behavior:"smooth"})):f.scrollBy({left:e.left,top:e.top,behavior:"smooth"})):c.scrollIntoView.call(this,void 0===arguments[0]||arguments[0])})}!function(n,c){n.addEventListener("load",function(){function e(t){for(var o=t.path||t.composedPath&&t.composedPath(),e=0;e<o.length&&!o[e].getAttribute("href");e++);var l,r=o[e].getAttribute("href");if(r&&!(0<["tab"].indexOf(o[e].getAttribute("role")))&&"#top__fullcarousel"!==o[e].getAttribute("href")){if(0<["button"].indexOf(o[e].getAttribute("role"))){var i=t.getAttribute("href");if(0==i.indexOf("#")&&"#"===i)return}o[e].getAttribute("data-toggle")||o[e].getAttribute("carousel-control")||(i=0,(r=c.getElementById(r.slice(1)))&&(l=n.pageYOffset||c.documentElement.scrollTop,i=r.getBoundingClientRect().top+l),1==c.body.classList.contains("scrolled")&&(!(l=c.getElementById("site-header"))||(l=l.clientHeight)&&(i-=l)),n.scrollTo({top:i,behavior:"smooth"}),t.preventDefault())}}Array.prototype.forEach.call(c.getElementsByTagName("a"),function(t){var o=t.getAttribute("href");o&&0==o.indexOf("#")&&"#"!==o&&t.addEventListener("click",e)})})}(window,document),"object"===("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module?module.exports={polyfill:polyfill}:polyfill();
1
+ "use strict";function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function polyfill(){var t,l,c,s,e,o,f=window,a=document;function p(t,o){this.scrollLeft=t,this.scrollTop=o}function r(t){if(null===t||"object"!==_typeof(t)||void 0===t.behavior||"auto"===t.behavior||"instant"===t.behavior)return!0;if("object"===_typeof(t)&&"smooth"===t.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+t.behavior+" is not a valid value for enumeration ScrollBehavior.")}function i(t,o){return"Y"===o?t.clientHeight+e<t.scrollHeight:"X"===o?t.clientWidth+e<t.scrollWidth:void 0}function n(t,o){o=f.getComputedStyle(t,null)["overflow"+o];return"auto"===o||"scroll"===o}function d(t){for(;t!==a.body&&!1===(e=void 0,e=i(o=t,"Y")&&n(o,"Y"),o=i(o,"X")&&n(o,"X"),e||o);)t=t.parentNode||t.host;var o,e;return t}function u(t){var o,e=(s()-t.startTime)/l;o=e=1<e?1:e,e=.5*(1-Math.cos(Math.PI*o)),o=t.startX+(t.x-t.startX)*e,e=t.startY+(t.y-t.startY)*e,t.method.call(t.scrollable,o,e),o===t.x&&e===t.y||f.requestAnimationFrame(u.bind(f,t))}function h(t,o,e){var l,r,i,n=s(),t=t===a.body?(r=(l=f).scrollX||f.pageXOffset,i=f.scrollY||f.pageYOffset,c.scroll):(r=(l=t).scrollLeft,i=t.scrollTop,p);u({scrollable:l,method:t,startTime:n,startX:r,startY:i,x:o,y:e})}"scrollBehavior"in a.documentElement.style&&!0!==f.__forceSmoothScrollPolyfill__||(t=f.HTMLElement||f.Element,l=468,c={scroll:f.scroll||f.scrollTo,scrollBy:f.scrollBy,elementScroll:t.prototype.scroll||p,scrollIntoView:t.prototype.scrollIntoView},s=f.performance&&f.performance.now?f.performance.now.bind(f.performance):Date.now,o=f.navigator.userAgent,e=new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(o)?1:0,f.scroll=f.scrollTo=function(){void 0!==arguments[0]&&(!0!==r(arguments[0])?h.call(f,a.body,void 0!==arguments[0].left?~~arguments[0].left:f.scrollX||f.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:f.scrollY||f.pageYOffset):c.scroll.call(f,void 0!==arguments[0].left?arguments[0].left:"object"!==_typeof(arguments[0])?arguments[0]:f.scrollX||f.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:f.scrollY||f.pageYOffset))},f.scrollBy=function(){void 0!==arguments[0]&&(r(arguments[0])?c.scrollBy.call(f,void 0!==arguments[0].left?arguments[0].left:"object"!==_typeof(arguments[0])?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):h.call(f,a.body,~~arguments[0].left+(f.scrollX||f.pageXOffset),~~arguments[0].top+(f.scrollY||f.pageYOffset)))},t.prototype.scroll=t.prototype.scrollTo=function(){if(void 0!==arguments[0])if(!0!==r(arguments[0])){var t=arguments[0].left,o=arguments[0].top;h.call(this,this,void 0===t?this.scrollLeft:~~t,void 0===o?this.scrollTop:~~o)}else{if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");c.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!==_typeof(arguments[0])?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop)}},t.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0!==r(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):c.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop))},t.prototype.scrollIntoView=function(){var t,o,e;!0!==r(arguments[0])?(o=(t=d(this)).getBoundingClientRect(),e=this.getBoundingClientRect(),t!==a.body?(h.call(this,t,t.scrollLeft+e.left-o.left,t.scrollTop+e.top-o.top),"fixed"!==f.getComputedStyle(t).position&&f.scrollBy({left:o.left,top:o.top,behavior:"smooth"})):f.scrollBy({left:e.left,top:e.top,behavior:"smooth"})):c.scrollIntoView.call(this,void 0===arguments[0]||arguments[0])})}!function(s,f){s.addEventListener("load",function(){function e(t){for(var o=t.path||t.composedPath&&t.composedPath(),e=0;e<o.length&&!o[e].getAttribute("href");e++);var l,r,i,n=o[e].getAttribute("href");if(n&&!(0<["tab"].indexOf(o[e].getAttribute("role")))&&"#top__fullcarousel"!==o[e].getAttribute("href")){if(0<["button"].indexOf(o[e].getAttribute("role"))){var c=t.getAttribute("href");if(0==c.indexOf("#")&&"#"===c)return}o[e].getAttribute("data-toggle")||o[e].getAttribute("carousel-control")||(l=0,(c=f.getElementById(n.slice(1)))&&(n=s.pageYOffset||f.documentElement.scrollTop,l=c.getBoundingClientRect().top+n),1==f.body.classList.contains("scrolled")&&(!(i=f.getElementById("site-header"))||(r=i.clientHeight)&&(l-=r)),i=0,(r=f.getElementById("wpadminbar"))&&(i=r.clientHeight),s.scrollTo({top:l-i,behavior:"smooth"}),t.preventDefault())}}Array.prototype.forEach.call(f.getElementsByTagName("a"),function(t){var o=t.getAttribute("href");o&&0==o.indexOf("#")&&"#"!==o&&t.addEventListener("click",e)})})}(window,document),"object"===("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module?module.exports={polyfill:polyfill}:polyfill();
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: Google Analytics, New posts, Related Posts, sitemap, sns, twitter card, Fa
5
  Requires at least: 5.3.0
6
  Tested up to: 5.8.1
7
  Requires PHP: 5.6
8
- Stable tag: 9.68.3.0
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -82,6 +82,9 @@ e.g.
82
 
83
  == Changelog ==
84
 
 
 
 
85
  = 9.68.3.0 =
86
  * [ Bug fix ][ smooth scroll ] fix scroll top position on lightning g3
87
 
5
  Requires at least: 5.3.0
6
  Tested up to: 5.8.1
7
  Requires PHP: 5.6
8
+ Stable tag: 9.68.4.0
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
82
 
83
  == Changelog ==
84
 
85
+ = 9.68.4.0 =
86
+ * [ Bug fix ][ smooth scroll ] fix scroll top position on admin bar
87
+
88
  = 9.68.3.0 =
89
  * [ Bug fix ][ smooth scroll ] fix scroll top position on lightning g3
90
 
vkExUnit.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: VK All in One Expansion Unit
4
  * Plugin URI: https://ex-unit.nagoya
5
  * Description: This plug-in is an integrated plug-in with a variety of features that make it powerful your web site. Many features can be stopped individually. Example Facebook Page Plugin,Social Bookmarks,Print OG Tags,Print Twitter Card Tags,Print Google Analytics tag,New post widget,Insert Related Posts and more!
6
- * Version: 9.68.3.0
7
  * Requires PHP: 5.6
8
  * Author: Vektor,Inc.
9
  * Text Domain: vk-all-in-one-expansion-unit
3
  * Plugin Name: VK All in One Expansion Unit
4
  * Plugin URI: https://ex-unit.nagoya
5
  * Description: This plug-in is an integrated plug-in with a variety of features that make it powerful your web site. Many features can be stopped individually. Example Facebook Page Plugin,Social Bookmarks,Print OG Tags,Print Twitter Card Tags,Print Google Analytics tag,New post widget,Insert Related Posts and more!
6
+ * Version: 9.68.4.0
7
  * Requires PHP: 5.6
8
  * Author: Vektor,Inc.
9
  * Text Domain: vk-all-in-one-expansion-unit