Magic
Posting Freak
- Oct 11, 2012
- 1,026
- 196
Hello,
So I am basically stuck on this last thing for my portfolio, when the user is for example, viewing my website on their iPhone the menu will hide and a small bar will show instead like so:
and than when that is tapped it turns into this:
where I than want a simple list menu to appear.
The code for the toggling of the bar is as follows:
Does anyone know how to than display a menu of:
So I am basically stuck on this last thing for my portfolio, when the user is for example, viewing my website on their iPhone the menu will hide and a small bar will show instead like so:
and than when that is tapped it turns into this:
where I than want a simple list menu to appear.
The code for the toggling of the bar is as follows:
HTML:
function toggleClass(el) {
if(el.className == "show-menu"){
el.className = "navi_mob";
} else {
el.className = "show-menu";
}
}
Does anyone know how to than display a menu of:
HTML:
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="webdev.html">Web Development</a></li>
<li><a href="photography.html">Photography</a></li>
<li><a href="about.html">About</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>