[wp-meta] [Making WordPress.org] #53: Making WordPress.org Responsive
Making WordPress.org
noreply at wordpress.org
Wed Oct 23 20:45:07 UTC 2013
#53: Making WordPress.org Responsive
--------------------------+------------------------------------
Reporter: cyberchimps | Owner:
Type: enhancement | Status: new
Priority: low | Component: General
Resolution: | Keywords: needs-ui needs-refresh
--------------------------+------------------------------------
Comment (by georgestephanis):
I'd personally rather just have the JS toggle a class, and deal with the
display / hiding (and any animations) entirely in CSS -- it'd necessitate
adding an ID to the parent UL, but thats far simpler than a lot of JS dom
traversal.
{{{
<script>
var toggleMenu = function(){
var m = document.getElementById('wporg-header-menu'),
c = m.className;
m.className = c.match( ' active' ) ? c.replace( ' active', '' ) : c +
' active';
}
</script>
<div id="el" onclick="toggleMenu();">Click</div>
}}}
or something.
--
Ticket URL: <http://meta.trac.wordpress.org/ticket/53#comment:21>
Making WordPress.org <http://meta.trac.wordpress.org/>
WordPress blogging software
More information about the wp-meta
mailing list