1de9e28f1a408088ecf0b2af19452d8a0b66ed18
custom.js
| ... | ... | @@ -68,7 +68,7 @@ window.onload = function() { |
| 68 | 68 | |
| 69 | 69 | images[i].style.display='none'; |
| 70 | 70 | |
| 71 | - if (images[i].id == page) { |
|
| 71 | + if (images[i].id+'.md' == page) { |
|
| 72 | 72 | // do something here |
| 73 | 73 | images[i].style.display='block'; |
| 74 | 74 | } //document.getElementById(page).style.display = 'block'; |
| ... | ... | @@ -77,9 +77,9 @@ window.onload = function() { |
| 77 | 77 | |
| 78 | 78 | } |
| 79 | 79 | var path = window.location.pathname; |
| 80 | -var page = path.split("/").pop(); |
|
| 81 | -console.log( page ); |
|
| 82 | - document.getElementById("dat").innerHTML = filterSelection('biblio_theorie'); |
|
| 80 | + var page = path.split("/").pop(); |
|
| 81 | + console.log( page ); |
|
| 82 | + document.getElementById("dat").innerHTML = filterSelection(page); |
|
| 83 | 83 | |
| 84 | 84 | |
| 85 | 85 | } |
| ... | ... | \ No newline at end of file |