diff --git src/wp-content/themes/twentyseventeen/assets/js/global.js src/wp-content/themes/twentyseventeen/assets/js/global.js
index fa29a19..cb8a6ec 100644
|
|
|
|
| 148 | 148 | return 'http://www.w3.org/2000/svg' === ( 'undefined' !== typeof SVGRect && div.firstChild && div.firstChild.namespaceURI ); |
| 149 | 149 | } |
| 150 | 150 | |
| | 151 | /** |
| | 152 | * Test if an iOS device. |
| | 153 | */ |
| | 154 | function checkiOS() { |
| | 155 | return /iPad|iPhone|iPod/.test(navigator.userAgent) && ! window.MSStream; |
| | 156 | } |
| | 157 | |
| | 158 | /* |
| | 159 | * Test if background-attachment: fixed is supported. |
| | 160 | * @link http://stackoverflow.com/questions/14115080/detect-support-for-background-attachment-fixed |
| | 161 | */ |
| | 162 | function supportsFixedBackground() { |
| | 163 | var el = document.createElement('div'), |
| | 164 | isSupported; |
| | 165 | |
| | 166 | try { |
| | 167 | if ( ! ( 'backgroundAttachment' in el.style ) || checkiOS() ) { |
| | 168 | return false; |
| | 169 | } |
| | 170 | el.style.backgroundAttachment = 'fixed'; |
| | 171 | isSupported = ( 'fixed' === el.style.backgroundAttachment ); |
| | 172 | return isSupported; |
| | 173 | } |
| | 174 | catch (e) { |
| | 175 | return false; |
| | 176 | } |
| | 177 | } |
| | 178 | |
| 151 | 179 | // Fire on document ready. |
| 152 | 180 | $( document ).ready( function() { |
| 153 | 181 | |
| … |
… |
|
| 184 | 212 | if ( true === supportsInlineSVG() ) { |
| 185 | 213 | document.documentElement.className = document.documentElement.className.replace( /(\s*)no-svg(\s*)/, '$1svg$2' ); |
| 186 | 214 | } |
| | 215 | |
| | 216 | if ( true === supportsFixedBackground() ) { |
| | 217 | document.documentElement.className += ' background-fixed'; |
| | 218 | } |
| 187 | 219 | }); |
| 188 | 220 | |
| 189 | 221 | // If navigation menu is present on page, adjust it on scroll and screen resize. |
diff --git src/wp-content/themes/twentyseventeen/style.css src/wp-content/themes/twentyseventeen/style.css
index 6e8e998..4f8391c 100644
|
|
|
object { |
| 4006 | 4006 | } |
| 4007 | 4007 | } |
| 4008 | 4008 | |
| 4009 | | @media screen and ( min-width: 85.45em ) { |
| 4010 | | |
| 4011 | | .panel-image { |
| | 4009 | @media screen and ( min-width: 55em ) { |
| | 4010 | .background-fixed .panel-image { |
| 4012 | 4011 | background-attachment: fixed; |
| 4013 | 4012 | } |
| 4014 | 4013 | } |