Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Toyo committed Aug 23, 2018
1 parent d86bf46 commit 347d8ab
Showing 1 changed file with 32 additions and 7 deletions.
39 changes: 32 additions & 7 deletions resources/themes/bootstrap/index.php
Expand Up @@ -132,21 +132,46 @@ function AddFavorite(title, url) {
<hr style="margin-bottom: 0;margin-top: 40px;" />
<?php file_exists('footer.php') ? include('footer.php') : include($lister->getThemePath(true) . "/default_footer.php"); ?>
<script type="text/javascript">
$(document).ready(function(){
window.onload=function(){
changeDivHeight();
}
window.onresize=function(){
changeDivHeight();
}
function changeDivHeight(){
if(document.getElementById("container_readme"))
{
container_readme.style.marginBottom = '0';
}
if (document.body.scrollHeight > window.innerHeight)

ScrollHeight_body=document.body.scrollHeight-1;
InnerHeight_window=window.innerHeight;
ClientHeight_top=container_top.clientHeight+60;

//console.log(ScrollHeight_body, InnerHeight_window, container_top.clientHeight, ClientHeight_top, InnerHeight_window);

if (ScrollHeight_body > InnerHeight_window)
{
container_top.style.marginBottom = '0';
container_page.style.marginBottom = '0';
if(document.getElementById("container_readme"))
if (ClientHeight_top > InnerHeight_window)
{
container_readme.style.marginTop = '20px';
container_top.style.marginBottom = '0';
container_page.style.marginBottom = '0';
if(document.getElementById("container_readme"))
{
container_readme.style.marginTop = '20px';
}
}
else
{
container_top.style.marginBottom = '';
container_page.style.marginBottom = '';
if(document.getElementById("container_readme"))
{
container_readme.style.marginTop = '';
}
}
}
});
}
</script>
</body>
</html>

0 comments on commit 347d8ab

Please sign in to comment.