Push command textbox at the bottom of the screen
This commit is contained in:
parent
cae156d60c
commit
fa2fb0957d
2 changed files with 99 additions and 60 deletions
|
@ -1,3 +1,39 @@
|
|||
html,
|
||||
body {
|
||||
height: 100%;
|
||||
/* The html and body elements cannot have any padding or margin. */
|
||||
}
|
||||
|
||||
/* Wrapper for page content to push down footer */
|
||||
#wrap {
|
||||
min-height: 100%;
|
||||
height: auto !important;
|
||||
height: 100%;
|
||||
/* Negative indent footer by it's height */
|
||||
margin: 0 auto -25px;
|
||||
}
|
||||
|
||||
/* Set the fixed height of the footer here */
|
||||
#push,
|
||||
#footer {
|
||||
height: 25px;
|
||||
}
|
||||
|
||||
input#sendMessage {
|
||||
border: 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* Lastly, apply responsive CSS fixes as necessary */
|
||||
@media (max-width: 767px) {
|
||||
#footer {
|
||||
margin-left: -20px;
|
||||
margin-right: -20px;
|
||||
padding-left: 20px;
|
||||
padding-right: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: monospace;
|
||||
background-color: black;
|
||||
|
|
23
index.html
23
index.html
|
@ -10,8 +10,9 @@
|
|||
<script type="text/javascript" src="js/protocol.js"></script>
|
||||
<script type="text/javascript" src="js/websockets.js"></script>
|
||||
</head>
|
||||
<body ng-app="weechat">
|
||||
<div ng-controller="WeechatCtrl">
|
||||
<body ng-app="weechat" ng-controller="WeechatCtrl">
|
||||
<div id="wrap">
|
||||
<div>
|
||||
<div ng-hide="connected">
|
||||
<form class="form-horizontal">
|
||||
<legend>Connection</legend>
|
||||
|
@ -43,8 +44,8 @@
|
|||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div ng-show="connected">
|
||||
|
||||
<div ng-show="connected">
|
||||
<span class="label" ng-class="{'label-success': content.notification }" ng-repeat="(key, content) in buffers">
|
||||
<a ng-click="setActiveBuffer(key)">{{ content.full_name }}</a>
|
||||
</span>
|
||||
|
@ -65,15 +66,17 @@
|
|||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<div id="push"></div>
|
||||
</div>
|
||||
<div id="footer" ng-show="connected">
|
||||
<form ng-submit="sendMessage()">
|
||||
<input type="text" ng-model="command"></input>
|
||||
<input type="submit" class="btn btn-primary"></index>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
<input id="sendMessage" type="text" ng-model="command"></input>
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Reference in a new issue