VK All in One Expansion Unit - Version 9.29.6.0

Version Description

[ bug fix ][ Smooth Scroll ] Fix Pagetop smooth scroll was not working on Firefox.

Download this release

Release Info

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

Code changes from version 9.29.5.0 to 9.29.6.0

assets/js/all.min.js CHANGED
@@ -1 +1 @@
1
- "use strict";jQuery.changeLetterSize={handlers:[],interval:1e3,currentSize:0},function(t){function e(){o.appendTo("body");var t=o[0].offsetHeight;return o.remove(),n.currentSize!=t&&(n.currentSize=t,!0)}var n=t.changeLetterSize,o=t("<ins>M</ins>").css({display:"block",visibility:"hidden",position:"absolute",padding:"0",top:"0"});t(e);n.addHandler=function(t){n.handlers.push(t),n.handlers.length}}(jQuery),function(t){function e(t){var e=0;t.each(function(){var t=this.offsetHeight;e<t&&(e=t)}),t.css("height",e+"px")}var n=[];jQuery.fn.flatHeights=function(){return 1<this.length&&(e(this),n.push(this)),this};function o(){t.each(n,function(){this.height("auto"),e(this)})}t.changeLetterSize.addHandler(o),t(window).resize(o)}(jQuery),jQuery(document).ready(function(t){jQuery(".topPrTit a").flatHeights(),jQuery(".topPrDescription").flatHeights()});var a=null;!function(t){t(function(){t(".prArea > .subSection-title").flatHeights(),t(".prArea > .summary").flatHeights()}),window.addEventListener("DOMContentLoaded",function(){})}(jQuery),function(t,e){t.addEventListener("load",function(){var n,t,o;!vkExOpt.entry_count||0!=(n=e.getElementsByClassName("veu_count_sns_hb")).length&&(t=vkExOpt.entry_from_post?{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},body:'{"linkurl": "'+location.href+'"}'}:{method:"GET"},fetch(vkExOpt.entry_from_post?vkExOpt.hatena_entry:vkExOpt.hatena_entry+encodeURIComponent(location.href),t).then(function(t){t.ok&&t.json().then(function(e){void 0!==e.count&&Array.prototype.forEach.call(n,function(t){return t.innerHTML=e.count})})}).catch(function(t){}),o=e.getElementsByClassName("veu_count_sns_fb"),vkExOpt.facebook_count_enable&&fetch(vkExOpt.entry_from_post?vkExOpt.facebook_entry:vkExOpt.facebook_entry+encodeURIComponent(location.href),t).then(function(t){t.ok&&t.json().then(function(e){void 0!==e.count&&Array.prototype.forEach.call(o,function(t){return t.innerHTML=e.count})})}).catch(function(t){}))},!1)}(window,document),function(c,u){vkExOpt.enable_smooth_scroll&&c.addEventListener("load",function(){function n(t){for(var e=0;e<t.path.length&&!t.path[e].getAttribute("href");e++);var n,o,r,i=t.path[e].getAttribute("href");if(i&&!(0<["tab"].indexOf(t.path[e].getAttribute("role")))){if(0<["button"].indexOf(t.path[e].getAttribute("role"))){var a=t.getAttribute("href");if(0==a.indexOf("#")&&"#"===a)return}t.path[e].getAttribute("data-toggle")||t.path[e].getAttribute("carousel-control")||(r=0,(n=u.getElementById(i.slice(1)))&&(o=c.pageYOffset||u.documentElement.scrollTop,r=n.getBoundingClientRect().top+o),c.scrollTo({top:r,behavior:"smooth"}),t.preventDefault())}}Array.prototype.forEach.call(u.getElementsByTagName("a"),function(t){var e=t.getAttribute("href");e&&0==e.indexOf("#")&&"#"!==e&&t.addEventListener("click",n)})})}(window,document),function(t,e,n){t.addEventListener("scroll",function(){0<t.pageYOffset?e.body.classList.add(n):e.body.classList.remove(n)})}(window,document,"scrolled");
1
+ "use strict";jQuery.changeLetterSize={handlers:[],interval:1e3,currentSize:0},function(t){function e(){o.appendTo("body");var t=o[0].offsetHeight;return o.remove(),n.currentSize!=t&&(n.currentSize=t,!0)}var n=t.changeLetterSize,o=t("<ins>M</ins>").css({display:"block",visibility:"hidden",position:"absolute",padding:"0",top:"0"});t(e);n.addHandler=function(t){n.handlers.push(t),n.handlers.length}}(jQuery),function(t){function e(t){var e=0;t.each(function(){var t=this.offsetHeight;e<t&&(e=t)}),t.css("height",e+"px")}var n=[];jQuery.fn.flatHeights=function(){return 1<this.length&&(e(this),n.push(this)),this};function o(){t.each(n,function(){this.height("auto"),e(this)})}t.changeLetterSize.addHandler(o),t(window).resize(o)}(jQuery),jQuery(document).ready(function(t){jQuery(".topPrTit a").flatHeights(),jQuery(".topPrDescription").flatHeights()});var a=null;!function(t){t(function(){t(".prArea > .subSection-title").flatHeights(),t(".prArea > .summary").flatHeights()}),window.addEventListener("DOMContentLoaded",function(){})}(jQuery),function(t,e){t.addEventListener("load",function(){var n,t,o;!vkExOpt.entry_count||0!=(n=e.getElementsByClassName("veu_count_sns_hb")).length&&(t=vkExOpt.entry_from_post?{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},body:'{"linkurl": "'+location.href+'"}'}:{method:"GET"},fetch(vkExOpt.entry_from_post?vkExOpt.hatena_entry:vkExOpt.hatena_entry+encodeURIComponent(location.href),t).then(function(t){t.ok&&t.json().then(function(e){void 0!==e.count&&Array.prototype.forEach.call(n,function(t){return t.innerHTML=e.count})})}).catch(function(t){}),o=e.getElementsByClassName("veu_count_sns_fb"),vkExOpt.facebook_count_enable&&fetch(vkExOpt.entry_from_post?vkExOpt.facebook_entry:vkExOpt.facebook_entry+encodeURIComponent(location.href),t).then(function(t){t.ok&&t.json().then(function(e){void 0!==e.count&&Array.prototype.forEach.call(o,function(t){return t.innerHTML=e.count})})}).catch(function(t){}))},!1)}(window,document),function(u,s){vkExOpt.enable_smooth_scroll&&u.addEventListener("load",function(){function n(t){for(var e=t.path||t.composedPath&&t.composedPath(),n=0;n<e.length&&!e[n].getAttribute("href");n++);var o,r,i,a=e[n].getAttribute("href");if(a&&!(0<["tab"].indexOf(e[n].getAttribute("role")))){if(0<["button"].indexOf(e[n].getAttribute("role"))){var c=t.getAttribute("href");if(0==c.indexOf("#")&&"#"===c)return}e[n].getAttribute("data-toggle")||e[n].getAttribute("carousel-control")||(i=0,(o=s.getElementById(a.slice(1)))&&(r=u.pageYOffset||s.documentElement.scrollTop,i=o.getBoundingClientRect().top+r),u.scrollTo({top:i,behavior:"smooth"}),t.preventDefault())}}Array.prototype.forEach.call(s.getElementsByTagName("a"),function(t){var e=t.getAttribute("href");e&&0==e.indexOf("#")&&"#"!==e&&t.addEventListener("click",n)})})}(window,document),function(t,e,n){t.addEventListener("scroll",function(){0<t.pageYOffset?e.body.classList.add(n):e.body.classList.remove(n)})}(window,document,"scrolled");
inc/smooth-scroll/js/smooth-scroll.js CHANGED
@@ -7,26 +7,27 @@
7
  }
8
  window.addEventListener('load', () =>{
9
  function smooth_link(e) {
 
10
  let i=0;
11
- for(i;i<e.path.length;i++){
12
- if(e.path[i].getAttribute('href')) break;
13
  }
14
- let href = e.path[i].getAttribute('href')
15
  if (!href) return;
16
 
17
  // role が tab の場合はスムーススクロールしない
18
- if (['tab'].indexOf(e.path[i].getAttribute('role')) > 0) return;
19
 
20
  // role が button の場合で リンク先指定がない場合はスムーススクロールしない
21
- if (['button'].indexOf(e.path[i].getAttribute('role')) > 0 ) {
22
  let href = e.getAttribute('href')
23
  if( href.indexOf('#') == 0 && href === '#'){
24
  return;
25
  }
26
  }
27
 
28
- if (e.path[i].getAttribute('data-toggle')) return;
29
- if (e.path[i].getAttribute('carousel-control')) return;
30
 
31
  let y = 0,
32
  destination = document.getElementById(href.slice(1))
7
  }
8
  window.addEventListener('load', () =>{
9
  function smooth_link(e) {
10
+ let path = e.path || (e.composedPath && e.composedPath());
11
  let i=0;
12
+ for(i;i<path.length;i++){
13
+ if(path[i].getAttribute('href')) break;
14
  }
15
+ let href = path[i].getAttribute('href')
16
  if (!href) return;
17
 
18
  // role が tab の場合はスムーススクロールしない
19
+ if (['tab'].indexOf(path[i].getAttribute('role')) > 0) return;
20
 
21
  // role が button の場合で リンク先指定がない場合はスムーススクロールしない
22
+ if (['button'].indexOf(path[i].getAttribute('role')) > 0 ) {
23
  let href = e.getAttribute('href')
24
  if( href.indexOf('#') == 0 && href === '#'){
25
  return;
26
  }
27
  }
28
 
29
+ if (path[i].getAttribute('data-toggle')) return;
30
+ if (path[i].getAttribute('carousel-control')) return;
31
 
32
  let y = 0,
33
  destination = document.getElementById(href.slice(1))
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link:
4
  Tags: Google Analytics, New posts, Related Posts, sitemap, sns, twitter card, Facebook Page Plugin, OG tags,
5
  Requires at least: 5.0.0
6
  Tested up to: 5.4.2
7
- Stable tag: 9.29.5.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -99,6 +99,9 @@ e.g.
99
 
100
  == Changelog ==
101
 
 
 
 
102
  = 9.29.5.0 =
103
  [ bug fix ][ Contact Section ] Fix Btn text color become defeat by footer design setting.
104
 
4
  Tags: Google Analytics, New posts, Related Posts, sitemap, sns, twitter card, Facebook Page Plugin, OG tags,
5
  Requires at least: 5.0.0
6
  Tested up to: 5.4.2
7
+ Stable tag: 9.29.6.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
99
 
100
  == Changelog ==
101
 
102
+ = 9.29.6.0 =
103
+ [ bug fix ][ Smooth Scroll ] Fix Pagetop smooth scroll was not working on Firefox.
104
+
105
  = 9.29.5.0 =
106
  [ bug fix ][ Contact Section ] Fix Btn text color become defeat by footer design setting.
107
 
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.29.5.0
7
  * Author: Vektor,Inc.
8
  * Text Domain: vk-all-in-one-expansion-unit
9
  * Domain Path: /languages
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.29.6.0
7
  * Author: Vektor,Inc.
8
  * Text Domain: vk-all-in-one-expansion-unit
9
  * Domain Path: /languages