Note that there are some explanatory texts on larger screens.

plurals
  1. POWhy doesn't my responsive menu RE-APPEAR as a list when the window gets larger?
    primarykey
    data
    text
    <p>I have a sidebar list that I am turning into a simple drop-down accordion button responsively. The problem is that when you resize the window smaller, open and then close the list, then resize the window larger. The list does not re-appear in it's "desktop" form. </p> <p>Demo: <a href="http://iamalecschmidt.com/newblog/" rel="nofollow">http://iamalecschmidt.com/newblog/</a></p> <p>I'm using a simple bit of Javascript to switch out the Menu to switch the sidebar to a menu:</p> <p>THE HTML:</p> <pre><code>&lt;aside class="left-sidebar"&gt; &lt;p class="intro"&gt;Hey! I’m Alec.&lt;/p&gt; &lt;p class="bio"&gt; I &lt;a href="#"&gt;design&lt;/a&gt; interfaces for websites &amp; apps, I also &lt;a href="#"&gt;cook&lt;/a&gt; and I am an aspiring front-end &lt;a href="#"&gt;developer&lt;/a&gt;. &lt;/p&gt; &lt;div class="leftNavWrap"&gt; &lt;ul class="leftNav"&gt; &lt;li&gt;&lt;a href="#"&gt;Home&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Work&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;About&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Contact&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;a class="topicsButton" href="#"&gt;Topics &amp;nbsp;&lt;span&gt;&amp;#9660;&lt;/span&gt;&lt;/a&gt; &lt;a class="dribbbleIcon" href="#"&gt;Dribbble&lt;/a&gt; &lt;a class="twitterIcon" href="#"&gt;Twitter&lt;/a&gt; &lt;/div&gt; &lt;/aside&gt; </code></pre> <p>THE JAVASCRIPT:</p> <pre><code>&lt;script type="text/javascript"&gt; // responsive menu jQuery(document).ready(function($){ /* prepend menu icon */ $('p.bio').append('&lt;div id="menu-button"&gt;&lt;p&gt;Menu&lt;/p&gt;&lt;/div&gt;'); /* toggle nav */ $("#menu-button").on("click", function(){ $('div.leftNavWrap').slideToggle(); $(this).toggleClass("active"); }); }); &lt;/script&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload