Version Description
Download this release
Release Info
Developer | kurudrive |
Plugin | Lightning Advanced Unit |
Version | 3.3.1 |
Comparing to | |
See all releases |
Code changes from version 3.3.0 to 3.3.1
- _scss/lightning_adv_style.scss +1 -2
- css/lightning_adv_style.css +1 -1
- inc/vk-mobile-nav/_scss/_sub_item_accordion.scss +2 -1
- inc/vk-mobile-nav/class-vk-mobile-nav.php +2 -2
- inc/vk-mobile-nav/css/vk-mobile-nav-bright.css +1 -1
- inc/vk-mobile-nav/css/vk-mobile-nav-dark.css +1 -1
- inc/vk-mobile-nav/js/vk-mobile-nav.js +0 -166
- inc/vk-mobile-nav/js/vk-mobile-nav.min.js +8 -0
_scss/lightning_adv_style.scss
CHANGED
@@ -1,2 +1 @@
|
|
1 |
-
|
2 |
-
@import "compass";
|
1 |
+
@charset "utf-8";
|
|
css/lightning_adv_style.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
|
1 |
+
|
inc/vk-mobile-nav/_scss/_sub_item_accordion.scss
CHANGED
@@ -56,7 +56,8 @@
|
|
56 |
}
|
57 |
ul.acc-child-open {
|
58 |
transition: max-height $time_transition ease-in;
|
59 |
-
max-height:
|
|
|
60 |
}
|
61 |
ul.acc-child-close {
|
62 |
transition: max-height $time_transition ease-out;
|
56 |
}
|
57 |
ul.acc-child-open {
|
58 |
transition: max-height $time_transition ease-in;
|
59 |
+
max-height:1000px;
|
60 |
+
overflow-y: scroll;
|
61 |
}
|
62 |
ul.acc-child-close {
|
63 |
transition: max-height $time_transition ease-out;
|
inc/vk-mobile-nav/class-vk-mobile-nav.php
CHANGED
@@ -8,7 +8,7 @@ https://github.com/vektor-inc/vektor-wp-libraries
|
|
8 |
if ( ! class_exists( 'Vk_Mobile_Nav' ) ) {
|
9 |
class Vk_Mobile_Nav {
|
10 |
|
11 |
-
public static $version = '0.0.
|
12 |
|
13 |
public function __construct() {
|
14 |
add_action( 'after_setup_theme', array( $this, 'setup_menu' ) );
|
@@ -129,7 +129,7 @@ if ( ! class_exists( 'Vk_Mobile_Nav' ) ) {
|
|
129 |
/*-------------------------------------------*/
|
130 |
|
131 |
public static function add_script() {
|
132 |
-
wp_register_script( 'vk-mobile-nav-js', plugin_dir_url( __FILE__ ) . 'js/vk-mobile-nav.js', array( 'jquery' ), self::$version );
|
133 |
wp_enqueue_script( 'vk-mobile-nav-js' );
|
134 |
wp_enqueue_style( 'vk-mobile-nav-css', plugin_dir_url( __FILE__ ) . 'css/vk-mobile-nav-bright.css', array(), self::$version, 'all' );
|
135 |
}
|
8 |
if ( ! class_exists( 'Vk_Mobile_Nav' ) ) {
|
9 |
class Vk_Mobile_Nav {
|
10 |
|
11 |
+
public static $version = '0.0.1';
|
12 |
|
13 |
public function __construct() {
|
14 |
add_action( 'after_setup_theme', array( $this, 'setup_menu' ) );
|
129 |
/*-------------------------------------------*/
|
130 |
|
131 |
public static function add_script() {
|
132 |
+
wp_register_script( 'vk-mobile-nav-js', plugin_dir_url( __FILE__ ) . 'js/vk-mobile-nav.min.js', array( 'jquery' ), self::$version );
|
133 |
wp_enqueue_script( 'vk-mobile-nav-js' );
|
134 |
wp_enqueue_style( 'vk-mobile-nav-css', plugin_dir_url( __FILE__ ) . 'css/vk-mobile-nav-bright.css', array(), self::$version, 'all' );
|
135 |
}
|
inc/vk-mobile-nav/css/vk-mobile-nav-bright.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
body.admin-bar .vk-mobile-nav-menu-btn{top:calc(32px + 10px)}body.admin-bar .vk-mobile-nav.vk-mobile-nav-open{top:32px}body.device-mobile .vk-mobile-nav-menu-btn{display:block}.vk-mobile-nav-menu-btn{position:fixed;top:10px;left:10px;z-index:2100;overflow:hidden;border:1px solid #333;border-radius:2px;width:34px;height:34px;cursor:pointer;text-indent:-9999px;background:url(../images/vk-menu-btn-black.svg) center 50% no-repeat;background-size:24px 24px;-webkit-transition:border-color .5s ease-out;transition:border-color .5s ease-out}.vk-mobile-nav-menu-btn.menu-open{border:1px solid rgba(255,255,255,.8);background:url(../images/vk-menu-close-black.svg) center 50% no-repeat}.mobile-nav-btn-right .vk-mobile-nav-menu-btn{left:inherit;right:10px}.vk-mobile-nav.vk-mobile-nav-open{top:0}.vk-mobile-nav{position:fixed;top:-2000px;z-index:2000;width:100%;height:100%;display:block;padding:60px 10px;overflow:scroll;-webkit-transition:top .5s ease-out;transition:top .5s ease-out;-webkit-box-shadow:1px 1px 4px rgba(0,0,0,.1);box-shadow:1px 1px 4px rgba(0,0,0,.1)}.vk-mobile-nav .global-nav{margin-bottom:1.5em}.vk-mobile-nav nav ul{padding:0;margin:0}.vk-mobile-nav nav ul li{list-style:none}.vk-mobile-nav nav ul li a{padding:.7em .5em;display:block;overflow:hidden}.vk-mobile-nav nav ul li a:hover{text-decoration:none}.vk-mobile-nav nav ul li li a{padding-left:1.5em}.vk-mobile-nav nav ul li li li a{padding-left:2.5em}.vk-mobile-nav nav ul li li li li a{padding-left:3.5em}.vk-mobile-nav-widget{margin-bottom:1.5em}.vk-mobile-nav .customize-partial-edit-shortcut button,.vk-mobile-nav .widget .customize-partial-edit-shortcut button{left:0;top:-30px}.vk-menu-acc{position:relative}.vk-menu-acc .menu-parent>li{position:relative;z-index:100}.vk-menu-acc .menu-parent>li a{display:inline-block}.vk-menu-acc li{position:relative}.vk-menu-acc .acc-btn{position:absolute;right:8px;top:8px;width:28px;height:28px;border:1px solid rgba(255,255,255,.8);border-radius:2px;background:url(../images/vk-menu-acc-icon-open-white.svg) center 50% no-repeat;background-size:28px 28px;cursor:pointer;z-index:1000;-webkit-transition:-webkit-transform .5s ease-out;transition:-webkit-transform .5s ease-out;transition:transform .5s ease-out;transition:transform .5s ease-out,-webkit-transform .5s ease-out}.vk-menu-acc .acc-btn:before{position:relative;top:-5px;left:4px;font-size:16px}.vk-menu-acc .acc-btn-close{background:url(../images/vk-menu-btn-close.svg) center 50% no-repeat}.vk-menu-acc ul.sub-menu{max-height:0;overflow:hidden;-webkit-transition:max-height .5s ease-in;transition:max-height .5s ease-in;position:relative;z-index:1;display:block}.vk-menu-acc ul.sub-menu li a{display:block;overflow:hidden}.vk-menu-acc ul.acc-child-open{-webkit-transition:max-height .5s ease-in;transition:max-height .5s ease-in;max-height:
|
1 |
+
body.admin-bar .vk-mobile-nav-menu-btn{top:calc(32px + 10px)}body.admin-bar .vk-mobile-nav.vk-mobile-nav-open{top:32px}body.device-mobile .vk-mobile-nav-menu-btn{display:block}.vk-mobile-nav-menu-btn{position:fixed;top:10px;left:10px;z-index:2100;overflow:hidden;border:1px solid #333;border-radius:2px;width:34px;height:34px;cursor:pointer;text-indent:-9999px;background:url(../images/vk-menu-btn-black.svg) center 50% no-repeat;background-size:24px 24px;-webkit-transition:border-color .5s ease-out;transition:border-color .5s ease-out}.vk-mobile-nav-menu-btn.menu-open{border:1px solid rgba(255,255,255,.8);background:url(../images/vk-menu-close-black.svg) center 50% no-repeat}.mobile-nav-btn-right .vk-mobile-nav-menu-btn{left:inherit;right:10px}.vk-mobile-nav.vk-mobile-nav-open{top:0}.vk-mobile-nav{position:fixed;top:-2000px;z-index:2000;width:100%;height:100%;display:block;padding:60px 10px;overflow:scroll;-webkit-transition:top .5s ease-out;transition:top .5s ease-out;-webkit-box-shadow:1px 1px 4px rgba(0,0,0,.1);box-shadow:1px 1px 4px rgba(0,0,0,.1)}.vk-mobile-nav .global-nav{margin-bottom:1.5em}.vk-mobile-nav nav ul{padding:0;margin:0}.vk-mobile-nav nav ul li{list-style:none}.vk-mobile-nav nav ul li a{padding:.7em .5em;display:block;overflow:hidden}.vk-mobile-nav nav ul li a:hover{text-decoration:none}.vk-mobile-nav nav ul li li a{padding-left:1.5em}.vk-mobile-nav nav ul li li li a{padding-left:2.5em}.vk-mobile-nav nav ul li li li li a{padding-left:3.5em}.vk-mobile-nav-widget{margin-bottom:1.5em}.vk-mobile-nav .customize-partial-edit-shortcut button,.vk-mobile-nav .widget .customize-partial-edit-shortcut button{left:0;top:-30px}.vk-menu-acc{position:relative}.vk-menu-acc .menu-parent>li{position:relative;z-index:100}.vk-menu-acc .menu-parent>li a{display:inline-block}.vk-menu-acc li{position:relative}.vk-menu-acc .acc-btn{position:absolute;right:8px;top:8px;width:28px;height:28px;border:1px solid rgba(255,255,255,.8);border-radius:2px;background:url(../images/vk-menu-acc-icon-open-white.svg) center 50% no-repeat;background-size:28px 28px;cursor:pointer;z-index:1000;-webkit-transition:-webkit-transform .5s ease-out;transition:-webkit-transform .5s ease-out;transition:transform .5s ease-out;transition:transform .5s ease-out,-webkit-transform .5s ease-out}.vk-menu-acc .acc-btn:before{position:relative;top:-5px;left:4px;font-size:16px}.vk-menu-acc .acc-btn-close{background:url(../images/vk-menu-btn-close.svg) center 50% no-repeat}.vk-menu-acc ul.sub-menu{max-height:0;overflow:hidden;-webkit-transition:max-height .5s ease-in;transition:max-height .5s ease-in;position:relative;z-index:1;display:block}.vk-menu-acc ul.sub-menu li a{display:block;overflow:hidden}.vk-menu-acc ul.acc-child-open{-webkit-transition:max-height .5s ease-in;transition:max-height .5s ease-in;max-height:1000px;overflow-y:scroll}.vk-menu-acc ul.acc-child-close{-webkit-transition:max-height .5s ease-out;transition:max-height .5s ease-out;max-height:0}.vk-mobile-nav-menu-btn{background-color:rgba(255,255,255,.8);-webkit-box-shadow:1px 1px 4px rgba(0,0,0,.1);box-shadow:1px 1px 4px rgba(0,0,0,.1)}.vk-mobile-nav-menu-btn.menu-open{border-color:#333;background:url(../images/vk-menu-close-black.svg) center 50% no-repeat}.vk-mobile-nav{background-color:#fff;border-bottom:1px solid #e5e5e5}.vk-mobile-nav .widget_nav_menu ul.menu{border-top:1px solid #ccc}.vk-mobile-nav nav>ul{border-top:1px solid #ccc}.vk-mobile-nav .widget_nav_menu ul li a,.vk-mobile-nav nav ul li a{color:#333;border-bottom:1px solid #ccc}.vk-menu-acc .acc-btn{border:1px solid #333;background:url(../images/vk-menu-acc-icon-open-black.svg) center 50% no-repeat}.vk-menu-acc .acc-btn-close{background:url(../images/vk-menu-close-black.svg) center 50% no-repeat}@media (min-width:992px){body.device-pc .vk-mobile-nav-menu-btn{display:none}body.device-pc .vk-mobile-nav{display:none}}@media screen and (max-width:782px){body.admin-bar .vk-mobile-nav-menu-btn{top:calc(46px + 10px)}body.admin-bar .vk-mobile-nav.vk-mobile-nav-open{top:46px}}
|
inc/vk-mobile-nav/css/vk-mobile-nav-dark.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
body.admin-bar .vk-mobile-nav-menu-btn{top:calc(32px + 10px)}body.admin-bar .vk-mobile-nav.vk-mobile-nav-open{top:32px}body.device-mobile .vk-mobile-nav-menu-btn{display:block}.vk-mobile-nav-menu-btn{position:fixed;top:10px;left:10px;z-index:2100;overflow:hidden;border:1px solid #333;border-radius:2px;width:34px;height:34px;cursor:pointer;text-indent:-9999px;background:url(../images/vk-menu-btn-black.svg) center 50% no-repeat;background-size:24px 24px;-webkit-transition:border-color .5s ease-out;transition:border-color .5s ease-out}.vk-mobile-nav-menu-btn.menu-open{border:1px solid rgba(255,255,255,.8);background:url(../images/vk-menu-close-black.svg) center 50% no-repeat}.mobile-nav-btn-right .vk-mobile-nav-menu-btn{left:inherit;right:10px}.vk-mobile-nav.vk-mobile-nav-open{top:0}.vk-mobile-nav{position:fixed;top:-2000px;z-index:2000;width:100%;height:100%;display:block;padding:60px 10px;overflow:scroll;-webkit-transition:top .5s ease-out;transition:top .5s ease-out;-webkit-box-shadow:1px 1px 4px rgba(0,0,0,.1);box-shadow:1px 1px 4px rgba(0,0,0,.1)}.vk-mobile-nav .global-nav{margin-bottom:1.5em}.vk-mobile-nav nav ul{padding:0;margin:0}.vk-mobile-nav nav ul li{list-style:none}.vk-mobile-nav nav ul li a{padding:.7em .5em;display:block;overflow:hidden}.vk-mobile-nav nav ul li a:hover{text-decoration:none}.vk-mobile-nav nav ul li li a{padding-left:1.5em}.vk-mobile-nav nav ul li li li a{padding-left:2.5em}.vk-mobile-nav nav ul li li li li a{padding-left:3.5em}.vk-mobile-nav-widget{margin-bottom:1.5em}.vk-mobile-nav .customize-partial-edit-shortcut button,.vk-mobile-nav .widget .customize-partial-edit-shortcut button{left:0;top:-30px}.vk-menu-acc{position:relative}.vk-menu-acc .menu-parent>li{position:relative;z-index:100}.vk-menu-acc .menu-parent>li a{display:inline-block}.vk-menu-acc li{position:relative}.vk-menu-acc .acc-btn{position:absolute;right:8px;top:8px;width:28px;height:28px;border:1px solid rgba(255,255,255,.8);border-radius:2px;background:url(../images/vk-menu-acc-icon-open-white.svg) center 50% no-repeat;background-size:28px 28px;cursor:pointer;z-index:1000;-webkit-transition:-webkit-transform .5s ease-out;transition:-webkit-transform .5s ease-out;transition:transform .5s ease-out;transition:transform .5s ease-out,-webkit-transform .5s ease-out}.vk-menu-acc .acc-btn:before{position:relative;top:-5px;left:4px;font-size:16px}.vk-menu-acc .acc-btn-close{background:url(../images/vk-menu-btn-close.svg) center 50% no-repeat}.vk-menu-acc ul.sub-menu{max-height:0;overflow:hidden;-webkit-transition:max-height .5s ease-in;transition:max-height .5s ease-in;position:relative;z-index:1;display:block}.vk-menu-acc ul.sub-menu li a{display:block;overflow:hidden}.vk-menu-acc ul.acc-child-open{-webkit-transition:max-height .5s ease-in;transition:max-height .5s ease-in;max-height:
|
1 |
+
body.admin-bar .vk-mobile-nav-menu-btn{top:calc(32px + 10px)}body.admin-bar .vk-mobile-nav.vk-mobile-nav-open{top:32px}body.device-mobile .vk-mobile-nav-menu-btn{display:block}.vk-mobile-nav-menu-btn{position:fixed;top:10px;left:10px;z-index:2100;overflow:hidden;border:1px solid #333;border-radius:2px;width:34px;height:34px;cursor:pointer;text-indent:-9999px;background:url(../images/vk-menu-btn-black.svg) center 50% no-repeat;background-size:24px 24px;-webkit-transition:border-color .5s ease-out;transition:border-color .5s ease-out}.vk-mobile-nav-menu-btn.menu-open{border:1px solid rgba(255,255,255,.8);background:url(../images/vk-menu-close-black.svg) center 50% no-repeat}.mobile-nav-btn-right .vk-mobile-nav-menu-btn{left:inherit;right:10px}.vk-mobile-nav.vk-mobile-nav-open{top:0}.vk-mobile-nav{position:fixed;top:-2000px;z-index:2000;width:100%;height:100%;display:block;padding:60px 10px;overflow:scroll;-webkit-transition:top .5s ease-out;transition:top .5s ease-out;-webkit-box-shadow:1px 1px 4px rgba(0,0,0,.1);box-shadow:1px 1px 4px rgba(0,0,0,.1)}.vk-mobile-nav .global-nav{margin-bottom:1.5em}.vk-mobile-nav nav ul{padding:0;margin:0}.vk-mobile-nav nav ul li{list-style:none}.vk-mobile-nav nav ul li a{padding:.7em .5em;display:block;overflow:hidden}.vk-mobile-nav nav ul li a:hover{text-decoration:none}.vk-mobile-nav nav ul li li a{padding-left:1.5em}.vk-mobile-nav nav ul li li li a{padding-left:2.5em}.vk-mobile-nav nav ul li li li li a{padding-left:3.5em}.vk-mobile-nav-widget{margin-bottom:1.5em}.vk-mobile-nav .customize-partial-edit-shortcut button,.vk-mobile-nav .widget .customize-partial-edit-shortcut button{left:0;top:-30px}.vk-menu-acc{position:relative}.vk-menu-acc .menu-parent>li{position:relative;z-index:100}.vk-menu-acc .menu-parent>li a{display:inline-block}.vk-menu-acc li{position:relative}.vk-menu-acc .acc-btn{position:absolute;right:8px;top:8px;width:28px;height:28px;border:1px solid rgba(255,255,255,.8);border-radius:2px;background:url(../images/vk-menu-acc-icon-open-white.svg) center 50% no-repeat;background-size:28px 28px;cursor:pointer;z-index:1000;-webkit-transition:-webkit-transform .5s ease-out;transition:-webkit-transform .5s ease-out;transition:transform .5s ease-out;transition:transform .5s ease-out,-webkit-transform .5s ease-out}.vk-menu-acc .acc-btn:before{position:relative;top:-5px;left:4px;font-size:16px}.vk-menu-acc .acc-btn-close{background:url(../images/vk-menu-btn-close.svg) center 50% no-repeat}.vk-menu-acc ul.sub-menu{max-height:0;overflow:hidden;-webkit-transition:max-height .5s ease-in;transition:max-height .5s ease-in;position:relative;z-index:1;display:block}.vk-menu-acc ul.sub-menu li a{display:block;overflow:hidden}.vk-menu-acc ul.acc-child-open{-webkit-transition:max-height .5s ease-in;transition:max-height .5s ease-in;max-height:1000px;overflow-y:scroll}.vk-menu-acc ul.acc-child-close{-webkit-transition:max-height .5s ease-out;transition:max-height .5s ease-out;max-height:0}.vk-mobile-nav-menu-btn.menu-open{border-color:rgba(255,255,255,.8);background:url(../images/vk-menu-close-white.svg) center 50% no-repeat}.vk-mobile-nav{background-color:#333;border-bottom:666}.vk-mobile-nav .widget_nav_menu ul.menu{border-top:1px solid #666}.vk-mobile-nav nav>ul{border-top:1px solid #666}.vk-mobile-nav .widget_nav_menu ul li a,.vk-mobile-nav nav ul li a{color:rgba(255,255,255,.8);border-bottom:1px solid #666}.vk-menu-acc .acc-btn{border:1px solid rgba(255,255,255,.8);background:url(../images/vk-menu-acc-icon-open-white.svg) center 50% no-repeat}.vk-menu-acc .acc-btn-close{background:url(../images/vk-menu-close-white.svg) center 50% no-repeat}@media (min-width:992px){body.device-pc .vk-mobile-nav-menu-btn{display:none}body.device-pc .vk-mobile-nav{display:none}}@media screen and (max-width:782px){body.admin-bar .vk-mobile-nav-menu-btn{top:calc(46px + 10px)}body.admin-bar .vk-mobile-nav.vk-mobile-nav-open{top:46px}}
|
inc/vk-mobile-nav/js/vk-mobile-nav.js
CHANGED
@@ -145,169 +145,3 @@
|
|
145 |
});
|
146 |
|
147 |
})(jQuery);
|
148 |
-
|
149 |
-
|
150 |
-
// jQuery(document).ready(function() {
|
151 |
-
// run_slide_menu_control();
|
152 |
-
// });
|
153 |
-
// jQuery(window).resize(function() {
|
154 |
-
// run_menuResize();
|
155 |
-
// });
|
156 |
-
// /*-------------------------------------------*/
|
157 |
-
// /* メニューの開閉
|
158 |
-
// /* <div id="menu" onclick="showHide('menu');" class="itemOpen">MENU</div>
|
159 |
-
// /* * header.siteHeader を left で制御しているのは Safariでは
|
160 |
-
// /* position:fixed しているとウィンドウにfixしてしまってwrapを横にずらしてもついて来ないため
|
161 |
-
// /*-------------------------------------------*/
|
162 |
-
//
|
163 |
-
// function run_slide_menu_control() {
|
164 |
-
// jQuery('.menuBtn').prependTo('#bodyInner');
|
165 |
-
// jQuery('.menuBtn').each(function() {
|
166 |
-
// jQuery(this).click(function() {
|
167 |
-
// if (jQuery(this).hasClass('menuBtn_left')) {
|
168 |
-
// var menuPosition = 'left';
|
169 |
-
// } else {
|
170 |
-
// var menuPosition = 'right';
|
171 |
-
// }
|
172 |
-
// // ※ この時点でLightning本体のmaster.jsによって既に menuOpenに新しく切り替わっている
|
173 |
-
// if (jQuery(this).hasClass('menuOpen')) {
|
174 |
-
// slide_menu_open(menuPosition);
|
175 |
-
// } else {
|
176 |
-
// slide_menu_close(menuPosition);
|
177 |
-
// }
|
178 |
-
// });
|
179 |
-
// });
|
180 |
-
// }
|
181 |
-
//
|
182 |
-
// function slide_menu_open(menuPosition) {
|
183 |
-
// var navSection_open_position = 'navSection_open_' + menuPosition;
|
184 |
-
// jQuery('#navSection').addClass(navSection_open_position);
|
185 |
-
//
|
186 |
-
// var wrap_width = jQuery('body').width();
|
187 |
-
// jQuery('#bodyInner').css({
|
188 |
-
// "width": wrap_width
|
189 |
-
// });
|
190 |
-
// jQuery('#wrap').css({
|
191 |
-
// "width": wrap_width
|
192 |
-
// });
|
193 |
-
//
|
194 |
-
// var menu_width = wrap_width - 60 + 'px';
|
195 |
-
//
|
196 |
-
// jQuery('#headerTop').appendTo('#navSection');
|
197 |
-
// jQuery('#gMenu_outer').appendTo('#navSection');
|
198 |
-
//
|
199 |
-
// if (menuPosition == 'right') {
|
200 |
-
// jQuery('#wrap').stop().animate({
|
201 |
-
// // 右にメニューを表示するために左に逃げる
|
202 |
-
// "margin-left": "-" + menu_width,
|
203 |
-
// }, 200);
|
204 |
-
// jQuery('header.siteHeader').stop().animate({
|
205 |
-
// "left": "-" + menu_width,
|
206 |
-
// }, 200);
|
207 |
-
// jQuery('#navSection').css({
|
208 |
-
// "display": "block",
|
209 |
-
// "width": menu_width,
|
210 |
-
// "right": "-" + menu_width
|
211 |
-
// }).stop().animate({
|
212 |
-
// "right": 0,
|
213 |
-
// }, 200);
|
214 |
-
//
|
215 |
-
// } else if (menuPosition == 'left') {
|
216 |
-
// jQuery('#wrap').stop().animate({
|
217 |
-
// "margin-left": menu_width,
|
218 |
-
// }, 200);
|
219 |
-
// jQuery('header.siteHeader').stop().animate({
|
220 |
-
// "left": menu_width,
|
221 |
-
// }, 200);
|
222 |
-
// jQuery('#navSection').css({
|
223 |
-
// "display": "block",
|
224 |
-
// "width": menu_width,
|
225 |
-
// "left": "-" + menu_width
|
226 |
-
// }).stop().animate({
|
227 |
-
// "left": 0,
|
228 |
-
// }, 200, function() {});
|
229 |
-
// }
|
230 |
-
// }
|
231 |
-
//
|
232 |
-
// function slide_menu_close(menuPosition) {
|
233 |
-
//
|
234 |
-
// if (!menuPosition) {
|
235 |
-
// if (jQuery('#navSection').hasClass('navSection_open_right')) {
|
236 |
-
// menuPosition = 'right';
|
237 |
-
// } else {
|
238 |
-
// menuPosition = 'left';
|
239 |
-
// }
|
240 |
-
// }
|
241 |
-
//
|
242 |
-
// var wrap_width = jQuery('body').width();
|
243 |
-
// jQuery('#bodyInner').css({
|
244 |
-
// "width": wrap_width
|
245 |
-
// });
|
246 |
-
// jQuery('#wrap').css({
|
247 |
-
// "width": wrap_width
|
248 |
-
// });
|
249 |
-
//
|
250 |
-
// var menu_width = wrap_width - 60 + 'px';
|
251 |
-
//
|
252 |
-
// jQuery('#wrap').stop().animate({
|
253 |
-
// "margin-left": "0"
|
254 |
-
// }, 200);
|
255 |
-
// jQuery('header.siteHeader').stop().animate({
|
256 |
-
// "left": "0"
|
257 |
-
// }, 200);
|
258 |
-
//
|
259 |
-
// if (menuPosition == 'right') {
|
260 |
-
// jQuery('header.siteHeader').stop().animate({
|
261 |
-
// "left": "0"
|
262 |
-
// }, 200);
|
263 |
-
// jQuery('#navSection').stop().animate({
|
264 |
-
// "right": "-" + menu_width
|
265 |
-
// }, 200, function() {
|
266 |
-
// menuClose_common();
|
267 |
-
// });
|
268 |
-
// } else if (menuPosition == 'left') {
|
269 |
-
// jQuery('#navSection').stop().animate({
|
270 |
-
// "left": "-" + menu_width
|
271 |
-
// }, 200, function() {
|
272 |
-
// menuClose_common();
|
273 |
-
// });
|
274 |
-
// }
|
275 |
-
// }
|
276 |
-
//
|
277 |
-
// function menuClose_common() {
|
278 |
-
// // アニメーションが終わってから実行
|
279 |
-
// jQuery('#navSection').removeClass('navSection_open_right');
|
280 |
-
// jQuery('#navSection').removeClass('navSection_open_left');
|
281 |
-
// jQuery('#navSection').css({
|
282 |
-
// "right": "",
|
283 |
-
// "left": "",
|
284 |
-
// "display": ""
|
285 |
-
// });
|
286 |
-
// jQuery('#headerTop').prependTo('header.siteHeader');
|
287 |
-
// jQuery('#bodyInner').css({
|
288 |
-
// "width": ""
|
289 |
-
// });
|
290 |
-
// jQuery('#wrap').css({
|
291 |
-
// "width": ""
|
292 |
-
// });
|
293 |
-
// // judge animate execution
|
294 |
-
// if (jQuery('#navSection').is(':animated')) {
|
295 |
-
// jQuery('#gMenu_outer').insertAfter('.navbar-header');
|
296 |
-
// }
|
297 |
-
// }
|
298 |
-
//
|
299 |
-
// function run_menuResize() {
|
300 |
-
// var wrap_width = jQuery('body').width();
|
301 |
-
// jQuery('#bodyInner').css({
|
302 |
-
// "width": wrap_width
|
303 |
-
// });
|
304 |
-
// // jQuery('#wrap').css({"width":wrap_width,"margin-left":"","margin-right":""});
|
305 |
-
// // menuClose_common();
|
306 |
-
// var headerHeight = jQuery('header.siteHeader').height;
|
307 |
-
// jQuery('#top__fullcarousel').css({
|
308 |
-
// "margin-top": headerHeight
|
309 |
-
// });
|
310 |
-
// if (wrap_width > 991) {
|
311 |
-
// slide_menu_close();
|
312 |
-
// }
|
313 |
-
// }
|
145 |
});
|
146 |
|
147 |
})(jQuery);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
inc/vk-mobile-nav/js/vk-mobile-nav.min.js
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
;(function($){jQuery(document).ready(function(){jQuery('.vk-mobile-nav-menu-btn').click(function(){if(jQuery(this).hasClass('menu-open')){jQuery(this).removeClass('menu-open');jQuery('.vk-mobile-nav').removeClass('vk-mobile-nav-open');}else{jQuery(this).addClass('menu-open');jQuery('.vk-mobile-nav').addClass('vk-mobile-nav-open');}});});})(jQuery);;(function($){function vk_menu_acc_run(){var breakPoint=5000;var bodyWidth=window.innerWidth;if(bodyWidth<=breakPoint){$.when(vk_menu_acc_clear()).done(function(){vk_menu_acc_init();vk_menu_acc_click();});}else{vk_menu_acc_clear();}}
|
3 |
+
function vk_menu_acc_clear(){jQuery('ul.vk-menu-acc').removeClass('vk-menu-acc-active');jQuery('ul.vk-menu-acc li').removeClass('acc-parent-open');jQuery('ul.vk-menu-acc li .acc-btn').remove();jQuery('ul.vk-menu-acc li .acc-child-close').removeClass('acc-child-close');jQuery('ul.vk-menu-acc li .acc-child-open').removeClass('acc-child-open');}
|
4 |
+
function vk_menu_acc_init(){jQuery('ul.vk-menu-acc').addClass('vk-menu-acc-active');jQuery('ul.vk-menu-acc li ul').each(function(){jQuery(this).prev().after('<span class="acc-btn acc-btn-open"></span>');jQuery(this).addClass("acc-child-close");});}
|
5 |
+
function vk_menu_acc_click(){jQuery('ul.vk-menu-acc li .acc-btn').click(function(){if(jQuery(this).hasClass('acc-btn-open')){jQuery(this).parent().addClass('acc-parent-open');jQuery(this).removeClass('acc-btn-open').addClass('acc-btn-close');jQuery(this).next().removeClass('acc-child-close').addClass('acc-child-open');}else{jQuery(this).parent().removeClass('acc-parent-open');jQuery(this).removeClass('acc-btn-close').addClass('acc-btn-open');jQuery(this).next().removeClass('acc-child-open').addClass('acc-child-close');}});}
|
6 |
+
function vk_menu_acc_resize(){var timer=false;var before_window_size=jQuery(window).width();var window_size_margin=8;$(window).resize(function(){if(timer!==false){clearTimeout(timer);}
|
7 |
+
timer=setTimeout(function(){var after_window_size=jQuery(window).width();var max_change_size=before_window_size+window_size_margin;var min_change_size=before_window_size-window_size_margin;if(after_window_size<min_change_size||max_change_size<after_window_size){vk_menu_acc_run();before_window_size=after_window_size;}else{}},500);});}
|
8 |
+
vk_menu_acc_run();vk_menu_acc_resize();jQuery(document).ready(function(){vk_menu_acc_run();});})(jQuery);
|