Skip to content
Snippets Groups Projects
Commit 34cd08c4 authored by Danny Auble's avatar Danny Auble
Browse files

Make the fixed side bar not fixed if window isn't large enough

parent db87bf6a
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="Pragma" content="no-cache"> <meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="keywords" content="Simple Linux Utility for Resource Management, SLURM, resource management, <meta http-equiv="keywords" content="Simple Linux Utility for Resource Management, SLURM, resource management,
Linux clusters, high-performance computing, Livermore Computing"> Linux clusters, high-performance computing">
<meta name="description" content="Simple Linux Utility for Resource Management"> <meta name="description" content="Simple Linux Utility for Resource Management">
<title>Simple Linux Utility for Resource Management</title> <title>Simple Linux Utility for Resource Management</title>
<link href="linuxstyles.css" rel="stylesheet" type="text/css"> <link href="linuxstyles.css" rel="stylesheet" type="text/css">
...@@ -21,6 +21,21 @@ Linux clusters, high-performance computing, Livermore Computing"> ...@@ -21,6 +21,21 @@ Linux clusters, high-performance computing, Livermore Computing">
customSearchControl.setResultSetSize(google.search.Search.SMALL_RESULTSET); customSearchControl.setResultSetSize(google.search.Search.SMALL_RESULTSET);
customSearchControl.draw('cse'); customSearchControl.draw('cse');
}, true); }, true);
function window_check ()
{
obj = document.getElementById('navigation');
if ((window.innerWidth>=800) && (window.innerHeight>=700) &&
(screen.width>=800) && (screen.height>=700)) {
obj.style.position = 'fixed';
} else {
obj.style.position = 'absolute';
}
}
window.onload = window_check;
window.onresize = window_check;
</script> </script>
</head> </head>
......
...@@ -82,7 +82,6 @@ IMG.displayed { ...@@ -82,7 +82,6 @@ IMG.displayed {
border-color:#066cb2; border-color:#066cb2;
border-style:solid; border-style:solid;
display:table-cell; display:table-cell;
position:fixed;
} }
/* The main text of the page */ /* The main text of the page */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment