Refactored code container

This commit is contained in:
squidfunk
2016-09-23 20:26:27 +02:00
parent 71d022ef39
commit ffe06939a7
8 changed files with 47 additions and 10 deletions

View File

@@ -118,6 +118,19 @@ document.addEventListener('DOMContentLoaded', function() {
}
});
// document.querySelector('[for="nav-3"]').addEventListener('click', function() {
// var el = document.querySelector('[for="nav-3"] + nav');
//
// // TODO: do via class and disable transforms!!!
// el.style.maxHeight = '100%';
// var rect = el.getBoundingClientRect();
// el.style.maxHeight = '0';
//
// // console.log(rect.height);
// el.style.maxHeight = '120px';
// });
// setTimeout(function() {
fetch('https://api.github.com/repos/squidfunk/mkdocs-material')
.then(function(response) {