File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change 1313 < div class ="container ">
1414 < nav >
1515 < img src ="Images/logo.jpg " class ="logo ">
16- < ul >
16+ < ul id =" sidemenu " >
1717 < li > < a href ="# "> Home</ a > </ li >
1818 < li > < a href ="# "> About</ a > </ li >
1919 < li > < a href ="# "> Projects</ a > </ li >
2020 < li > < a href ="# "> Contact</ a > </ li >
21+ < i class ="fas fa-square-xmark " onclick ="closemenu() "> </ i >
2122 </ ul >
23+ < i class ="fas fa-bars " onclick ="openmenu() "> </ i >
24+
2225 </ nav >
2326 < div class ="header-text ">
2427 < h1 > Hi, < br > I'm < span > Emmanuel</ span > </ h1 >
@@ -212,6 +215,18 @@ <h1 class="sub-title">Contact Me</h1>
212215 document . getElementById ( tabname ) . classList . add ( "active-tab" )
213216 }
214217 </ script >
218+
219+ < script >
220+ var sidemenu = document . getElementById ( "sidemenu" ) ;
221+
222+ function openmenu ( ) {
223+ sidemenu . style . right = "0"
224+ }
225+
226+ function closemenu ( ) {
227+ sidemenu . style . right = "-200px"
228+ }
229+ </ script >
215230
216231 </ body >
217232</ html >
You can’t perform that action at this time.
0 commit comments