|
|
Line 2: |
Line 2: |
| | | |
| <script> | | <script> |
− | alert('x') | + | alert('x'); |
− | function hide_nav_click(this) {
| + | |
− | alert("hide")
| + | |
− | // var nav = this.parentElement
| + | |
− | // nav.classList.add('nav-hided')
| + | |
− | // this.innerHTML = '>'
| + | |
− | // this.onclick = "show_nav_click(this)"
| + | |
− | }
| + | |
− | function show_nav_click(this) {
| + | |
− | alert("show")
| + | |
− | var nav = this.parentElement
| + | |
− | nav.classList.remove('nav-hided')
| + | |
− | this.innerHTML = '<'
| + | |
− | this.onclick = "hide_nav_click(this)"
| + | |
− | }
| + | |
| </script> | | </script> |
| | | |
Revision as of 01:01, 11 August 2015