Navigation Menu

Skip to content

Commit

Permalink
some HTML and CSS update
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederic Ye committed Aug 29, 2012
1 parent 9d4cc14 commit c562f3d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion resources/css/style.css
Expand Up @@ -44,6 +44,6 @@
margin-top: 6px; margin-top: 6px;
} }


footer { #footer {
background:#eee; background:#eee;
} }
22 changes: 11 additions & 11 deletions src/view.opa
@@ -1,16 +1,16 @@
module View { module View {


function page_template(content) { function page_template(content) {
<> <div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar navbar-inverse navbar-fixed-top"> <div class=navbar-inner>
<div class=navbar-inner> <div class=container>
<div class=container> <div id=#logo />
<div id=#logo />
</div>
</div> </div>
</div> </div>
</div>
<div id=#main>
{content} {content}
</> </div>
} }


function user_update(message msg) { function user_update(message msg) {
Expand All @@ -32,16 +32,16 @@ module View {
function chat_html(author) { function chat_html(author) {
<div id=#conversation class=container-fluid <div id=#conversation class=container-fluid
onready={function(_) { Model.register_message_callback(user_update)}} /> onready={function(_) { Model.register_message_callback(user_update)}} />
<footer class="navbar navbar-fixed-bottom"> <div id=#footer class="navbar navbar-fixed-bottom">
<div class=container> <div class=container>
<div class=input-append> <div class=input-append>
<input id=#entry class=input-xxlarge type=text <input id=#entry class=input-xxlarge type=text
onnewline={function(_) { broadcast(author) }}> onnewline={function(_) { broadcast(author) }}>
<button class="btn btn-primary" type=button <button class="btn btn-primary" type=button
onclick={function(_) { broadcast(author) }}>Post</> onclick={function(_) { broadcast(author) }}>Post</>
</> </div>
</> </div>
</> </div>
} }


function default_page() { function default_page() {
Expand Down

0 comments on commit c562f3d

Please sign in to comment.