updating dependency assets

This commit is contained in:
koenemann 2016-03-10 13:52:48 +01:00
parent 4e537412ae
commit ac90789c86
14 changed files with 10662 additions and 2092 deletions

View File

@ -5,37 +5,28 @@
-webkit-animation-duration: 1000ms; -webkit-animation-duration: 1000ms;
animation-duration: 1000ms; animation-duration: 1000ms;
-webkit-animation-fill-mode: both; -webkit-animation-fill-mode: both;
animation-fill-mode: both; animation-fill-mode: both; }
}
.owl-carousel .owl-animated-in { .owl-carousel .owl-animated-in {
z-index: 0; z-index: 0; }
}
.owl-carousel .owl-animated-out { .owl-carousel .owl-animated-out {
z-index: 1; z-index: 1; }
}
.owl-carousel .fadeOut { .owl-carousel .fadeOut {
-webkit-animation-name: fadeOut; -webkit-animation-name: fadeOut;
animation-name: fadeOut; animation-name: fadeOut; }
}
@-webkit-keyframes fadeOut { @-webkit-keyframes fadeOut {
0% { 0% {
opacity: 1; opacity: 1; }
}
100% { 100% {
opacity: 0; opacity: 0; } }
}
}
@keyframes fadeOut { @keyframes fadeOut {
0% { 0% {
opacity: 1; opacity: 1; }
}
100% { 100% {
opacity: 0; opacity: 0; } }
}
}
/* /*
* Owl Carousel - Auto Height Plugin * Owl Carousel - Auto Height Plugin
@ -45,8 +36,7 @@
-moz-transition: height 500ms ease-in-out; -moz-transition: height 500ms ease-in-out;
-ms-transition: height 500ms ease-in-out; -ms-transition: height 500ms ease-in-out;
-o-transition: height 500ms ease-in-out; -o-transition: height 500ms ease-in-out;
transition: height 500ms ease-in-out; transition: height 500ms ease-in-out; }
}
/* /*
* Core Owl Carousel CSS File * Core Owl Carousel CSS File
@ -57,91 +47,71 @@
-webkit-tap-highlight-color: transparent; -webkit-tap-highlight-color: transparent;
/* position relative and z-index fix webkit rendering fonts issue */ /* position relative and z-index fix webkit rendering fonts issue */
position: relative; position: relative;
z-index: 1; z-index: 1; }
} .owl-carousel .owl-stage {
.owl-carousel .owl-stage {
position: relative; position: relative;
-ms-touch-action: pan-Y; -ms-touch-action: pan-Y; }
} .owl-carousel .owl-stage:after {
.owl-carousel .owl-stage:after {
content: "."; content: ".";
display: block; display: block;
clear: both; clear: both;
visibility: hidden; visibility: hidden;
line-height: 0; line-height: 0;
height: 0; height: 0; }
} .owl-carousel .owl-stage-outer {
.owl-carousel .owl-stage-outer {
position: relative; position: relative;
overflow: hidden; overflow: hidden;
/* fix for flashing background */ /* fix for flashing background */
-webkit-transform: translate3d(0px, 0px, 0px); -webkit-transform: translate3d(0px, 0px, 0px); }
} .owl-carousel .owl-item {
.owl-carousel .owl-controls .owl-nav .owl-prev, position: relative;
.owl-carousel .owl-controls .owl-nav .owl-next, min-height: 1px;
.owl-carousel .owl-controls .owl-dot { float: left;
-webkit-backface-visibility: hidden;
-webkit-tap-highlight-color: transparent;
-webkit-touch-callout: none; }
.owl-carousel .owl-item img {
display: block;
width: 100%;
-webkit-transform-style: preserve-3d; }
.owl-carousel .owl-nav.disabled, .owl-carousel .owl-dots.disabled {
display: none; }
.owl-carousel .owl-nav .owl-prev, .owl-carousel .owl-nav .owl-next, .owl-carousel .owl-dot {
cursor: pointer; cursor: pointer;
cursor: hand; cursor: hand;
-webkit-user-select: none; -webkit-user-select: none;
-khtml-user-select: none; -khtml-user-select: none;
-moz-user-select: none; -moz-user-select: none;
-ms-user-select: none; -ms-user-select: none;
user-select: none; user-select: none; }
} .owl-carousel.owl-loaded {
.owl-carousel.owl-loaded { display: block; }
display: block; .owl-carousel.owl-loading {
}
.owl-carousel.owl-loading {
opacity: 0; opacity: 0;
display: block; display: block; }
} .owl-carousel.owl-hidden {
.owl-carousel.owl-hidden { opacity: 0; }
opacity: 0; .owl-carousel.owl-refresh .owl-item {
} display: none; }
.owl-carousel .owl-refresh .owl-item { .owl-carousel.owl-drag .owl-item {
display: none;
}
.owl-carousel .owl-item {
position: relative;
min-height: 1px;
float: left;
-webkit-backface-visibility: hidden;
-webkit-tap-highlight-color: transparent;
-webkit-touch-callout: none;
-webkit-user-select: none; -webkit-user-select: none;
-moz-user-select: none; -moz-user-select: none;
-ms-user-select: none; -ms-user-select: none;
user-select: none; user-select: none; }
} .owl-carousel.owl-grab {
.owl-carousel .owl-item img {
display: block;
width: 100%;
-webkit-transform-style: preserve-3d;
}
.owl-carousel.owl-text-select-on .owl-item {
-webkit-user-select: auto;
-moz-user-select: auto;
-ms-user-select: auto;
user-select: auto;
}
.owl-carousel .owl-grab {
cursor: move; cursor: move;
cursor: -webkit-grab; cursor: -webkit-grab;
cursor: -o-grab; cursor: -o-grab;
cursor: -ms-grab; cursor: -ms-grab;
cursor: grab; cursor: grab; }
} .owl-carousel.owl-rtl {
.owl-carousel.owl-rtl { direction: rtl; }
direction: rtl; .owl-carousel.owl-rtl .owl-item {
} float: right; }
.owl-carousel.owl-rtl .owl-item {
float: right;
}
/* No Js */ /* No Js */
.no-js .owl-carousel { .no-js .owl-carousel {
display: block; display: block; }
}
/* /*
* Owl Carousel - Lazy Load Plugin * Owl Carousel - Lazy Load Plugin
@ -152,11 +122,9 @@
-moz-transition: opacity 400ms ease; -moz-transition: opacity 400ms ease;
-ms-transition: opacity 400ms ease; -ms-transition: opacity 400ms ease;
-o-transition: opacity 400ms ease; -o-transition: opacity 400ms ease;
transition: opacity 400ms ease; transition: opacity 400ms ease; }
}
.owl-carousel .owl-item img { .owl-carousel .owl-item img {
transform-style: preserve-3d; transform-style: preserve-3d; }
}
/* /*
* Owl Carousel - Video Plugin * Owl Carousel - Video Plugin
@ -164,8 +132,7 @@
.owl-carousel .owl-video-wrapper { .owl-carousel .owl-video-wrapper {
position: relative; position: relative;
height: 100%; height: 100%;
background: #000; background: #000; }
}
.owl-carousel .owl-video-play-icon { .owl-carousel .owl-video-play-icon {
position: absolute; position: absolute;
height: 80px; height: 80px;
@ -182,19 +149,15 @@
-moz-transition: scale 100ms ease; -moz-transition: scale 100ms ease;
-ms-transition: scale 100ms ease; -ms-transition: scale 100ms ease;
-o-transition: scale 100ms ease; -o-transition: scale 100ms ease;
transition: scale 100ms ease; transition: scale 100ms ease; }
}
.owl-carousel .owl-video-play-icon:hover { .owl-carousel .owl-video-play-icon:hover {
-webkit-transition: scale(1.3, 1.3); -webkit-transition: scale(1.3, 1.3);
-moz-transition: scale(1.3, 1.3); -moz-transition: scale(1.3, 1.3);
-ms-transition: scale(1.3, 1.3); -ms-transition: scale(1.3, 1.3);
-o-transition: scale(1.3, 1.3); -o-transition: scale(1.3, 1.3);
transition: scale(1.3, 1.3); transition: scale(1.3, 1.3); }
} .owl-carousel .owl-video-playing .owl-video-tn, .owl-carousel .owl-video-playing .owl-video-play-icon {
.owl-carousel .owl-video-playing .owl-video-tn, display: none; }
.owl-carousel .owl-video-playing .owl-video-play-icon {
display: none;
}
.owl-carousel .owl-video-tn { .owl-carousel .owl-video-tn {
opacity: 0; opacity: 0;
height: 100%; height: 100%;
@ -208,9 +171,9 @@
-moz-transition: opacity 400ms ease; -moz-transition: opacity 400ms ease;
-ms-transition: opacity 400ms ease; -ms-transition: opacity 400ms ease;
-o-transition: opacity 400ms ease; -o-transition: opacity 400ms ease;
transition: opacity 400ms ease; transition: opacity 400ms ease; }
}
.owl-carousel .owl-video-frame { .owl-carousel .owl-video-frame {
position: relative; position: relative;
z-index: 1; z-index: 1;
} height: 100%;
width: 100%; }

View File

@ -1 +1 @@
.owl-carousel .animated{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.owl-carousel .owl-animated-in{z-index:0}.owl-carousel .owl-animated-out{z-index:1}.owl-carousel .fadeOut{-webkit-animation-name:a;animation-name:a}@-webkit-keyframes a{0%{opacity:1}to{opacity:0}}@keyframes a{0%{opacity:1}to{opacity:0}}.owl-height{-webkit-transition:height .5s ease-in-out;transition:height .5s ease-in-out}.owl-carousel{display:none;width:100%;-webkit-tap-highlight-color:transparent;position:relative;z-index:1}.owl-carousel .owl-stage{position:relative;-ms-touch-action:pan-Y}.owl-carousel .owl-stage:after{content:".";display:block;clear:both;visibility:hidden;line-height:0;height:0}.owl-carousel .owl-stage-outer{position:relative;overflow:hidden;-webkit-transform:translateZ(0)}.owl-carousel .owl-controls .owl-dot,.owl-carousel .owl-controls .owl-nav .owl-next,.owl-carousel .owl-controls .owl-nav .owl-prev{cursor:pointer;cursor:hand;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.owl-carousel.owl-loaded{display:block}.owl-carousel.owl-loading{opacity:0;display:block}.owl-carousel.owl-hidden{opacity:0}.owl-carousel .owl-refresh .owl-item{display:none}.owl-carousel .owl-item{position:relative;min-height:1px;float:left;-webkit-backface-visibility:hidden;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.owl-carousel .owl-item img{display:block;width:100%;-webkit-transform-style:preserve-3d}.owl-carousel.owl-text-select-on .owl-item{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.owl-carousel .owl-grab{cursor:move;cursor:-webkit-grab;cursor:-o-grab;cursor:-ms-grab;cursor:grab}.owl-carousel.owl-rtl{direction:rtl}.owl-carousel.owl-rtl .owl-item{float:right}.no-js .owl-carousel{display:block}.owl-carousel .owl-item .owl-lazy{opacity:0;-webkit-transition:opacity .4s ease;transition:opacity .4s ease}.owl-carousel .owl-item img{transform-style:preserve-3d}.owl-carousel .owl-video-wrapper{position:relative;height:100%;background:#000}.owl-carousel .owl-video-play-icon{position:absolute;height:80px;width:80px;left:50%;top:50%;margin-left:-40px;margin-top:-40px;background:url(owl.video.play.png) no-repeat;cursor:pointer;z-index:1;-webkit-backface-visibility:hidden;-webkit-transition:scale .1s ease;transition:scale .1s ease}.owl-carousel .owl-video-play-icon:hover{-webkit-transition:scale(1.3,1.3);transition:scale(1.3,1.3)}.owl-carousel .owl-video-playing .owl-video-play-icon,.owl-carousel .owl-video-playing .owl-video-tn{display:none}.owl-carousel .owl-video-tn{opacity:0;height:100%;background-position:50%;background-repeat:no-repeat;background-size:contain;-webkit-transition:opacity .4s ease;transition:opacity .4s ease}.owl-carousel .owl-video-frame{position:relative;z-index:1} .owl-carousel .animated{-webkit-animation-duration:1000ms;animation-duration:1000ms;-webkit-animation-fill-mode:both;animation-fill-mode:both}.owl-carousel .owl-animated-in{z-index:0}.owl-carousel .owl-animated-out{z-index:1}.owl-carousel .fadeOut{-webkit-animation-name:fadeOut;animation-name:fadeOut}@-webkit-keyframes fadeOut{0%{opacity:1}100%{opacity:0}}@keyframes fadeOut{0%{opacity:1}100%{opacity:0}}.owl-height{-webkit-transition:height 500ms ease-in-out;-moz-transition:height 500ms ease-in-out;-ms-transition:height 500ms ease-in-out;-o-transition:height 500ms ease-in-out;transition:height 500ms ease-in-out}.owl-carousel{display:none;width:100%;-webkit-tap-highlight-color:transparent;position:relative;z-index:1}.owl-carousel .owl-stage{position:relative;-ms-touch-action:pan-Y}.owl-carousel .owl-stage:after{content:".";display:block;clear:both;visibility:hidden;line-height:0;height:0}.owl-carousel .owl-stage-outer{position:relative;overflow:hidden;-webkit-transform:translate3d(0px,0,0)}.owl-carousel .owl-item{position:relative;min-height:1px;float:left;-webkit-backface-visibility:hidden;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none}.owl-carousel .owl-item img{display:block;width:100%;-webkit-transform-style:preserve-3d}.owl-carousel .owl-dots.disabled,.owl-carousel .owl-nav.disabled{display:none}.owl-carousel .owl-dot,.owl-carousel .owl-nav .owl-next,.owl-carousel .owl-nav .owl-prev{cursor:pointer;cursor:hand;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.owl-carousel.owl-loaded{display:block}.owl-carousel.owl-loading{opacity:0;display:block}.owl-carousel.owl-hidden{opacity:0}.owl-carousel.owl-refresh .owl-item{display:none}.owl-carousel.owl-drag .owl-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.owl-carousel.owl-grab{cursor:move;cursor:-webkit-grab;cursor:-o-grab;cursor:-ms-grab;cursor:grab}.owl-carousel.owl-rtl{direction:rtl}.owl-carousel.owl-rtl .owl-item{float:right}.no-js .owl-carousel{display:block}.owl-carousel .owl-item .owl-lazy{opacity:0;-webkit-transition:opacity 400ms ease;-moz-transition:opacity 400ms ease;-ms-transition:opacity 400ms ease;-o-transition:opacity 400ms ease;transition:opacity 400ms ease}.owl-carousel .owl-item img{transform-style:preserve-3d}.owl-carousel .owl-video-wrapper{position:relative;height:100%;background:#000}.owl-carousel .owl-video-play-icon{position:absolute;height:80px;width:80px;left:50%;top:50%;margin-left:-40px;margin-top:-40px;background:url(owl.video.play.png) no-repeat;cursor:pointer;z-index:1;-webkit-backface-visibility:hidden;-webkit-transition:scale 100ms ease;-moz-transition:scale 100ms ease;-ms-transition:scale 100ms ease;-o-transition:scale 100ms ease;transition:scale 100ms ease}.owl-carousel .owl-video-play-icon:hover{-webkit-transition:scale(1.3,1.3);-moz-transition:scale(1.3,1.3);-ms-transition:scale(1.3,1.3);-o-transition:scale(1.3,1.3);transition:scale(1.3,1.3)}.owl-carousel .owl-video-playing .owl-video-play-icon,.owl-carousel .owl-video-playing .owl-video-tn{display:none}.owl-carousel .owl-video-tn{opacity:0;height:100%;background-position:center center;background-repeat:no-repeat;-webkit-background-size:contain;-moz-background-size:contain;-o-background-size:contain;background-size:contain;-webkit-transition:opacity 400ms ease;-moz-transition:opacity 400ms ease;-ms-transition:opacity 400ms ease;-o-transition:opacity 400ms ease;transition:opacity 400ms ease}.owl-carousel .owl-video-frame{position:relative;z-index:1;height:100%;width:100%}

51
css/owl.theme.default.css Normal file
View File

@ -0,0 +1,51 @@
/*
* Default theme - Owl Carousel CSS File
*/
.owl-theme .owl-nav {
margin-top: 10px;
text-align: center;
-webkit-tap-highlight-color: transparent; }
.owl-theme .owl-nav [class*='owl-'] {
color: #FFF;
font-size: 14px;
margin: 5px;
padding: 4px 7px;
background: #D6D6D6;
display: inline-block;
cursor: pointer;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px; }
.owl-theme .owl-nav [class*='owl-']:hover {
background: #869791;
color: #FFF;
text-decoration: none; }
.owl-theme .owl-nav .disabled {
opacity: 0.5;
cursor: default; }
.owl-theme .owl-nav.disabled + .owl-dots {
margin-top: 10px; }
.owl-theme .owl-dots {
text-align: center;
-webkit-tap-highlight-color: transparent; }
.owl-theme .owl-dots .owl-dot {
display: inline-block;
zoom: 1;
*display: inline; }
.owl-theme .owl-dots .owl-dot span {
width: 10px;
height: 10px;
margin: 5px 7px;
background: #D6D6D6;
display: block;
-webkit-backface-visibility: visible;
-webkit-transition: opacity 200ms ease;
-moz-transition: opacity 200ms ease;
-ms-transition: opacity 200ms ease;
-o-transition: opacity 200ms ease;
transition: opacity 200ms ease;
-webkit-border-radius: 30px;
-moz-border-radius: 30px;
border-radius: 30px; }
.owl-theme .owl-dots .owl-dot.active span, .owl-theme .owl-dots .owl-dot:hover span {
background: #869791; }

1
css/owl.theme.default.min.css vendored Normal file
View File

@ -0,0 +1 @@
.owl-theme .owl-nav{margin-top:10px;text-align:center;-webkit-tap-highlight-color:transparent}.owl-theme .owl-nav [class*=owl-]{color:#FFF;font-size:14px;margin:5px;padding:4px 7px;background:#D6D6D6;display:inline-block;cursor:pointer;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.owl-theme .owl-nav [class*=owl-]:hover{background:#869791;color:#FFF;text-decoration:none}.owl-theme .owl-nav .disabled{opacity:.5;cursor:default}.owl-theme .owl-nav.disabled+.owl-dots{margin-top:10px}.owl-theme .owl-dots{text-align:center;-webkit-tap-highlight-color:transparent}.owl-theme .owl-dots .owl-dot{display:inline-block;zoom:1;*display:inline}.owl-theme .owl-dots .owl-dot span{width:10px;height:10px;margin:5px 7px;background:#D6D6D6;display:block;-webkit-backface-visibility:visible;-webkit-transition:opacity 200ms ease;-moz-transition:opacity 200ms ease;-ms-transition:opacity 200ms ease;-o-transition:opacity 200ms ease;transition:opacity 200ms ease;-webkit-border-radius:30px;-moz-border-radius:30px;border-radius:30px}.owl-theme .owl-dots .owl-dot.active span,.owl-theme .owl-dots .owl-dot:hover span{background:#869791}

51
css/owl.theme.green.css Normal file
View File

@ -0,0 +1,51 @@
/*
* Green theme - Owl Carousel CSS File
*/
.owl-theme .owl-nav {
margin-top: 10px;
text-align: center;
-webkit-tap-highlight-color: transparent; }
.owl-theme .owl-nav [class*='owl-'] {
color: #FFF;
font-size: 14px;
margin: 5px;
padding: 4px 7px;
background: #D6D6D6;
display: inline-block;
cursor: pointer;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px; }
.owl-theme .owl-nav [class*='owl-']:hover {
background: #4DC7A0;
color: #FFF;
text-decoration: none; }
.owl-theme .owl-nav .disabled {
opacity: 0.5;
cursor: default; }
.owl-theme .owl-nav.disabled + .owl-dots {
margin-top: 10px; }
.owl-theme .owl-dots {
text-align: center;
-webkit-tap-highlight-color: transparent; }
.owl-theme .owl-dots .owl-dot {
display: inline-block;
zoom: 1;
*display: inline; }
.owl-theme .owl-dots .owl-dot span {
width: 10px;
height: 10px;
margin: 5px 7px;
background: #D6D6D6;
display: block;
-webkit-backface-visibility: visible;
-webkit-transition: opacity 200ms ease;
-moz-transition: opacity 200ms ease;
-ms-transition: opacity 200ms ease;
-o-transition: opacity 200ms ease;
transition: opacity 200ms ease;
-webkit-border-radius: 30px;
-moz-border-radius: 30px;
border-radius: 30px; }
.owl-theme .owl-dots .owl-dot.active span, .owl-theme .owl-dots .owl-dot:hover span {
background: #4DC7A0; }

1
css/owl.theme.green.min.css vendored Normal file
View File

@ -0,0 +1 @@
.owl-theme .owl-nav{margin-top:10px;text-align:center;-webkit-tap-highlight-color:transparent}.owl-theme .owl-nav [class*=owl-]{color:#FFF;font-size:14px;margin:5px;padding:4px 7px;background:#D6D6D6;display:inline-block;cursor:pointer;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.owl-theme .owl-nav [class*=owl-]:hover{background:#4DC7A0;color:#FFF;text-decoration:none}.owl-theme .owl-nav .disabled{opacity:.5;cursor:default}.owl-theme .owl-nav.disabled+.owl-dots{margin-top:10px}.owl-theme .owl-dots{text-align:center;-webkit-tap-highlight-color:transparent}.owl-theme .owl-dots .owl-dot{display:inline-block;zoom:1;*display:inline}.owl-theme .owl-dots .owl-dot span{width:10px;height:10px;margin:5px 7px;background:#D6D6D6;display:block;-webkit-backface-visibility:visible;-webkit-transition:opacity 200ms ease;-moz-transition:opacity 200ms ease;-ms-transition:opacity 200ms ease;-o-transition:opacity 200ms ease;transition:opacity 200ms ease;-webkit-border-radius:30px;-moz-border-radius:30px;border-radius:30px}.owl-theme .owl-dots .owl-dot.active span,.owl-theme .owl-dots .owl-dot:hover span{background:#4DC7A0}

View File

@ -6,7 +6,7 @@
*/ */
function understrap_scripts() { function understrap_scripts() {
wp_enqueue_style( 'understrap-theme', get_stylesheet_directory_uri() . '/css/theme.min.css', array(), '0.3.7'); wp_enqueue_style( 'understrap-theme', get_stylesheet_directory_uri() . '/css/theme.min.css', array(), '0.3.8');
// Unregister the default jQuery // Unregister the default jQuery
wp_deregister_script('jquery'); wp_deregister_script('jquery');

View File

@ -1,5 +1,5 @@
/** /**
* customizer.js * File customizer.js.
* *
* Theme Customizer enhancements for a better user experience. * Theme Customizer enhancements for a better user experience.
* *
@ -7,6 +7,7 @@
*/ */
( function( $ ) { ( function( $ ) {
// Site title and description. // Site title and description.
wp.customize( 'blogname', function( value ) { wp.customize( 'blogname', function( value ) {
value.bind( function( to ) { value.bind( function( to ) {
@ -18,6 +19,7 @@
$( '.site-description' ).text( to ); $( '.site-description' ).text( to );
} ); } );
} ); } );
// Header text color. // Header text color.
wp.customize( 'header_textcolor', function( value ) { wp.customize( 'header_textcolor', function( value ) {
value.bind( function( to ) { value.bind( function( to ) {

4353
js/jquery.js vendored

File diff suppressed because it is too large Load Diff

9
js/jquery.min.js vendored

File diff suppressed because one or more lines are too long

7877
js/jquery.slim.js Normal file

File diff suppressed because it is too large Load Diff

4
js/jquery.slim.min.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -1,11 +1,11 @@
/** /**
* navigation.js * File navigation.js.
* *
* Handles toggling the navigation menu for small screens and enables tab * Handles toggling the navigation menu for small screens and enables TAB key
* support for dropdown menus. * navigation support for dropdown menus.
*/ */
( function() { ( function() {
var container, button, menu, links, subMenus; var container, button, menu, links, subMenus, i, len;
container = document.getElementById( 'site-navigation' ); container = document.getElementById( 'site-navigation' );
if ( ! container ) { if ( ! container ) {
@ -47,7 +47,7 @@
subMenus = menu.getElementsByTagName( 'ul' ); subMenus = menu.getElementsByTagName( 'ul' );
// Set menu items with submenus to aria-haspopup="true". // Set menu items with submenus to aria-haspopup="true".
for ( var i = 0, len = subMenus.length; i < len; i++ ) { for ( i = 0, len = subMenus.length; i < len; i++ ) {
subMenus[i].parentNode.setAttribute( 'aria-haspopup', 'true' ); subMenus[i].parentNode.setAttribute( 'aria-haspopup', 'true' );
} }

View File

@ -1,16 +1,16 @@
/** /**
* skip-link-focus-fix.js * File skip-link-focus-fix.js.
* *
* Helps with accessibility for keyboard only users. * Helps with accessibility for keyboard only users.
* *
* Learn more: https://git.io/vWdr2 * Learn more: https://git.io/vWdr2
*/ */
( function() { ( function() {
var is_webkit = navigator.userAgent.toLowerCase().indexOf( 'webkit' ) > -1, var isWebkit = navigator.userAgent.toLowerCase().indexOf( 'webkit' ) > -1,
is_opera = navigator.userAgent.toLowerCase().indexOf( 'opera' ) > -1, isOpera = navigator.userAgent.toLowerCase().indexOf( 'opera' ) > -1,
is_ie = navigator.userAgent.toLowerCase().indexOf( 'msie' ) > -1; isIe = navigator.userAgent.toLowerCase().indexOf( 'msie' ) > -1;
if ( ( is_webkit || is_opera || is_ie ) && document.getElementById && window.addEventListener ) { if ( ( isWebkit || isOpera || isIe ) && document.getElementById && window.addEventListener ) {
window.addEventListener( 'hashchange', function() { window.addEventListener( 'hashchange', function() {
var id = location.hash.substring( 1 ), var id = location.hash.substring( 1 ),
element; element;