ShiftNav – Responsive Mobile Menu - Version 1.3.0.2

Version Description

  • Enhancement: Improved scrolling on Android with latest version of Chrome
  • Enhancement: Clear license data when deleted
  • Fix: ScrollTo JS quotes corner case
Download this release

Release Info

Developer sevenspark
Plugin Icon 128x128 ShiftNav – Responsive Mobile Menu
Version 1.3.0.2
Comparing to
See all releases

Code changes from version 1.3.0.1 to 1.3.0.2

admin/settings.config.php CHANGED
@@ -74,7 +74,6 @@ function shiftnav_get_settings_fields(){
74
  //'options' => get_registered_nav_menus()
75
  ),
76
 
77
-
78
  array(
79
  'name' => 'indent_submenus',
80
  'label' => __( 'Indent Always Visible Submenus' , 'shiftnav' ),
74
  //'options' => get_registered_nav_menus()
75
  ),
76
 
 
77
  array(
78
  'name' => 'indent_submenus',
79
  'label' => __( 'Indent Always Visible Submenus' , 'shiftnav' ),
admin/settings.menu.php CHANGED
@@ -333,7 +333,7 @@ function shiftnav_menu_item_settings(){
333
  'default' => 'default',
334
  'desc' => __( '[Requires Pro Version] Overrides the default submenu type. For the Lite version, only "Always visible" is available. Can be changed to "Accordion" or "Shift" with the Pro version.' , 'shiftnav' ),
335
  'ops' => array(
336
- 'default' => __( 'Menu Default (Always Visible for Lite)', 'shiftnav' ),
337
  'always' => __( 'Always visible', 'shiftnav' ),
338
  ),
339
  );
333
  'default' => 'default',
334
  'desc' => __( '[Requires Pro Version] Overrides the default submenu type. For the Lite version, only "Always visible" is available. Can be changed to "Accordion" or "Shift" with the Pro version.' , 'shiftnav' ),
335
  'ops' => array(
336
+ 'default' => __( 'Menu Default', 'shiftnav' ),
337
  'always' => __( 'Always visible', 'shiftnav' ),
338
  ),
339
  );
assets/css/less/base.less CHANGED
@@ -20,6 +20,8 @@
20
  margin:0;
21
  background:none;
22
  position:relative;
 
 
23
  }
24
 
25
  body.shiftnav-lock-x.shiftnav-enabled{
20
  margin:0;
21
  background:none;
22
  position:relative;
23
+ max-width:100%;
24
+ overflow:hidden;
25
  }
26
 
27
  body.shiftnav-lock-x.shiftnav-enabled{
assets/css/less/toggle.less CHANGED
@@ -11,6 +11,7 @@
11
  top:0;
12
  left:0;
13
  width:100%;
 
14
  box-sizing:border-box;
15
  padding:0 10px;
16
  z-index:500000;
11
  top:0;
12
  left:0;
13
  width:100%;
14
+ max-width:100%;
15
  box-sizing:border-box;
16
  padding:0 10px;
17
  z-index:500000;
assets/css/shiftnav.css CHANGED
@@ -19,6 +19,8 @@
19
  margin: 0;
20
  background: none;
21
  position: relative;
 
 
22
  }
23
  body.shiftnav-lock-x.shiftnav-enabled {
24
  overflow-x: hidden;
@@ -46,6 +48,7 @@ body.shiftnav-enabled.shiftnav-transition.admin-bar {
46
  top: 0;
47
  left: 0;
48
  width: 100%;
 
49
  box-sizing: border-box;
50
  padding: 0 10px;
51
  z-index: 500000;
19
  margin: 0;
20
  background: none;
21
  position: relative;
22
+ max-width: 100%;
23
+ overflow: hidden;
24
  }
25
  body.shiftnav-lock-x.shiftnav-enabled {
26
  overflow-x: hidden;
48
  top: 0;
49
  left: 0;
50
  width: 100%;
51
+ max-width: 100%;
52
  box-sizing: border-box;
53
  padding: 0 10px;
54
  z-index: 500000;
assets/css/shiftnav.min.css CHANGED
@@ -1 +1 @@
1
- .shiftnav,.shiftnav *,.shiftnav-toggle,.shiftnav-toggle *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;-o-box-sizing:border-box;box-sizing:border-box;line-height:1.3em;-webkit-tap-highlight-color:transparent;padding:0;margin:0;background:none}.shiftnav-wrap{padding:0;margin:0;background:0 0;position:relative}body.shiftnav-lock-x.shiftnav-enabled{overflow-x:hidden}body.shiftnav-lock.shiftnav-open{overflow:hidden}body.shiftnav-transition{overflow:visible}.shiftnav,.shiftnav-inner{overflow-y:auto;overflow-x:hidden}.shiftnav-toggle{cursor:pointer}#shiftnav-toggle-main{position:fixed;top:0;left:0;width:100%;box-sizing:border-box;padding:0 10px;z-index:500000;-ms-transition:-ms-transform .5s;-o-transition:-o-transform .5s;transition:transform .5s;text-align:center;background:#1D1D20;color:#eee}#shiftnav-toggle-main,.shiftnav-fixed-left,.shiftnav-fixed-right{-webkit-transition:-webkit-transform .5s;-moz-transition:-moz-transform .5s}#shiftnav-toggle-main.shiftnav-toggle-position-absolute{position:absolute}#shiftnav-toggle-main.shiftnav-toggle-main-align-left{text-align:left}#shiftnav-toggle-main.shiftnav-toggle-main-align-right{text-align:right}#shiftnav-toggle-main a{color:inherit;text-decoration:none}#shiftnav-toggle-main .shiftnav-main-toggle-content-after>*,#shiftnav-toggle-main .shiftnav-main-toggle-content-before>*{position:relative;z-index:20}#shiftnav-toggle-main .shiftnav-main-toggle-content-before{float:left}#shiftnav-toggle-main .shiftnav-main-toggle-content-after{float:right}#shiftnav-toggle-main .shiftnav-main-toggle-content{padding:16px 40px}#shiftnav-toggle-main.shiftnav-toggle-main-align-center .shiftnav-main-toggle-content{width:100%;box-sizing:border-box;position:absolute;left:0}.shiftnav-toggle-main-block{padding:16px 20px;display:inline-block}.shiftnav-toggle-main-ontop{position:relative;z-index:20}#shiftnav-toggle-main .shiftnav-toggle-burger,#shiftnav-toggle-main.shiftnav-toggle-main-entire-bar:before{float:left;content:'\f0c9';font-family:FontAwesome;padding:16px 20px;margin-left:-10px;position:relative;z-index:20}.shiftnav-open #shiftnav-toggle-main.shiftnav-toggle-icon-x .shiftnav-toggle-burger .fa:before,.shiftnav-open #shiftnav-toggle-main.shiftnav-toggle-main-entire-bar.shiftnav-toggle-icon-x:before{content:'\f00d'}#shiftnav-toggle-main.shiftnav-toggle-edge-right .shiftnav-toggle-burger,#shiftnav-toggle-main.shiftnav-toggle-edge-right.shiftnav-toggle-main-entire-bar:before,.shiftnav-open-right #shiftnav-toggle-main.shiftnav-toggle-main-entire-bar:before{float:right;padding-left:20px}.shiftnav-open-left #shiftnav-toggle-main.shiftnav-toggle-edge-right .shiftnav-toggle-burger .fa:before,.shiftnav-open-left #shiftnav-toggle-main.shiftnav-toggle-edge-right:before{float:left;padding-left:0;padding-right:20px}.shiftnav-force #shiftnav-toggle-main{display:block!important}.shiftnav-toggle-style-default{background:#333;color:#eee;padding:10px}.shiftnav-toggle-style-default:hover{background:#222;color:#ddd}.shiftnav-toggle-style-default .fa{margin-right:5px}.shiftnav-toggle-button{display:inline-block;padding:10px 15px;background:#444;color:#eee}.shiftnav-toggle-button:hover{display:inline-block;padding:10px 15px;background:#222;color:#eee}.shiftnav-toggle-button .fa{margin-right:3px}.shiftnav-fixed-left,.shiftnav-fixed-right{position:fixed;top:0;z-index:9999999;-ms-transition:-ms-transform .5s;-o-transition:-o-transform .5s;transition:transform .5s}.shiftnav-fixed-right{right:0}.shiftnav-fixed-left{left:0}.admin-bar .shiftnav-fixed-left,.admin-bar .shiftnav-fixed-right{top:32px}@media screen and (max-width:782px){.admin-bar .shiftnav-fixed-left,.admin-bar .shiftnav-fixed-right{top:46px}}.shiftnav-open .shiftnav-toggle .shiftnav-icon-toggler:before,.shiftnav-open-left .shiftnav-toggle .shiftnav-icon-toggler-left:before,.shiftnav-open-right .shiftnav-toggle .shiftnav-icon-toggler-right:before{content:"\f00d"}.shiftnav-open.shiftnav-open-left #shiftnav-toggle-main,.shiftnav-open.shiftnav-open-left .shiftnav-wrap,.shiftnav-open.shiftnav-open-left>.shiftnav-fixed-left{-webkit-transform:translateX(290px);-moz-transform:translateX(290px);-ms-transform:translateX(290px);-o-transform:translateX(290px);transform:translateX(290px)}.shiftnav-open.shiftnav-open-right #shiftnav-toggle-main,.shiftnav-open.shiftnav-open-right .shiftnav-wrap,.shiftnav-open.shiftnav-open-right>.shiftnav-fixed-right{-webkit-transform:translateX(-290px);-moz-transform:translateX(-290px);-ms-transform:translateX(-290px);-o-transform:translateX(-290px);transform:translateX(-290px)}@media screen and (min-width:767px){.shiftnav-open #shiftnav-toggle-main{-webkit-transition-delay:.02s;-moz-transition-delay:.02s;-ms-transition-delay:.02s;-o-transition-delay:.02s;transition-delay:.02s}}body.admin-bar #shiftnav-toggle-main,body.admin-bar .shiftnav{top:32px}body.admin-bar .shiftnav{padding-bottom:32px}@media screen and (min-width:600px)and (max-width:782px){body.admin-bar #shiftnav-toggle-main,body.admin-bar .shiftnav{top:46px}body.admin-bar .shiftnav{padding-bottom:46px}}@media screen and (max-width:600px){body.admin-bar #shiftnav-toggle-main,body.admin-bar .shiftnav{top:0}body.admin-bar .shiftnav{padding-bottom:0}html #shiftnav-toggle-main~#wpadminbar{top:54px}}.shiftnav-wrap{left:0;top:0;z-index:250;padding-top:1px;margin-top:-1px;transition:transform .5s}.shiftnav,.shiftnav-wrap{-o-transition:-o-transform .5s;-ms-transition:-ms-transform .5s;-moz-transition:-moz-transform .5s;-webkit-transition:-webkit-transform .5s}.shiftnav-open .shiftnav-wrap{height:100%}@media screen and (min-width:767px){.shiftnav-open .shiftnav-wrap{-webkit-transition-delay:.02s;-moz-transition-delay:.02s;-ms-transition-delay:.02s;-o-transition-delay:.02s;transition-delay:.02s}}.shiftnav:after{content:' ';display:block;position:absolute;right:-15px;top:0;height:100%;width:15px;background:0 0;-webkit-box-shadow:0 0 15px rgba(0,0,0,.8);-moz-box-shadow:0 0 15px rgba(0,0,0,.8);-ms-box-shadow:0 0 15px rgba(0,0,0,.8);-o-box-shadow:0 0 15px rgba(0,0,0,.8);box-shadow:0 0 15px rgba(0,0,0,.8);z-index:10000}.shiftnav,.shiftnav-no-transforms .shiftnav{width:290px}.shiftnav.shiftnav-right-edge:after{left:-15px;right:auto}.shiftnav-no-transforms .shiftnav:after{display:none!important}.shiftnav.shiftnav-nojs{display:none}.shiftnav{position:fixed;top:0;height:100%;background:#fff;z-index:600000;transition:transform .5s}.shiftnav-inner{-webkit-overflow-scrolling:touch;height:100%}.shiftnav.shiftnav-left-edge{left:0;-webkit-transform:translateX(-100%);-moz-transform:translateX(-100%);-ms-transform:translateX(-100%);-o-transform:translateX(-100%);transform:translateX(-100%)}.shiftnav.shiftnav-right-edge{right:0;-webkit-transform:translateX(100%);-moz-transform:translateX(100%);-ms-transform:translateX(100%);-o-transform:translateX(100%);transform:translateX(100%)}.shiftnav-open .shiftnav.shiftnav-open-target{-webkit-transform:translateX(0);-moz-transform:translateX(0);-ms-transform:translateX(0);-o-transform:translateX(0);transform:translateX(0)}.shiftnav-no-transforms .shiftnav.shiftnav-left-edge{left:-290px}.shiftnav-no-transforms.shiftnav-open .shiftnav.shiftnav-open-target.shiftnav-left-edge{left:0}.shiftnav-no-transforms .shiftnav.shiftnav-right-edge{left:auto;right:-290px}.shiftnav-no-transforms.shiftnav-open .shiftnav.shiftnav-open-target.shiftnav-right-edge{right:0}.shiftnav-no-transforms #shiftnav-toggle-main,.shiftnav-no-transforms .shiftnav{-webkit-transition:none;-moz-transition:none;-ms-transition:none;-o-transition:none;transition:none}.shiftnav-no-transforms.shiftnav-open-left #shiftnav-toggle-main{left:290px}.shiftnav-no-transforms.shiftnav-open-right #shiftnav-toggle-main{left:auto;right:290px}.shiftnav-no-transforms #shiftnav-toggle-main,.shiftnav-no-transforms .shiftnav-wrap{-webkit-transform:none!important;-moz-transform:none!important;-ms-transform:none!important;-o-transform:none!important;transform:none!important}.shiftnav-no-transforms .shiftnav-inner{padding-top:30px}.shiftnav .shiftnav-menu-title{font-size:30px;text-align:center;padding:40px 25px;font-weight:400;margin:0;color:inherit}.shiftnav-menu-title a,.shiftnav-menu-title a:hover,.shiftnav-menu-title a:visited{color:inherit;text-decoration:none}.shiftnav .shiftnav-menu-image-padded{padding:25px}.shiftnav .shiftnav-menu-image a{display:block}.shiftnav .shiftnav-menu-image img{max-width:100%;height:auto}.shiftnav ul.shiftnav-menu{position:relative;clear:both;overflow:hidden}.shiftnav ul.shiftnav-menu,.shiftnav ul.shiftnav-menu ul.sub-menu{list-style:none;margin:0;padding:0}.shiftnav ul.shiftnav-menu li.menu-item{position:relative;margin:0;padding:0;background:none;list-style-type:none}.shiftnav ul.shiftnav-menu li.menu-item>.shiftnav-target,.shiftnav ul.shiftnav-menu li.shiftnav-retract>.shiftnav-target{display:block;padding:6px 25px;line-height:300%;text-decoration:none;position:relative;cursor:pointer;-webkit-transition:.2s all ease;-moz-transition:.2s all ease;-ms-transition:.2s all ease;-o-transition:.2s all ease;transition:.2s all ease}.shiftnav ul.shiftnav-menu li.menu-item.shiftnav-has-icon>.shiftnav-target>i.shiftnav-icon{margin-right:.8em;font-size:150%;vertical-align:middle;line-height:inherit;width:1.2em;text-align:center}.shiftnav ul.shiftnav-menu li.menu-item.shiftnav-has-icon>.shiftnav-target>i.shiftnav-icon:before{vertical-align:top}.shiftnav ul.shiftnav-menu.shiftnav-targets-icon-enormous li.menu-item.shiftnav-has-icon>.shiftnav-target>i.shiftnav-icon:before,.shiftnav ul.shiftnav-menu.shiftnav-targets-icon-large li.menu-item.shiftnav-has-icon>.shiftnav-target>i.shiftnav-icon:before{vertical-align:middle}.shiftnav ul.shiftnav-menu li.menu-item.shiftnav-has-icon>.shiftnav-target>span.shiftnav-target-text{vertical-align:middle;display:inline-block;line-height:inherit}.shiftnav ul.shiftnav-menu li.shiftnav-retract,.shiftnav ul.shiftnav-menu li.shiftnav-sub-shift li.shiftnav-active~li.shiftnav-retract{display:none;margin:0}.shiftnav ul.shiftnav-menu li.shiftnav-sub-shift>.sub-menu>li.shiftnav-retract{display:block}.shiftnav ul.shiftnav-menu.shiftnav-targets-medium li.menu-item>.shiftnav-target{padding-top:10px!important;padding-bottom:10px!important}.shiftnav ul.shiftnav-menu.shiftnav-targets-large li.menu-item>.shiftnav-target{padding-top:16px!important;padding-bottom:16px!important}.shiftnav ul.shiftnav-menu.shiftnav-targets-enormous li.menu-item>.shiftnav-target{padding-top:24px!important;padding-bottom:24px!important}.shiftnav ul.shiftnav-menu.shiftnav-targets-text-small li.menu-item>.shiftnav-target{font-size:12px!important}.shiftnav ul.shiftnav-menu.shiftnav-targets-text-medium li.menu-item>.shiftnav-target{font-size:14px!important}.shiftnav ul.shiftnav-menu.shiftnav-targets-text-large li.menu-item>.shiftnav-target{font-size:16px!important}.shiftnav ul.shiftnav-menu.shiftnav-targets-text-enormous li.menu-item>.shiftnav-target{font-size:22px!important}.shiftnav ul.shiftnav-menu.shiftnav-targets-icon-small li.menu-item>.shiftnav-target>i.shiftnav-icon{font-size:100%!important}.shiftnav ul.shiftnav-menu.shiftnav-targets-icon-medium li.menu-item>.shiftnav-target>i.shiftnav-icon{font-size:140%!important}.shiftnav ul.shiftnav-menu.shiftnav-targets-icon-large li.menu-item>.shiftnav-target>i.shiftnav-icon{font-size:180%!important}.shiftnav ul.shiftnav-menu.shiftnav-targets-icon-enormous li.menu-item>.shiftnav-target>i.shiftnav-icon{font-size:250%!important}.shiftnav ul.shiftnav-menu.shiftnav-indent-subs li.shiftnav-sub-always ul.sub-menu li.menu-item>a{padding-left:50px}.shiftnav ul.shiftnav-menu.shiftnav-indent-subs li.shiftnav-sub-always ul.sub-menu ul.sub-menu li.menu-item>a{padding-left:75px}.shiftnav ul.shiftnav-menu.shiftnav-indent-subs li.shiftnav-sub-always ul.sub-menu ul.sub-menu ul.sub-menu li.menu-item>a{padding-left:100px}@media only screen and (max-width:960px){#shiftnav-toggle-main{font-size:16px}}@media only screen and (max-width:479px){.shiftnav{width:320px;max-width:90%}.shiftnav-open.shiftnav-open-left #shiftnav-toggle-main,.shiftnav-open.shiftnav-open-left .shiftnav-fixed-left,.shiftnav-open.shiftnav-open-left .shiftnav-wrap{-webkit-transform:translateX(320px);-moz-transform:translateX(320px);-ms-transform:translateX(320px);-o-transform:translateX(320px);transform:translateX(320px)}.shiftnav-open.shiftnav-open-right #shiftnav-toggle-main,.shiftnav-open.shiftnav-open-right .shiftnav-fixed-right,.shiftnav-open.shiftnav-open-right .shiftnav-wrap{-webkit-transform:translateX(-320px);-moz-transform:translateX(-320px);-ms-transform:translateX(-320px);-o-transform:translateX(-320px);transform:translateX(-320px)}.shiftnav .shiftnav-menu-title{font-size:30px;text-align:center;padding:20px 0;font-weight:400;margin:0}}@media only screen and (max-width:374px){.shiftnav{width:305px;max-width:90%}.shiftnav-open.shiftnav-open-left #shiftnav-toggle-main,.shiftnav-open.shiftnav-open-left .shiftnav-fixed-left,.shiftnav-open.shiftnav-open-left .shiftnav-wrap{-webkit-transform:translateX(305px);-moz-transform:translateX(305px);-ms-transform:translateX(305px);-o-transform:translateX(305px);transform:translateX(305px)}.shiftnav-open.shiftnav-open-right #shiftnav-toggle-main,.shiftnav-open.shiftnav-open-right .shiftnav-fixed-right,.shiftnav-open.shiftnav-open-right .shiftnav-wrap{-webkit-transform:translateX(-305px);-moz-transform:translateX(-305px);-ms-transform:translateX(-305px);-o-transform:translateX(-305px);transform:translateX(-305px)}}@media only screen and (max-width:359px){.shiftnav{width:265px;max-width:90%}.shiftnav-open.shiftnav-open-left #shiftnav-toggle-main,.shiftnav-open.shiftnav-open-left .shiftnav-fixed-left,.shiftnav-open.shiftnav-open-left .shiftnav-wrap{-webkit-transform:translateX(265px);-moz-transform:translateX(265px);-ms-transform:translateX(265px);-o-transform:translateX(265px);transform:translateX(265px)}.shiftnav-open.shiftnav-open-right #shiftnav-toggle-main,.shiftnav-open.shiftnav-open-right .shiftnav-fixed-right,.shiftnav-open.shiftnav-open-right .shiftnav-wrap{-webkit-transform:translateX(-265px);-moz-transform:translateX(-265px);-ms-transform:translateX(-265px);-o-transform:translateX(-265px);transform:translateX(-265px)}}@media only screen and (max-width:319px){.shiftnav{width:230px;max-width:90%}.shiftnav-open.shiftnav-open-left #shiftnav-toggle-main,.shiftnav-open.shiftnav-open-left .shiftnav-fixed-left,.shiftnav-open.shiftnav-open-left .shiftnav-wrap{-webkit-transform:translateX(230px);-moz-transform:translateX(230px);-ms-transform:translateX(230px);-o-transform:translateX(230px);transform:translateX(230px)}.shiftnav-open.shiftnav-open-right #shiftnav-toggle-main,.shiftnav-open.shiftnav-open-right .shiftnav-fixed-right,.shiftnav-open.shiftnav-open-right .shiftnav-wrap{-webkit-transform:translateX(-230px);-moz-transform:translateX(-230px);-ms-transform:translateX(-230px);-o-transform:translateX(-230px);transform:translateX(-230px)}}.shiftnav-content-wrap{padding:25px}.shiftnav-content-wrap-small{padding:10px}.shiftnav-admin-tip{background:#eee;color:#333;padding:20px;border-left:4px solid #E6D244;margin:10px}.shiftnav-admin-tip a,.shiftnav-admin-tip a:visited{color:#00A3FF;text-decoration:underline}.shiftnav-admin-tip a:hover{color:#0D75AF}.shiftnav-admin-tip strong{color:tomato}.shiftnav-loading{display:block;position:fixed;bottom:0;right:20px;background:#35AC6A;color:#fff;padding:15px;max-width:400px}.shiftnav-loading h5{color:#fff;font-weight:700;margin:0}.shiftnav-loading:hover h5{padding-bottom:5px;border-bottom:1px solid #fff}.shiftnav-loading .shiftnav-loading-message{color:#fff;max-height:0;overflow:hidden;visibility:hidden;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-transition:all .3s ease-in;transition:all .3s ease-in}.shiftnav-loading:hover .shiftnav-loading-message{visibility:visible;max-height:1000px;overflow:auto}.shiftnav-loading .shiftnav-loading-message p{color:#fff;margin:10px 0}.ie7 .shiftnav,.ie7 .shiftnav-toggle,.ie8 .shiftnav,.ie8 .shiftnav-toggle,.lt-ie9 .shiftnav,.lt-ie9 .shiftnav-toggle{display:none!important}
1
+ .shiftnav-wrap,body.shiftnav-lock.shiftnav-open{overflow:hidden}.shiftnav,.shiftnav *,.shiftnav-toggle,.shiftnav-toggle *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;-o-box-sizing:border-box;box-sizing:border-box;line-height:1.3em;-webkit-tap-highlight-color:transparent;padding:0;margin:0;background:none}.shiftnav-wrap{padding:0;margin:0;background:0 0;position:relative;max-width:100%}body.shiftnav-lock-x.shiftnav-enabled{overflow-x:hidden}body.shiftnav-transition{overflow:visible}.shiftnav,.shiftnav-inner{height:100%;overflow-y:auto;overflow-x:hidden}.shiftnav-toggle{cursor:pointer}#shiftnav-toggle-main{position:fixed;left:0;width:100%;max-width:100%;box-sizing:border-box;padding:0 10px;z-index:500000;transition:transform .5s;text-align:center;background:#1D1D20;color:#eee}#shiftnav-toggle-main,.shiftnav-fixed-left,.shiftnav-fixed-right{top:0;-webkit-transition:-webkit-transform .5s;-moz-transition:-moz-transform .5s;-ms-transition:-ms-transform .5s;-o-transition:-o-transform .5s}#shiftnav-toggle-main.shiftnav-toggle-position-absolute{position:absolute}#shiftnav-toggle-main.shiftnav-toggle-main-align-left{text-align:left}#shiftnav-toggle-main.shiftnav-toggle-main-align-right{text-align:right}#shiftnav-toggle-main a{color:inherit;text-decoration:none}#shiftnav-toggle-main .shiftnav-main-toggle-content-after>*,#shiftnav-toggle-main .shiftnav-main-toggle-content-before>*{position:relative;z-index:20}#shiftnav-toggle-main .shiftnav-main-toggle-content-before{float:left}#shiftnav-toggle-main .shiftnav-main-toggle-content-after{float:right}#shiftnav-toggle-main .shiftnav-main-toggle-content{padding:16px 40px}#shiftnav-toggle-main.shiftnav-toggle-main-align-center .shiftnav-main-toggle-content{width:100%;box-sizing:border-box;position:absolute;left:0}.shiftnav-toggle-main-block{padding:16px 20px;display:inline-block}.shiftnav-toggle-main-ontop{position:relative;z-index:20}#shiftnav-toggle-main .shiftnav-toggle-burger,#shiftnav-toggle-main.shiftnav-toggle-main-entire-bar:before{float:left;content:'\f0c9';font-family:FontAwesome;padding:16px 20px;margin-left:-10px;position:relative;z-index:20}.shiftnav-open #shiftnav-toggle-main.shiftnav-toggle-icon-x .shiftnav-toggle-burger .fa:before,.shiftnav-open #shiftnav-toggle-main.shiftnav-toggle-main-entire-bar.shiftnav-toggle-icon-x:before{content:'\f00d'}#shiftnav-toggle-main.shiftnav-toggle-edge-right .shiftnav-toggle-burger,#shiftnav-toggle-main.shiftnav-toggle-edge-right.shiftnav-toggle-main-entire-bar:before,.shiftnav-open-right #shiftnav-toggle-main.shiftnav-toggle-main-entire-bar:before{float:right;padding-left:20px}.shiftnav-open-left #shiftnav-toggle-main.shiftnav-toggle-edge-right .shiftnav-toggle-burger .fa:before,.shiftnav-open-left #shiftnav-toggle-main.shiftnav-toggle-edge-right:before{float:left;padding-left:0;padding-right:20px}.shiftnav-force #shiftnav-toggle-main{display:block!important}.shiftnav-toggle-style-default{background:#333;color:#eee;padding:10px}.shiftnav-toggle-style-default:hover{background:#222;color:#ddd}.shiftnav-toggle-style-default .fa{margin-right:5px}.shiftnav-toggle-button{display:inline-block;padding:10px 15px;background:#444;color:#eee}.shiftnav-toggle-button:hover{display:inline-block;padding:10px 15px;background:#222;color:#eee}.shiftnav-toggle-button .fa{margin-right:3px}.shiftnav-fixed-left,.shiftnav-fixed-right{position:fixed;z-index:9999999;transition:transform .5s}.shiftnav-fixed-right{right:0}.shiftnav-fixed-left{left:0}.admin-bar .shiftnav-fixed-left,.admin-bar .shiftnav-fixed-right{top:32px}@media screen and (max-width:782px){.admin-bar .shiftnav-fixed-left,.admin-bar .shiftnav-fixed-right{top:46px}}.shiftnav-open .shiftnav-toggle .shiftnav-icon-toggler:before,.shiftnav-open-left .shiftnav-toggle .shiftnav-icon-toggler-left:before,.shiftnav-open-right .shiftnav-toggle .shiftnav-icon-toggler-right:before{content:"\f00d"}.shiftnav-open.shiftnav-open-left #shiftnav-toggle-main,.shiftnav-open.shiftnav-open-left .shiftnav-wrap,.shiftnav-open.shiftnav-open-left>.shiftnav-fixed-left{-webkit-transform:translateX(290px);-moz-transform:translateX(290px);-ms-transform:translateX(290px);-o-transform:translateX(290px);transform:translateX(290px)}.shiftnav-open.shiftnav-open-right #shiftnav-toggle-main,.shiftnav-open.shiftnav-open-right .shiftnav-wrap,.shiftnav-open.shiftnav-open-right>.shiftnav-fixed-right{-webkit-transform:translateX(-290px);-moz-transform:translateX(-290px);-ms-transform:translateX(-290px);-o-transform:translateX(-290px);transform:translateX(-290px)}@media screen and (min-width:767px){.shiftnav-open #shiftnav-toggle-main{-webkit-transition-delay:.02s;-moz-transition-delay:.02s;-ms-transition-delay:.02s;-o-transition-delay:.02s;transition-delay:.02s}}body.admin-bar #shiftnav-toggle-main,body.admin-bar .shiftnav{top:32px}body.admin-bar .shiftnav{padding-bottom:32px}@media screen and (min-width:600px) and (max-width:782px){body.admin-bar #shiftnav-toggle-main,body.admin-bar .shiftnav{top:46px}body.admin-bar .shiftnav{padding-bottom:46px}}@media screen and (max-width:600px){body.admin-bar #shiftnav-toggle-main,body.admin-bar .shiftnav{top:0}body.admin-bar .shiftnav{padding-bottom:0}html #shiftnav-toggle-main~#wpadminbar{top:54px}}.shiftnav-wrap{left:0;z-index:250;padding-top:1px;margin-top:-1px;transition:transform .5s}.shiftnav,.shiftnav-wrap{top:0;-webkit-transition:-webkit-transform .5s;-moz-transition:-moz-transform .5s;-ms-transition:-ms-transform .5s;-o-transition:-o-transform .5s}.shiftnav-open .shiftnav-wrap{height:100%}@media screen and (min-width:767px){.shiftnav-open .shiftnav-wrap{-webkit-transition-delay:.02s;-moz-transition-delay:.02s;-ms-transition-delay:.02s;-o-transition-delay:.02s;transition-delay:.02s}}.shiftnav:after{content:' ';display:block;position:absolute;right:-15px;top:0;height:100%;width:15px;background:0 0;-webkit-box-shadow:0 0 15px rgba(0,0,0,.8);-moz-box-shadow:0 0 15px rgba(0,0,0,.8);-ms-box-shadow:0 0 15px rgba(0,0,0,.8);-o-box-shadow:0 0 15px rgba(0,0,0,.8);box-shadow:0 0 15px rgba(0,0,0,.8);z-index:10000}.shiftnav,.shiftnav-no-transforms .shiftnav{width:290px}.shiftnav.shiftnav-right-edge:after{left:-15px;right:auto}.shiftnav-no-transforms .shiftnav:after{display:none!important}.shiftnav.shiftnav-nojs{display:none}.shiftnav{position:fixed;background:#fff;z-index:600000;transition:transform .5s}.shiftnav-inner{-webkit-overflow-scrolling:touch}.shiftnav.shiftnav-left-edge{left:0;-webkit-transform:translateX(-100%);-moz-transform:translateX(-100%);-ms-transform:translateX(-100%);-o-transform:translateX(-100%);transform:translateX(-100%)}.shiftnav.shiftnav-right-edge{right:0;-webkit-transform:translateX(100%);-moz-transform:translateX(100%);-ms-transform:translateX(100%);-o-transform:translateX(100%);transform:translateX(100%)}.shiftnav-open .shiftnav.shiftnav-open-target{-webkit-transform:translateX(0);-moz-transform:translateX(0);-ms-transform:translateX(0);-o-transform:translateX(0);transform:translateX(0)}.shiftnav-no-transforms .shiftnav.shiftnav-left-edge{left:-290px}.shiftnav-no-transforms.shiftnav-open .shiftnav.shiftnav-open-target.shiftnav-left-edge{left:0}.shiftnav-no-transforms .shiftnav.shiftnav-right-edge{left:auto;right:-290px}.shiftnav-no-transforms.shiftnav-open .shiftnav.shiftnav-open-target.shiftnav-right-edge{right:0}.shiftnav-no-transforms #shiftnav-toggle-main,.shiftnav-no-transforms .shiftnav{-webkit-transition:none;-moz-transition:none;-ms-transition:none;-o-transition:none;transition:none}.shiftnav-no-transforms.shiftnav-open-left #shiftnav-toggle-main{left:290px}.shiftnav-no-transforms.shiftnav-open-right #shiftnav-toggle-main{left:auto;right:290px}.shiftnav-no-transforms #shiftnav-toggle-main,.shiftnav-no-transforms .shiftnav-wrap{-webkit-transform:none!important;-moz-transform:none!important;-ms-transform:none!important;-o-transform:none!important;transform:none!important}.shiftnav-no-transforms .shiftnav-inner{padding-top:30px}.shiftnav .shiftnav-menu-title{font-size:30px;text-align:center;padding:40px 25px;font-weight:400;margin:0;color:inherit}.shiftnav-menu-title a,.shiftnav-menu-title a:hover,.shiftnav-menu-title a:visited{color:inherit;text-decoration:none}.shiftnav .shiftnav-menu-image-padded{padding:25px}.shiftnav .shiftnav-menu-image a{display:block}.shiftnav .shiftnav-menu-image img{max-width:100%;height:auto}.shiftnav ul.shiftnav-menu{position:relative;clear:both;overflow:hidden}.shiftnav ul.shiftnav-menu,.shiftnav ul.shiftnav-menu ul.sub-menu{list-style:none;margin:0;padding:0}.shiftnav ul.shiftnav-menu li.menu-item{position:relative;margin:0;padding:0;background:none;list-style-type:none}.shiftnav ul.shiftnav-menu li.menu-item>.shiftnav-target,.shiftnav ul.shiftnav-menu li.shiftnav-retract>.shiftnav-target{display:block;padding:6px 25px;line-height:300%;text-decoration:none;position:relative;cursor:pointer;-webkit-transition:.2s all ease;-moz-transition:.2s all ease;-ms-transition:.2s all ease;-o-transition:.2s all ease;transition:.2s all ease}.shiftnav ul.shiftnav-menu li.menu-item.shiftnav-has-icon>.shiftnav-target>i.shiftnav-icon{margin-right:.8em;font-size:150%;vertical-align:middle;line-height:inherit;width:1.2em;text-align:center}.shiftnav ul.shiftnav-menu li.menu-item.shiftnav-has-icon>.shiftnav-target>i.shiftnav-icon:before{vertical-align:top}.shiftnav ul.shiftnav-menu.shiftnav-targets-icon-enormous li.menu-item.shiftnav-has-icon>.shiftnav-target>i.shiftnav-icon:before,.shiftnav ul.shiftnav-menu.shiftnav-targets-icon-large li.menu-item.shiftnav-has-icon>.shiftnav-target>i.shiftnav-icon:before{vertical-align:middle}.shiftnav ul.shiftnav-menu li.menu-item.shiftnav-has-icon>.shiftnav-target>span.shiftnav-target-text{vertical-align:middle;display:inline-block;line-height:inherit}.shiftnav ul.shiftnav-menu li.shiftnav-retract,.shiftnav ul.shiftnav-menu li.shiftnav-sub-shift li.shiftnav-active~li.shiftnav-retract{display:none;margin:0}.shiftnav ul.shiftnav-menu li.shiftnav-sub-shift>.sub-menu>li.shiftnav-retract{display:block}.shiftnav ul.shiftnav-menu.shiftnav-targets-medium li.menu-item>.shiftnav-target{padding-top:10px!important;padding-bottom:10px!important}.shiftnav ul.shiftnav-menu.shiftnav-targets-large li.menu-item>.shiftnav-target{padding-top:16px!important;padding-bottom:16px!important}.shiftnav ul.shiftnav-menu.shiftnav-targets-enormous li.menu-item>.shiftnav-target{padding-top:24px!important;padding-bottom:24px!important}.shiftnav ul.shiftnav-menu.shiftnav-targets-text-small li.menu-item>.shiftnav-target{font-size:12px!important}.shiftnav ul.shiftnav-menu.shiftnav-targets-text-medium li.menu-item>.shiftnav-target{font-size:14px!important}.shiftnav ul.shiftnav-menu.shiftnav-targets-text-large li.menu-item>.shiftnav-target{font-size:16px!important}.shiftnav ul.shiftnav-menu.shiftnav-targets-text-enormous li.menu-item>.shiftnav-target{font-size:22px!important}.shiftnav ul.shiftnav-menu.shiftnav-targets-icon-small li.menu-item>.shiftnav-target>i.shiftnav-icon{font-size:100%!important}.shiftnav ul.shiftnav-menu.shiftnav-targets-icon-medium li.menu-item>.shiftnav-target>i.shiftnav-icon{font-size:140%!important}.shiftnav ul.shiftnav-menu.shiftnav-targets-icon-large li.menu-item>.shiftnav-target>i.shiftnav-icon{font-size:180%!important}.shiftnav ul.shiftnav-menu.shiftnav-targets-icon-enormous li.menu-item>.shiftnav-target>i.shiftnav-icon{font-size:250%!important}.shiftnav ul.shiftnav-menu.shiftnav-indent-subs li.shiftnav-sub-always ul.sub-menu li.menu-item>a{padding-left:50px}.shiftnav ul.shiftnav-menu.shiftnav-indent-subs li.shiftnav-sub-always ul.sub-menu ul.sub-menu li.menu-item>a{padding-left:75px}.shiftnav ul.shiftnav-menu.shiftnav-indent-subs li.shiftnav-sub-always ul.sub-menu ul.sub-menu ul.sub-menu li.menu-item>a{padding-left:100px}@media only screen and (max-width:960px){#shiftnav-toggle-main{font-size:16px}}@media only screen and (max-width:479px){.shiftnav{width:320px;max-width:90%}.shiftnav-open.shiftnav-open-left #shiftnav-toggle-main,.shiftnav-open.shiftnav-open-left .shiftnav-fixed-left,.shiftnav-open.shiftnav-open-left .shiftnav-wrap{-webkit-transform:translateX(320px);-moz-transform:translateX(320px);-ms-transform:translateX(320px);-o-transform:translateX(320px);transform:translateX(320px)}.shiftnav-open.shiftnav-open-right #shiftnav-toggle-main,.shiftnav-open.shiftnav-open-right .shiftnav-fixed-right,.shiftnav-open.shiftnav-open-right .shiftnav-wrap{-webkit-transform:translateX(-320px);-moz-transform:translateX(-320px);-ms-transform:translateX(-320px);-o-transform:translateX(-320px);transform:translateX(-320px)}.shiftnav .shiftnav-menu-title{font-size:30px;text-align:center;padding:20px 0;font-weight:400;margin:0}}@media only screen and (max-width:374px){.shiftnav{width:305px;max-width:90%}.shiftnav-open.shiftnav-open-left #shiftnav-toggle-main,.shiftnav-open.shiftnav-open-left .shiftnav-fixed-left,.shiftnav-open.shiftnav-open-left .shiftnav-wrap{-webkit-transform:translateX(305px);-moz-transform:translateX(305px);-ms-transform:translateX(305px);-o-transform:translateX(305px);transform:translateX(305px)}.shiftnav-open.shiftnav-open-right #shiftnav-toggle-main,.shiftnav-open.shiftnav-open-right .shiftnav-fixed-right,.shiftnav-open.shiftnav-open-right .shiftnav-wrap{-webkit-transform:translateX(-305px);-moz-transform:translateX(-305px);-ms-transform:translateX(-305px);-o-transform:translateX(-305px);transform:translateX(-305px)}}@media only screen and (max-width:359px){.shiftnav{width:265px;max-width:90%}.shiftnav-open.shiftnav-open-left #shiftnav-toggle-main,.shiftnav-open.shiftnav-open-left .shiftnav-fixed-left,.shiftnav-open.shiftnav-open-left .shiftnav-wrap{-webkit-transform:translateX(265px);-moz-transform:translateX(265px);-ms-transform:translateX(265px);-o-transform:translateX(265px);transform:translateX(265px)}.shiftnav-open.shiftnav-open-right #shiftnav-toggle-main,.shiftnav-open.shiftnav-open-right .shiftnav-fixed-right,.shiftnav-open.shiftnav-open-right .shiftnav-wrap{-webkit-transform:translateX(-265px);-moz-transform:translateX(-265px);-ms-transform:translateX(-265px);-o-transform:translateX(-265px);transform:translateX(-265px)}}@media only screen and (max-width:319px){.shiftnav{width:230px;max-width:90%}.shiftnav-open.shiftnav-open-left #shiftnav-toggle-main,.shiftnav-open.shiftnav-open-left .shiftnav-fixed-left,.shiftnav-open.shiftnav-open-left .shiftnav-wrap{-webkit-transform:translateX(230px);-moz-transform:translateX(230px);-ms-transform:translateX(230px);-o-transform:translateX(230px);transform:translateX(230px)}.shiftnav-open.shiftnav-open-right #shiftnav-toggle-main,.shiftnav-open.shiftnav-open-right .shiftnav-fixed-right,.shiftnav-open.shiftnav-open-right .shiftnav-wrap{-webkit-transform:translateX(-230px);-moz-transform:translateX(-230px);-ms-transform:translateX(-230px);-o-transform:translateX(-230px);transform:translateX(-230px)}}.shiftnav-content-wrap{padding:25px}.shiftnav-content-wrap-small{padding:10px}.shiftnav-admin-tip{background:#eee;color:#333;padding:20px;border-left:4px solid #E6D244;margin:10px}.shiftnav-admin-tip a,.shiftnav-admin-tip a:visited{color:#00A3FF;text-decoration:underline}.shiftnav-admin-tip a:hover{color:#0D75AF}.shiftnav-admin-tip strong{color:tomato}.shiftnav-loading{display:block;position:fixed;bottom:0;right:20px;background:#35AC6A;color:#fff;padding:15px;max-width:400px}.shiftnav-loading h5{color:#fff;font-weight:700;margin:0}.shiftnav-loading:hover h5{padding-bottom:5px;border-bottom:1px solid #fff}.shiftnav-loading .shiftnav-loading-message{color:#fff;max-height:0;overflow:hidden;visibility:hidden;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-transition:all .3s ease-in;transition:all .3s ease-in}.shiftnav-loading:hover .shiftnav-loading-message{visibility:visible;max-height:1000px;overflow:auto}.shiftnav-loading .shiftnav-loading-message p{color:#fff;margin:10px 0}.ie7 .shiftnav,.ie7 .shiftnav-toggle,.ie8 .shiftnav,.ie8 .shiftnav-toggle,.lt-ie9 .shiftnav,.lt-ie9 .shiftnav-toggle{display:none!important}
assets/js/shiftnav.js CHANGED
@@ -261,7 +261,13 @@
261
  $( '.shiftnav-searchbar-toggle' ).on( 'mouseup' , function( e ){
262
  toggle_clicked = false;
263
  });
264
-
 
 
 
 
 
 
265
 
266
  }
267
 
@@ -819,7 +825,7 @@ jQuery( document ).ready( function($){
819
  var hash = window.location.hash;
820
  if( hash.substring(1,2) == '.' ) hash = hash.substring(1);
821
  //console.log( '.shiftnav .shiftnav-target[data-shiftnav-scrolltarget='+hash+']' );
822
- var $li = $( '.shiftnav .shiftnav-target[data-shiftnav-scrolltarget='+hash+']' ).parent();
823
  if( $li.size() ){
824
  //console.log( $li );
825
  $li.siblings().removeClass( 'current-menu-item' ).removeClass( 'current-menu-ancestor' );
@@ -828,9 +834,33 @@ jQuery( document ).ready( function($){
828
  }
829
 
830
  $( '.shiftnav' ).trigger( 'shiftnav-loaded' );
 
831
  });
832
 
833
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
834
 
835
  var shift_supports = (function() {
836
  var div = document.createElement('div'),
261
  $( '.shiftnav-searchbar-toggle' ).on( 'mouseup' , function( e ){
262
  toggle_clicked = false;
263
  });
264
+
265
+
266
+ //Setup shift panel height
267
+ $( '.shiftnav' ).css( 'max-height' , window.innerHeight );
268
+ $( window ).shiftsmartresize( function(){
269
+ $( '.shiftnav' ).css( 'max-height' , window.innerHeight );
270
+ });
271
 
272
  }
273
 
825
  var hash = window.location.hash;
826
  if( hash.substring(1,2) == '.' ) hash = hash.substring(1);
827
  //console.log( '.shiftnav .shiftnav-target[data-shiftnav-scrolltarget='+hash+']' );
828
+ var $li = $( '.shiftnav .shiftnav-target[data-shiftnav-scrolltarget="'+hash+'"]' ).parent();
829
  if( $li.size() ){
830
  //console.log( $li );
831
  $li.siblings().removeClass( 'current-menu-item' ).removeClass( 'current-menu-ancestor' );
834
  }
835
 
836
  $( '.shiftnav' ).trigger( 'shiftnav-loaded' );
837
+
838
  });
839
 
840
 
841
+ (function($,sr){
842
+ // debouncing function from John Hann
843
+ // http://unscriptable.com/index.php/2009/03/20/debouncing-javascript-methods/
844
+ var debounce = function (func, threshold, execAsap) {
845
+ var timeout;
846
+ return function debounced () {
847
+ var obj = this, args = arguments;
848
+ function delayed () {
849
+ if (!execAsap)
850
+ func.apply(obj, args);
851
+ timeout = null;
852
+ };
853
+ if (timeout)
854
+ clearTimeout(timeout);
855
+ else if (execAsap)
856
+ func.apply(obj, args);
857
+ timeout = setTimeout(delayed, threshold || 100);
858
+ };
859
+ }
860
+ jQuery.fn[sr] = function(fn){ return fn ? this.bind('resize', debounce(fn)) : this.trigger(sr); };
861
+
862
+ })(jQuery,'shiftsmartresize');
863
+
864
 
865
  var shift_supports = (function() {
866
  var div = document.createElement('div'),
assets/js/shiftnav.min.js CHANGED
@@ -1,28 +1,29 @@
1
- 'use strict';(function(b,f,g,l){function q(a,d){this.element=a;this.$shiftnav=b(this.element);this.$menu=this.$shiftnav.find("ul.shiftnav-menu");this.settings=b.extend({},t,d);this._defaults=t;this._name="shiftnav";this.touchenabled="ontouchstart"in f||0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints;f.navigator.pointerEnabled?(this.touchStart="pointerdown",this.touchEnd="pointerup",this.touchMove="pointermove"):f.navigator.msPointerEnabled?(this.touchStart="MSPointerDown",this.touchEnd="MSPointerUp",
2
- this.touchMove="MSPointerMove"):(this.touchStart="touchstart",this.touchEnd="touchend",this.touchMove="touchmove");this.toggleevent="touchend"==this.touchEnd?this.touchEnd+" click":this.touchEnd;this.transitionend="transitionend.shiftnav webkitTransitionEnd.shiftnav msTransitionEnd.shiftnav oTransitionEnd.shiftnav";this.settings.clicktest&&(this.touchEnd="click");this.init()}var t={mouseEvents:!0,retractors:!0,touchOffClose:!0,clicktest:!1,windowstest:!1,debug:!1,swipe_tolerance_x:150,swipe_tolerance_y:30,
3
- swipe_edge_proximity:70,open_current:!1,collapse_accordions:!1,scroll_offset:100,disable_transforms:!1};q.prototype={init:function(){this.$shiftnav.removeClass("shiftnav-nojs");this.$toggles=b('.shiftnav-toggle[data-shiftnav-target="'+this.$shiftnav.data("shiftnav-id")+'"]');this.initializeShiftNav();this.initializeTargets();this.initializeSubmenuToggleMouseEvents();this.initializeRetractors();this.initializeResponsiveToggle();this.initializeSwipeHandler()},initializeShiftNav:function(){var a=b("body"),
4
  d=this;if(!a.hasClass("shiftnav-enabled")){a.addClass("shiftnav-enabled");"on"==shiftnav_data.lock_body&&a.addClass("shiftnav-lock");"on"==shiftnav_data.lock_body_x&&a.addClass("shiftnav-lock-x");"off"!=shiftnav_data.shift_body?""!=shiftnav_data.shift_body_wrapper?b(shiftnav_data.shift_body_wrapper).addClass("shiftnav-wrap"):(a.wrapInner('<div class="shiftnav-wrap"></div>'),b("video[autoplay]").each(function(){b(this).get(0).play()})):a.addClass("shiftnav-disable-shift-body");b("#shiftnav-toggle-main, #wpadminbar, .shiftnav-fixed-left, .shiftnav-fixed-right").appendTo("body");
5
- var c=b(".shiftnav-wrap"),e=b("#shiftnav-toggle-main").outerHeight();c.css("padding-top",e);"off"==shiftnav_data.shift_body&&a.css("padding-top",e);var e=!1,p=navigator.userAgent.toLowerCase();/android/.test(p)&&(e=!0,/android [1-3]/.test(p)?e=!0:/chrome/.test(p)?e=!1:/firefox/.test(p)&&(e=!1));(!shift_supports("transform")||e||d.settings.disable_transforms)&&a.addClass("shiftnav-no-transforms");if("on"==shiftnav_data.swipe_open){var g=0,h=0,k=0,n=0,m=b(f).width();"off"==shiftnav_data.shift_body&&
6
- (c=b("body"));c.on("touchstart",function(a){d.settings.breakpoint&&b(f).width()>d.settings.breakpoint||(g=a.originalEvent.changedTouches[0].pageY,h=a.originalEvent.changedTouches[0].pageX)});if(b("#shiftnav-main").hasClass("shiftnav-left-edge"))c.on("touchmove",function(a){n=a.originalEvent.changedTouches[0].pageX;h<d.settings.swipe_edge_proximity&&(a.preventDefault(),n-h>d.settings.swipe_tolerance_x&&(k=a.originalEvent.changedTouches[0].pageY,Math.abs(k-g)<d.settings.swipe_tolerance_y&&(d.openShiftNav("swipe right"),
7
- a.stopPropagation())))});else c.on("touchmove",function(a){n=a.originalEvent.changedTouches[0].pageX;h>m-d.settings.swipe_edge_proximity&&(a.preventDefault(),h-n>d.settings.swipe_tolerance_x&&(k=a.originalEvent.changedTouches[0].pageY,Math.abs(k-g)<d.settings.swipe_tolerance_y&&(d.openShiftNav("swipe left"),a.stopPropagation())))})}b(".shiftnav-searchbar-toggle").on(this.toggleevent,function(a){a.stopPropagation();a.preventDefault();a=b(this).next(".shiftnav-searchbar-drop");a.hasClass("shiftnav-searchbar-drop-open")?
8
  (a.removeClass("shiftnav-searchbar-drop-open"),b("body").off("click.shiftnav-searchbar-drop")):(a.addClass("shiftnav-searchbar-drop-open"),a.find(".shiftnav-search-input").focus(),setTimeout(function(){b("body").on("click.shiftnav-searchbar-drop",function(a){b(".shiftnav-searchbar-drop").removeClass("shiftnav-searchbar-drop-open");b("body").off("click.shiftnav-searchbar-drop")})},100))});b(".shiftnav-searchbar-drop").on(this.toggleevent,function(a){a.stopPropagation()});b(".shiftnav-searchbar-drop .shiftnav-search-input").on("blur",
9
- function(a){""!=b(this).val()||r||b(this).parents(".shiftnav-searchbar-drop").removeClass("shiftnav-searchbar-drop-open")});var r;b(".shiftnav-searchbar-toggle").on("mousedown",function(a){r=!0});b(".shiftnav-searchbar-toggle").on("mouseup",function(a){r=!1})}this.$shiftnav.appendTo("body");this.$shiftnav.hasClass("shiftnav-right-edge")?this.edge="right":this.edge="left";this.openclass="shiftnav-open shiftnav-open-"+this.edge;this.$shiftnav.find(".shiftnav-submenu-activation").each(function(){var a=
10
- b(this).outerHeight();b(this).css({height:a,width:a})});d.settings.open_current&&b(".shiftnav .shiftnav-sub-accordion.current-menu-item, .shiftnav .shiftnav-sub-accordion.current-menu-ancestor").addClass("shiftnav-active")},initializeTargets:function(){var a=this;this.$shiftnav.find(".shiftnav-scrollto").removeClass("current-menu-item").removeClass("current-menu-ancestor");this.$shiftnav.on("click",".shiftnav-target",function(d){var c=b(this).data("shiftnav-scrolltarget");if(c){var e=b(c).first();
11
- if(0<e.size())return d=b(this).parent(".menu-item"),d.siblings().removeClass("current-menu-item").removeClass("current-menu-ancestor"),d.addClass("current-menu-item"),d=e.offset().top,d-=a.settings.scroll_offset,b("html,body").animate({scrollTop:d},1E3,"swing",function(){a.closeShiftNav()}),!1;(e=b(this).attr("href"))&&-1==e.indexOf("#")&&(-1==c.indexOf("#")&&(c="#"+c),f.location=e+c,d.preventDefault())}else b(this).is("span")&&(d=b(this).parent(".menu-item"),d.hasClass("shiftnav-active")?a.closeSubmenu(d,
12
- "disabledLink",a):a.openSubmenu(d,"disabledLink",a))})},initializeSubmenuToggleMouseEvents:function(){if(this.settings.mouseEvents&&!this.settings.clicktest&&!this.settings.windowstest){this.settings.debug&&console.log("initializeSubmenuToggleMouseEvents");var a=this;this.$shiftnav.on("mouseup.shift-submenu-toggle",".shiftnav-submenu-activation",function(b){a.handleMouseActivation(b,this,a)})}},disableSubmenuToggleMouseEvents:function(){this.settings.debug&&console.log("disableSubmenuToggleMouseEvents");
13
- $shiftnav.off("mouseover.shift-submenu-toggle");$shiftnav.off("mouseout.shift-submenu-toggle")},initializeRetractors:function(){if(this.settings.retractors){var a=this;this.$shiftnav.on("mouseup.shiftnav",".shiftnav-retract",function(b){a.handleSubmenuRetractorEnd(b,this,a)})}},initializeResponsiveToggle:function(){var a=this;this.$toggles.on("click","a",function(a){a.stopPropagation()});this.$toggles.on("click",function(d){a.toggle(b(this),a,d)})},toggle:function(a,d,c){c.preventDefault();c.stopPropagation();
14
- if("click"!=c.originalEvent.type||!b(this).data("disableToggle"))return d.$shiftnav.hasClass("shiftnav-open-target")?d.closeShiftNav():(a="shiftnav-toggle-main"==b(this).attr("id")?"[Main Toggle Bar]":'"'+b(this).text()+'"',d.openShiftNav("toggle: "+a)),"click"!=c.originalEvent.type&&(b(this).data("disableToggle",!0),setTimeout(function(){b(this).data("disableToggle",!1)},1E3)),!1},initializeSwipeHandler:function(){b("body");var a=0,d=0,c=0,e=0,g=0,l=0,h=this,k=!1,n=b(f).height(),m=this.$shiftnav.find(".shiftnav-inner");
15
- m.on("touchstart",function(b){a=b.originalEvent.changedTouches[0].pageY;d=b.originalEvent.changedTouches[0].pageX});m.on(this.touchMove,function(b){k=!1;n>=m[0].scrollHeight?(k=!0,b.preventDefault()):0===b.currentTarget.scrollTop?(c=b.originalEvent.changedTouches[0].pageY,c>a&&(k=!0,b.preventDefault())):b.currentTarget.scrollHeight===b.currentTarget.scrollTop+b.currentTarget.offsetHeight&&(c=b.originalEvent.changedTouches[0].pageY,c<a&&(k=!0,b.preventDefault()));k||(g=Math.abs(a-b.originalEvent.changedTouches[0].pageY),
16
- l=Math.abs(d-b.originalEvent.changedTouches[0].pageX),g<l&&b.preventDefault())});if("on"==shiftnav_data.swipe_close)if(this.$shiftnav.hasClass("shiftnav-right-edge"))m.on("touchmove",function(b){e=b.originalEvent.changedTouches[0].pageX;e-d>h.settings.swipe_tolerance_x&&Math.abs(c-a)<h.settings.swipe_tolerance_y&&(h.closeShiftNav(),b.preventDefault())});else m.on("touchmove",function(b){e=b.originalEvent.changedTouches[0].pageX;d-e>h.settings.swipe_tolerance_x&&(c=b.originalEvent.changedTouches[0].pageY,
17
- Math.abs(c-a)<h.settings.swipe_tolerance_y&&(h.closeShiftNav(),b.preventDefault()));b.stopPropagation()})},openShiftNav:function(a){var d=this;this.settings.debug&&console.log("openShiftNav "+(a||"?"));b("body").removeClass("shiftnav-open-right shiftnav-open-left").addClass(this.openclass).addClass("shiftnav-transitioning");b(".shiftnav-open-target").removeClass("shiftnav-open-target");this.$shiftnav.addClass("shiftnav-open-target").on(d.transitionend,function(){b("body").removeClass("shiftnav-transitioning");
18
- b(this).off(d.transitionend)});this.initializeTouchoffClose()},closeShiftNav:function(){var a=this;b("body").removeClass(this.openclass).addClass("shiftnav-transitioning");this.$shiftnav.removeClass("shiftnav-open-target").on(a.transitionend,function(){b("body").removeClass("shiftnav-transitioning");b(this).off(a.transitionend)});this.disableTouchoffClose()},initializeTouchoffClose:function(){if(this.settings.touchOffClose){var a=this;b(g).on("click.shiftnav "+this.touchEnd+".shiftnav",function(b){a.handleTouchoffClose(b,
19
- this,a)})}},disableTouchoffClose:function(){b(g).off(".shiftnav")},handleMouseActivation:function(a,d,c){c.settings.debug&&console.log("handleMouseover, add mouseout",a);a=b(d).parent();a.hasClass("shiftnav-active")?c.closeSubmenu(a,"mouseActivate",c):c.openSubmenu(a,"mouseActivate",c)},handleSubmenuRetractorEnd:function(a,d,c){a.preventDefault();a.stopPropagation();a=b(d).parent("ul").parent("li");c.closeSubmenu(a,"handleSubmenuRetractor",c);c.settings.debug&&console.log("handleSubmenuRetractorEnd "+
20
- a.find("> a").text())},handleTouchoffClose:function(a,d,c){b("body").is(".shiftnav-transitioning")||0!==b(a.target).parents().add(b(a.target)).filter(".shiftnav, .shiftnav-toggle, .shiftnav-ignore").size()||(c.settings.debug&&console.log("touchoff close ",a),a.preventDefault(),a.stopPropagation(),c.closeShiftNav(),c.disableTouchoffClose())},scrollPanel:function(a){if("off"==shiftnav_data.scroll_panel)return 0;if("undefined"==typeof a)return this.$shiftnav.find(".shiftnav-inner").scrollTop();this.$shiftnav.find(".shiftnav-inner").scrollTop(a)},
21
- openSubmenu:function(a,b,c){a.hasClass("shiftnav-active")||(a.hasClass("shiftnav-sub-shift")?(a.siblings(".shiftnav-active").removeClass("shiftnav-active"),a.toggleClass("shiftnav-caulk"),c.$shiftnav.addClass("shiftnav-sub-shift-active")):c.settings.collapse_accordions&&a.siblings(".shiftnav-active").removeClass("shiftnav-active"),a.parents("ul").removeClass("shiftnav-sub-active-current"),a.find("> ul").addClass("shiftnav-sub-active").addClass("shiftnav-sub-active-current"),setTimeout(function(){a.addClass("shiftnav-active");
22
- a.trigger("shiftnav-open-submenu");a.removeClass("shiftnav-caulk");setTimeout(function(){var b=c.scrollPanel();a.data("scroll-back",b);b=a.offset().top+b;c.scrollPanel(b)},100)},1))},closeSubmenu:function(a,d,c){this.settings.debug&&console.log("closeSubmenu "+a.find(">a").text()+" ["+d+"]");a.hasClass("menu-item-has-children")&&a.hasClass("shiftnav-active")&&(a.addClass("shiftnav-in-transition"),a.each(function(){var a=b(this),e=a.find("> ul");e.on(c.transitionend+"_closesubmenu",function(){c.settings.debug&&
23
- console.log("finished submenu close transition");a.removeClass("shiftnav-in-transition");e.off(c.transitionend+"_closesubmenu")});c.closeSubmenu(a.find(".shiftnav-active"),d+"_recursive",c)}));a.removeClass("shiftnav-active");if(a.hasClass("shiftnav-sub-shift")){0==a.parents(".shiftnav-sub-shift").size()&&c.$shiftnav.removeClass("shiftnav-sub-shift-active");var e=a.data("scroll-back");"undefined"!==e&&c.scrollPanel(e)}a.find("> ul").removeClass("shiftnav-sub-active").removeClass("shiftnav-sub-active-current");
24
- a.closest("ul").addClass("shiftnav-sub-active-current");a.trigger("shiftnav-close-submenu")},closeAllSubmenus:function(){b(this.element).find("li.menu-item-has-children").removeClass("shiftnav-active")}};b.fn.shiftnav=function(a){var d=arguments;if(a===l||"object"===typeof a)return this.each(function(){b.data(this,"plugin_shiftnav")||b.data(this,"plugin_shiftnav",new q(this,a))});if("string"===typeof a&&"_"!==a[0]&&"init"!==a){var c;this.each(function(){var e=b.data(this,"plugin_shiftnav");e instanceof
25
- q&&"function"===typeof e[a]&&(c=e[a].apply(e,Array.prototype.slice.call(d,1)));"destroy"===a&&b.data(this,"plugin_shiftnav",null)});return c!==l?c:this}}})(jQuery,window,document);
26
  jQuery(document).ready(function(b){b(".shiftnav-loading").remove();jQuery(".shiftnav").shiftnav({swipe_tolerance_x:parseInt(shiftnav_data.swipe_tolerance_x),swipe_tolerance_y:parseInt(shiftnav_data.swipe_tolerance_y),swipe_edge_proximity:parseInt(shiftnav_data.swipe_edge_proximity),open_current:"on"==shiftnav_data.open_current?!0:!1,collapse_accordions:"on"==shiftnav_data.collapse_accordions?!0:!1,breakpoint:parseInt(shiftnav_data.breakpoint),touchOffClose:"on"==shiftnav_data.touch_off_close?!0:!1,
27
- scroll_offset:shiftnav_data.scroll_offset,disable_transforms:"on"==shiftnav_data.disable_transforms?!0:!1});if("."==window.location.hash.substring(1,2)){var f=b(window.location.hash.substring(1)),g=f.offset().top-shiftnav_data.scroll_offset;f.size()&&window.scrollTo(0,g)}window.location.hash&&(f=window.location.hash,"."==f.substring(1,2)&&(f=f.substring(1)),f=b(".shiftnav .shiftnav-target[data-shiftnav-scrolltarget="+f+"]").parent(),f.size()&&(f.siblings().removeClass("current-menu-item").removeClass("current-menu-ancestor"),
28
- f.addClass("current-menu-item")));b(".shiftnav").trigger("shiftnav-loaded")});var shift_supports=function(){var b=document.createElement("div"),f=["Khtml","Ms","O","Moz","Webkit"];return function(g){var l=f.length;if(g in b.style)return!0;for(g=g.replace(/^[a-z]/,function(b){return b.toUpperCase()});l--;)if(f[l]+g in b.style)return!0;return!1}}();
 
1
+ 'use strict';(function(b,e,f,k){function h(a,d){this.element=a;this.$shiftnav=b(this.element);this.$menu=this.$shiftnav.find("ul.shiftnav-menu");this.settings=b.extend({},p,d);this._defaults=p;this._name="shiftnav";this.touchenabled="ontouchstart"in e||0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints;e.navigator.pointerEnabled?(this.touchStart="pointerdown",this.touchEnd="pointerup",this.touchMove="pointermove"):e.navigator.msPointerEnabled?(this.touchStart="MSPointerDown",this.touchEnd="MSPointerUp",
2
+ this.touchMove="MSPointerMove"):(this.touchStart="touchstart",this.touchEnd="touchend",this.touchMove="touchmove");this.toggleevent="touchend"==this.touchEnd?this.touchEnd+" click":this.touchEnd;this.transitionend="transitionend.shiftnav webkitTransitionEnd.shiftnav msTransitionEnd.shiftnav oTransitionEnd.shiftnav";this.settings.clicktest&&(this.touchEnd="click");this.init()}var p={mouseEvents:!0,retractors:!0,touchOffClose:!0,clicktest:!1,windowstest:!1,debug:!1,swipe_tolerance_x:150,swipe_tolerance_y:30,
3
+ swipe_edge_proximity:70,open_current:!1,collapse_accordions:!1,scroll_offset:100,disable_transforms:!1};h.prototype={init:function(){this.$shiftnav.removeClass("shiftnav-nojs");this.$toggles=b('.shiftnav-toggle[data-shiftnav-target="'+this.$shiftnav.data("shiftnav-id")+'"]');this.initializeShiftNav();this.initializeTargets();this.initializeSubmenuToggleMouseEvents();this.initializeRetractors();this.initializeResponsiveToggle();this.initializeSwipeHandler()},initializeShiftNav:function(){var a=b("body"),
4
  d=this;if(!a.hasClass("shiftnav-enabled")){a.addClass("shiftnav-enabled");"on"==shiftnav_data.lock_body&&a.addClass("shiftnav-lock");"on"==shiftnav_data.lock_body_x&&a.addClass("shiftnav-lock-x");"off"!=shiftnav_data.shift_body?""!=shiftnav_data.shift_body_wrapper?b(shiftnav_data.shift_body_wrapper).addClass("shiftnav-wrap"):(a.wrapInner('<div class="shiftnav-wrap"></div>'),b("video[autoplay]").each(function(){b(this).get(0).play()})):a.addClass("shiftnav-disable-shift-body");b("#shiftnav-toggle-main, #wpadminbar, .shiftnav-fixed-left, .shiftnav-fixed-right").appendTo("body");
5
+ var c=b(".shiftnav-wrap"),g=b("#shiftnav-toggle-main").outerHeight();c.css("padding-top",g);"off"==shiftnav_data.shift_body&&a.css("padding-top",g);var g=!1,f=navigator.userAgent.toLowerCase();/android/.test(f)&&(g=!0,/android [1-3]/.test(f)?g=!0:/chrome/.test(f)?g=!1:/firefox/.test(f)&&(g=!1));(!shift_supports("transform")||g||d.settings.disable_transforms)&&a.addClass("shiftnav-no-transforms");if("on"==shiftnav_data.swipe_open){var k=0,n=0,l=0,h=0,m=b(e).width();"off"==shiftnav_data.shift_body&&
6
+ (c=b("body"));c.on("touchstart",function(a){d.settings.breakpoint&&b(e).width()>d.settings.breakpoint||(k=a.originalEvent.changedTouches[0].pageY,n=a.originalEvent.changedTouches[0].pageX)});if(b("#shiftnav-main").hasClass("shiftnav-left-edge"))c.on("touchmove",function(a){h=a.originalEvent.changedTouches[0].pageX;n<d.settings.swipe_edge_proximity&&(a.preventDefault(),h-n>d.settings.swipe_tolerance_x&&(l=a.originalEvent.changedTouches[0].pageY,Math.abs(l-k)<d.settings.swipe_tolerance_y&&(d.openShiftNav("swipe right"),
7
+ a.stopPropagation())))});else c.on("touchmove",function(a){h=a.originalEvent.changedTouches[0].pageX;n>m-d.settings.swipe_edge_proximity&&(a.preventDefault(),n-h>d.settings.swipe_tolerance_x&&(l=a.originalEvent.changedTouches[0].pageY,Math.abs(l-k)<d.settings.swipe_tolerance_y&&(d.openShiftNav("swipe left"),a.stopPropagation())))})}b(".shiftnav-searchbar-toggle").on(this.toggleevent,function(a){a.stopPropagation();a.preventDefault();a=b(this).next(".shiftnav-searchbar-drop");a.hasClass("shiftnav-searchbar-drop-open")?
8
  (a.removeClass("shiftnav-searchbar-drop-open"),b("body").off("click.shiftnav-searchbar-drop")):(a.addClass("shiftnav-searchbar-drop-open"),a.find(".shiftnav-search-input").focus(),setTimeout(function(){b("body").on("click.shiftnav-searchbar-drop",function(a){b(".shiftnav-searchbar-drop").removeClass("shiftnav-searchbar-drop-open");b("body").off("click.shiftnav-searchbar-drop")})},100))});b(".shiftnav-searchbar-drop").on(this.toggleevent,function(a){a.stopPropagation()});b(".shiftnav-searchbar-drop .shiftnav-search-input").on("blur",
9
+ function(a){""!=b(this).val()||q||b(this).parents(".shiftnav-searchbar-drop").removeClass("shiftnav-searchbar-drop-open")});var q;b(".shiftnav-searchbar-toggle").on("mousedown",function(a){q=!0});b(".shiftnav-searchbar-toggle").on("mouseup",function(a){q=!1});b(".shiftnav").css("max-height",e.innerHeight);b(e).shiftsmartresize(function(){b(".shiftnav").css("max-height",e.innerHeight)})}this.$shiftnav.appendTo("body");this.$shiftnav.hasClass("shiftnav-right-edge")?this.edge="right":this.edge="left";
10
+ this.openclass="shiftnav-open shiftnav-open-"+this.edge;this.$shiftnav.find(".shiftnav-submenu-activation").each(function(){var a=b(this).outerHeight();b(this).css({height:a,width:a})});d.settings.open_current&&b(".shiftnav .shiftnav-sub-accordion.current-menu-item, .shiftnav .shiftnav-sub-accordion.current-menu-ancestor").addClass("shiftnav-active")},initializeTargets:function(){var a=this;this.$shiftnav.find(".shiftnav-scrollto").removeClass("current-menu-item").removeClass("current-menu-ancestor");
11
+ this.$shiftnav.on("click",".shiftnav-target",function(d){var c=b(this).data("shiftnav-scrolltarget");if(c){var g=b(c).first();if(0<g.size())return d=b(this).parent(".menu-item"),d.siblings().removeClass("current-menu-item").removeClass("current-menu-ancestor"),d.addClass("current-menu-item"),d=g.offset().top,d-=a.settings.scroll_offset,b("html,body").animate({scrollTop:d},1E3,"swing",function(){a.closeShiftNav()}),!1;(g=b(this).attr("href"))&&-1==g.indexOf("#")&&(-1==c.indexOf("#")&&(c="#"+c),e.location=
12
+ g+c,d.preventDefault())}else b(this).is("span")&&(d=b(this).parent(".menu-item"),d.hasClass("shiftnav-active")?a.closeSubmenu(d,"disabledLink",a):a.openSubmenu(d,"disabledLink",a))})},initializeSubmenuToggleMouseEvents:function(){if(this.settings.mouseEvents&&!this.settings.clicktest&&!this.settings.windowstest){this.settings.debug&&console.log("initializeSubmenuToggleMouseEvents");var a=this;this.$shiftnav.on("mouseup.shift-submenu-toggle",".shiftnav-submenu-activation",function(b){a.handleMouseActivation(b,
13
+ this,a)})}},disableSubmenuToggleMouseEvents:function(){this.settings.debug&&console.log("disableSubmenuToggleMouseEvents");$shiftnav.off("mouseover.shift-submenu-toggle");$shiftnav.off("mouseout.shift-submenu-toggle")},initializeRetractors:function(){if(this.settings.retractors){var a=this;this.$shiftnav.on("mouseup.shiftnav",".shiftnav-retract",function(b){a.handleSubmenuRetractorEnd(b,this,a)})}},initializeResponsiveToggle:function(){var a=this;this.$toggles.on("click","a",function(a){a.stopPropagation()});
14
+ this.$toggles.on("click",function(d){a.toggle(b(this),a,d)})},toggle:function(a,d,c){c.preventDefault();c.stopPropagation();if("click"!=c.originalEvent.type||!b(this).data("disableToggle"))return d.$shiftnav.hasClass("shiftnav-open-target")?d.closeShiftNav():(a="shiftnav-toggle-main"==b(this).attr("id")?"[Main Toggle Bar]":'"'+b(this).text()+'"',d.openShiftNav("toggle: "+a)),"click"!=c.originalEvent.type&&(b(this).data("disableToggle",!0),setTimeout(function(){b(this).data("disableToggle",!1)},1E3)),
15
+ !1},initializeSwipeHandler:function(){b("body");var a=0,d=0,c=0,g=0,f=0,k=0,h=this,l=!1,p=b(e).height(),m=this.$shiftnav.find(".shiftnav-inner");m.on("touchstart",function(b){a=b.originalEvent.changedTouches[0].pageY;d=b.originalEvent.changedTouches[0].pageX});m.on(this.touchMove,function(b){l=!1;p>=m[0].scrollHeight?(l=!0,b.preventDefault()):0===b.currentTarget.scrollTop?(c=b.originalEvent.changedTouches[0].pageY,c>a&&(l=!0,b.preventDefault())):b.currentTarget.scrollHeight===b.currentTarget.scrollTop+
16
+ b.currentTarget.offsetHeight&&(c=b.originalEvent.changedTouches[0].pageY,c<a&&(l=!0,b.preventDefault()));l||(f=Math.abs(a-b.originalEvent.changedTouches[0].pageY),k=Math.abs(d-b.originalEvent.changedTouches[0].pageX),f<k&&b.preventDefault())});if("on"==shiftnav_data.swipe_close)if(this.$shiftnav.hasClass("shiftnav-right-edge"))m.on("touchmove",function(b){g=b.originalEvent.changedTouches[0].pageX;g-d>h.settings.swipe_tolerance_x&&Math.abs(c-a)<h.settings.swipe_tolerance_y&&(h.closeShiftNav(),b.preventDefault())});
17
+ else m.on("touchmove",function(b){g=b.originalEvent.changedTouches[0].pageX;d-g>h.settings.swipe_tolerance_x&&(c=b.originalEvent.changedTouches[0].pageY,Math.abs(c-a)<h.settings.swipe_tolerance_y&&(h.closeShiftNav(),b.preventDefault()));b.stopPropagation()})},openShiftNav:function(a){var d=this;this.settings.debug&&console.log("openShiftNav "+(a||"?"));b("body").removeClass("shiftnav-open-right shiftnav-open-left").addClass(this.openclass).addClass("shiftnav-transitioning");b(".shiftnav-open-target").removeClass("shiftnav-open-target");
18
+ this.$shiftnav.addClass("shiftnav-open-target").on(d.transitionend,function(){b("body").removeClass("shiftnav-transitioning");b(this).off(d.transitionend)});this.initializeTouchoffClose()},closeShiftNav:function(){var a=this;b("body").removeClass(this.openclass).addClass("shiftnav-transitioning");this.$shiftnav.removeClass("shiftnav-open-target").on(a.transitionend,function(){b("body").removeClass("shiftnav-transitioning");b(this).off(a.transitionend)});this.disableTouchoffClose()},initializeTouchoffClose:function(){if(this.settings.touchOffClose){var a=
19
+ this;b(f).on("click.shiftnav "+this.touchEnd+".shiftnav",function(b){a.handleTouchoffClose(b,this,a)})}},disableTouchoffClose:function(){b(f).off(".shiftnav")},handleMouseActivation:function(a,d,c){c.settings.debug&&console.log("handleMouseover, add mouseout",a);a=b(d).parent();a.hasClass("shiftnav-active")?c.closeSubmenu(a,"mouseActivate",c):c.openSubmenu(a,"mouseActivate",c)},handleSubmenuRetractorEnd:function(a,d,c){a.preventDefault();a.stopPropagation();a=b(d).parent("ul").parent("li");c.closeSubmenu(a,
20
+ "handleSubmenuRetractor",c);c.settings.debug&&console.log("handleSubmenuRetractorEnd "+a.find("> a").text())},handleTouchoffClose:function(a,d,c){b("body").is(".shiftnav-transitioning")||0!==b(a.target).parents().add(b(a.target)).filter(".shiftnav, .shiftnav-toggle, .shiftnav-ignore").size()||(c.settings.debug&&console.log("touchoff close ",a),a.preventDefault(),a.stopPropagation(),c.closeShiftNav(),c.disableTouchoffClose())},scrollPanel:function(a){if("off"==shiftnav_data.scroll_panel)return 0;if("undefined"==
21
+ typeof a)return this.$shiftnav.find(".shiftnav-inner").scrollTop();this.$shiftnav.find(".shiftnav-inner").scrollTop(a)},openSubmenu:function(a,b,c){a.hasClass("shiftnav-active")||(a.hasClass("shiftnav-sub-shift")?(a.siblings(".shiftnav-active").removeClass("shiftnav-active"),a.toggleClass("shiftnav-caulk"),c.$shiftnav.addClass("shiftnav-sub-shift-active")):c.settings.collapse_accordions&&a.siblings(".shiftnav-active").removeClass("shiftnav-active"),a.parents("ul").removeClass("shiftnav-sub-active-current"),
22
+ a.find("> ul").addClass("shiftnav-sub-active").addClass("shiftnav-sub-active-current"),setTimeout(function(){a.addClass("shiftnav-active");a.trigger("shiftnav-open-submenu");a.removeClass("shiftnav-caulk");setTimeout(function(){var b=c.scrollPanel();a.data("scroll-back",b);b=a.offset().top+b;c.scrollPanel(b)},100)},1))},closeSubmenu:function(a,d,c){this.settings.debug&&console.log("closeSubmenu "+a.find(">a").text()+" ["+d+"]");a.hasClass("menu-item-has-children")&&a.hasClass("shiftnav-active")&&
23
+ (a.addClass("shiftnav-in-transition"),a.each(function(){var a=b(this),e=a.find("> ul");e.on(c.transitionend+"_closesubmenu",function(){c.settings.debug&&console.log("finished submenu close transition");a.removeClass("shiftnav-in-transition");e.off(c.transitionend+"_closesubmenu")});c.closeSubmenu(a.find(".shiftnav-active"),d+"_recursive",c)}));a.removeClass("shiftnav-active");if(a.hasClass("shiftnav-sub-shift")){0==a.parents(".shiftnav-sub-shift").size()&&c.$shiftnav.removeClass("shiftnav-sub-shift-active");
24
+ var e=a.data("scroll-back");"undefined"!==e&&c.scrollPanel(e)}a.find("> ul").removeClass("shiftnav-sub-active").removeClass("shiftnav-sub-active-current");a.closest("ul").addClass("shiftnav-sub-active-current");a.trigger("shiftnav-close-submenu")},closeAllSubmenus:function(){b(this.element).find("li.menu-item-has-children").removeClass("shiftnav-active")}};b.fn.shiftnav=function(a){var d=arguments;if(a===k||"object"===typeof a)return this.each(function(){b.data(this,"plugin_shiftnav")||b.data(this,
25
+ "plugin_shiftnav",new h(this,a))});if("string"===typeof a&&"_"!==a[0]&&"init"!==a){var c;this.each(function(){var e=b.data(this,"plugin_shiftnav");e instanceof h&&"function"===typeof e[a]&&(c=e[a].apply(e,Array.prototype.slice.call(d,1)));"destroy"===a&&b.data(this,"plugin_shiftnav",null)});return c!==k?c:this}}})(jQuery,window,document);
26
  jQuery(document).ready(function(b){b(".shiftnav-loading").remove();jQuery(".shiftnav").shiftnav({swipe_tolerance_x:parseInt(shiftnav_data.swipe_tolerance_x),swipe_tolerance_y:parseInt(shiftnav_data.swipe_tolerance_y),swipe_edge_proximity:parseInt(shiftnav_data.swipe_edge_proximity),open_current:"on"==shiftnav_data.open_current?!0:!1,collapse_accordions:"on"==shiftnav_data.collapse_accordions?!0:!1,breakpoint:parseInt(shiftnav_data.breakpoint),touchOffClose:"on"==shiftnav_data.touch_off_close?!0:!1,
27
+ scroll_offset:shiftnav_data.scroll_offset,disable_transforms:"on"==shiftnav_data.disable_transforms?!0:!1});if("."==window.location.hash.substring(1,2)){var e=b(window.location.hash.substring(1)),f=e.offset().top-shiftnav_data.scroll_offset;e.size()&&window.scrollTo(0,f)}window.location.hash&&(e=window.location.hash,"."==e.substring(1,2)&&(e=e.substring(1)),e=b('.shiftnav .shiftnav-target[data-shiftnav-scrolltarget="'+e+'"]').parent(),e.size()&&(e.siblings().removeClass("current-menu-item").removeClass("current-menu-ancestor"),
28
+ e.addClass("current-menu-item")));b(".shiftnav").trigger("shiftnav-loaded")});(function(b,e){var f=function(b,e,f){var a;return function(){var d=this,c=arguments;a?clearTimeout(a):f&&b.apply(d,c);a=setTimeout(function(){f||b.apply(d,c);a=null},e||100)}};jQuery.fn[e]=function(b){return b?this.bind("resize",f(b)):this.trigger(e)}})(jQuery,"shiftsmartresize");
29
+ var shift_supports=function(){var b=document.createElement("div"),e=["Khtml","Ms","O","Moz","Webkit"];return function(f){var k=e.length;if(f in b.style)return!0;for(f=f.replace(/^[a-z]/,function(b){return b.toUpperCase()});k--;)if(e[k]+f in b.style)return!0;return!1}}();
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: sevenspark
3
  Donate link: http://shiftnav.io/pro
4
  Tags: responsive, menu, navigation, mobile, off-canvas, app, slide, sidebar
5
  Requires at least: 4.0
6
- Tested up to: 4.2
7
- Stable tag: 1.3.0.1
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -49,6 +49,11 @@ None. Yet.
49
 
50
  == Changelog ==
51
 
 
 
 
 
 
52
  = 1.3.0.1 =
53
 
54
  * 1.3 deployment was missing /assets directory
3
  Donate link: http://shiftnav.io/pro
4
  Tags: responsive, menu, navigation, mobile, off-canvas, app, slide, sidebar
5
  Requires at least: 4.0
6
+ Tested up to: 4.4.1
7
+ Stable tag: 1.3.0.2
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
49
 
50
  == Changelog ==
51
 
52
+ = 1.3.0.2 =
53
+ * Enhancement: Improved scrolling on Android with latest version of Chrome
54
+ * Enhancement: Clear license data when deleted
55
+ * Fix: ScrollTo JS quotes corner case
56
+
57
  = 1.3.0.1 =
58
 
59
  * 1.3 deployment was missing /assets directory
shiftnav-responsive-mobile-menu.php CHANGED
@@ -6,7 +6,7 @@ Description: An off-canvas mobile menu for WordPress
6
  Author: Chris Mavricos, SevenSpark
7
  Author URI: http://sevenspark.com
8
  License: GPLv2
9
- Version: 1.3.0.1
10
  */
11
 
12
  /* Copyright 2014-2015 Chris Mavricos, SevenSpark */
@@ -55,7 +55,7 @@ final class ShiftNav {
55
  // Plugin version
56
 
57
  if( ! defined( 'SHIFTNAV_VERSION' ) )
58
- define( 'SHIFTNAV_VERSION', '1.3.0.1' );
59
 
60
  if( ! defined( 'SHIFTNAV_PRO' ) )
61
  define( 'SHIFTNAV_PRO', false );
6
  Author: Chris Mavricos, SevenSpark
7
  Author URI: http://sevenspark.com
8
  License: GPLv2
9
+ Version: 1.3.0.2
10
  */
11
 
12
  /* Copyright 2014-2015 Chris Mavricos, SevenSpark */
55
  // Plugin version
56
 
57
  if( ! defined( 'SHIFTNAV_VERSION' ) )
58
+ define( 'SHIFTNAV_VERSION', '1.3.0.2' );
59
 
60
  if( ! defined( 'SHIFTNAV_PRO' ) )
61
  define( 'SHIFTNAV_PRO', false );