Last active
August 29, 2015 14:25
-
-
Save gustaff-weldon/414f832d206f9cfad236 to your computer and use it in GitHub Desktop.
Untitled
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
h1, .h1 { | |
font-size: 2rem; | |
} | |
h2, .h2 { | |
font-size: 1.5rem; | |
} | |
h2, .h3 { | |
font-size: 1.2rem; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ol> | |
<li class="h1"><h1>H1 | |
<li class="h2"><h2>H2 | |
<li class="h3"><h3>H3 | |
</ol> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var trigger = document.querySelector('.trigger'); | |
var menu = document.querySelector('.menu'); | |
var open = 0; | |
trigger.addEventListener('click', function() { | |
open = !open; | |
if(open) { | |
menu.classList.remove('collapsed'); | |
} else { | |
menu.classList.add('collapsed'); | |
} | |
}, false) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment