WordPress.org

Making WordPress.org

Changeset 11060


Ignore:
Timestamp:
06/25/2021 01:50:16 AM (7 months ago)
Author:
dd32
Message:

Openverse: Add a iframe-based openverse template for WordPress.org.

See #5789, https://github.com/WordPress/openverse-frontend/issues/64
Closes https://github.com/WordPress/wordpress.org/pull/31

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub
Files:
17 added
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg/js/navigation.min.js

    r10865 r11060  
    1 !function(){var e,a,t,s,n,l,i=document.getElementById("site-navigation");if(i&&void 0!==(e=i.getElementsByTagName("button")[0]))if(void 0!==(a=i.getElementsByTagName("ul")[0])){for(-1===a.className.indexOf("nav-menu")&&(a.className+=" nav-menu"),e.onclick=function(){-1!==i.className.indexOf("toggled")?(i.className=i.className.replace(" toggled",""),e.setAttribute("aria-expanded","false")):(i.className+=" toggled",e.setAttribute("aria-expanded","true"))},t=a.getElementsByTagName("a"),n=0,l=(s=a.getElementsByTagName("ul")).length;n<l;n++)s[n].parentNode.setAttribute("aria-haspopup","true");for(n=0,l=t.length;n<l;n++)t[n].addEventListener("focus",m,!0),t[n].addEventListener("blur",m,!0)}else e.style.display="none";function m(){for(var e=this;-1===e.className.indexOf("nav-menu");)"li"===e.tagName.toLowerCase()&&(-1!==e.className.indexOf("focus")?e.className=e.className.replace(" focus",""):e.className+=" focus"),e=e.parentElement}}();
     1!function(){var e,a,t,s,n,l,i=document.getElementById("site-navigation");if(i&&void 0!==(e=i.getElementsByTagName("button")[0]))if(void 0!==(a=i.getElementsByTagName("ul")[0])){for(-1===a.className.indexOf("nav-menu")&&(a.className+=" nav-menu"),e.onclick=function(){-1!==i.className.indexOf("toggled")?(i.className=i.className.replace(" toggled",""),e.setAttribute("aria-expanded","false")):(i.className+=" toggled",e.setAttribute("aria-expanded","true"))},t=a.getElementsByTagName("a"),n=0,l=(s=a.getElementsByTagName("ul")).length;n<l;n++)s[n].parentNode.setAttribute("aria-haspopup","true");for(n=0,l=t.length;n<l;n++)t[n].addEventListener("focus",m,!0),t[n].addEventListener("blur",m,!0)}else e.style.display="none";function m(){for(var e=this;-1===e.className.indexOf("nav-menu");)"li"===e.tagName.toLowerCase()&&(-1!==e.className.indexOf("focus")?e.className=e.className.replace(" focus",""):e.className+=" focus"),e=e.parentElement}}(),function(){var e,a,t,s,n,l,i=document.getElementById("site-navigation");if(i&&void 0!==(e=i.getElementsByTagName("button")[0]))if(void 0!==(a=i.getElementsByTagName("ul")[0])){for(-1===a.className.indexOf("nav-menu")&&(a.className+=" nav-menu"),e.onclick=function(){-1!==i.className.indexOf("toggled")?(i.className=i.className.replace(" toggled",""),e.setAttribute("aria-expanded","false")):(i.className+=" toggled",e.setAttribute("aria-expanded","true"))},t=a.getElementsByTagName("a"),n=0,l=(s=a.getElementsByTagName("ul")).length;n<l;n++)s[n].parentNode.setAttribute("aria-haspopup","true");for(n=0,l=t.length;n<l;n++)t[n].addEventListener("focus",m,!0),t[n].addEventListener("blur",m,!0)}else e.style.display="none";function m(){for(var e=this;-1===e.className.indexOf("nav-menu");)"li"===e.tagName.toLowerCase()&&(-1!==e.className.indexOf("focus")?e.className=e.className.replace(" focus",""):e.className+=" focus"),e=e.parentElement}}();
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg/js/skip-link-focus-fix.min.js

    r7428 r11060  
    1 !function(){var e=-1<navigator.userAgent.toLowerCase().indexOf("webkit"),t=-1<navigator.userAgent.toLowerCase().indexOf("opera"),n=-1<navigator.userAgent.toLowerCase().indexOf("msie");(e||t||n)&&document.getElementById&&window.addEventListener&&window.addEventListener("hashchange",function(){var e,t=location.hash.substring(1);/^[A-z0-9_-]+$/.test(t)&&(e=document.getElementById(t))&&(/^(?:a|select|input|button|textarea)$/i.test(e.tagName)||(e.tabIndex=-1),e.focus())},!1)}();
     1!function(){var e=-1<navigator.userAgent.toLowerCase().indexOf("webkit"),t=-1<navigator.userAgent.toLowerCase().indexOf("opera"),n=-1<navigator.userAgent.toLowerCase().indexOf("msie");(e||t||n)&&document.getElementById&&window.addEventListener&&window.addEventListener("hashchange",function(){var e,t=location.hash.substring(1);/^[A-z0-9_-]+$/.test(t)&&(e=document.getElementById(t))&&(/^(?:a|select|input|button|textarea)$/i.test(e.tagName)||(e.tabIndex=-1),e.focus())},!1)}(),function(){var e=-1<navigator.userAgent.toLowerCase().indexOf("webkit"),t=-1<navigator.userAgent.toLowerCase().indexOf("opera"),n=-1<navigator.userAgent.toLowerCase().indexOf("msie");(e||t||n)&&document.getElementById&&window.addEventListener&&window.addEventListener("hashchange",function(){var e,t=location.hash.substring(1);/^[A-z0-9_-]+$/.test(t)&&(e=document.getElementById(t))&&(/^(?:a|select|input|button|textarea)$/i.test(e.tagName)||(e.tabIndex=-1),e.focus())},!1)}();
Note: See TracChangeset for help on using the changeset viewer.