Skip to content

Commit

Permalink
#10 - adding chat to the bottom of the layout for now
Browse files Browse the repository at this point in the history
  • Loading branch information
Pete Broderick committed May 7, 2015
1 parent 3163336 commit 5fe3a6d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
9 changes: 8 additions & 1 deletion app/assets/stylesheets/application.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,11 @@
*
*= require_tree .
*= require_self
*/
*/

#chat {
position: absolute;
bottom: 0;
left: 0;
}

4 changes: 2 additions & 2 deletions app/assets/templates/game.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<h1>Settlers Chat</h1>
<pre id="output">
<div id="output">
<div ng-repeat="comment in comments track by $index">{{comment}}</div>
</pre>
</div>
<form class="chat" ng-submit="sendComment()">
<input ng-model="comment" placeholder="say something" autofocus />
<input type="submit" name="submit" value="Send" />
Expand Down

0 comments on commit 5fe3a6d

Please sign in to comment.