Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

The position of the status bar is stabilised to stay proper even on p…

…age resize
  • Loading branch information...
commit 6de12d28e20b0b3b11c787d3fc96d9f229b53cd8 1 parent 213a44a
@seekshiva authored
Showing with 8,194 additions and 5 deletions.
  1. +4 −2 index.php
  2. +8,176 −0 jquery.js
  3. +3 −3 main.css
  4. +10 −0 script.js
  5. +1 −0  script.js~
View
6 index.php
@@ -3,6 +3,8 @@
<head>
<title>Emacs</title>
<link rel="stylesheet" href="main.css">
+<script src="jquery.js"></script>
+<script src="script.js"></script>
</head>
<body>
<div id="menubar">
@@ -10,9 +12,9 @@
</div>
<div class="bufferC">
<div class="buffer">hi</div>
-<div class="statusbar">
+<pre class="statusbar">
-111:**--F1&nbsp;&nbsp;&nbsp;index.php&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;All L14&nbsp;&nbsp;&nbsp;&nbsp;(Fundamental)---------------------------------------------------------------------------------------------------------------------
-</div>
+</pre>
</div>
<div id="minibuffer">
C-x C-g is undefined
View
8,176 jquery.js
8,176 additions, 0 deletions not shown
View
6 main.css
@@ -1,7 +1,7 @@
-body {background-color:#000; color:#0F0; margin:0; padding-top:20px; font-family:monospace; font-size:large; overflow:hidden; cursor:none; }
+body {background-color:#000; color:#0F0; margin:0; padding-top:20px; font-family:monospace; font-size:medium; aoverflow:hidden; cursor:none; }
#menubar {color:#000; background-color:#0F0; width:100%; position:fixed; top:0;}
-#minibuffer {position:fixed; bottom:5px; z-index:10000; }
+#minibuffer {position:fixed; bottom:5px; z-index:10000; background-color:#000; }
.bufferC .buffer {width:100%; height:705px; }
-.statusbar {color:#000; background-color:#0F0; position: }
+.statusbar {color:#000; background-color:#0F0; max-width:100%; overflow:hidden; }
View
10 script.js
@@ -0,0 +1,10 @@
+$(document).ready(function() {
+ $('.buffer').css('height',function() {
+ return $(window).height()-70;
+ });
+ $(window).resize(function() {
+ $('.buffer').css('height',function() {
+ return $(window).height()-70;
+ });
+ });
+ });
View
1  script.js~
@@ -0,0 +1 @@
+alert('hi');

0 comments on commit 6de12d2

Please sign in to comment.
Something went wrong with that request. Please try again.