-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinterface.haml
53 lines (50 loc) · 1.7 KB
/
interface.haml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
!!! XML
!!! Strict
%html{ xmlns: "http://www.w3.org/1999/xhtml" }
%head
%title DinMaker - A real-time chat demo for TopCloud and NodeRouter
%link{ href: "style.css", rel: "stylesheet", type: "text/css" }
%link{ href: "/external/ui-darkness/jquery-ui-1.7.2.custom.css", rel: "stylesheet", type: "text/css" }
%script{ src: "/external/jquery-1.3.2.min.js", type: "text/javascript" }
%script{ src: "/external/jquery-ui-1.7.2.custom.min.js", type: "text/javascript" }
%script{ src: "/external/jquery.haml-1.3.js", type: "text/javascript" }
%script{ src: "/lib/TC.js", type: "text/javascript" }
:javascript
// This file was generated on #{Date.now()}
$(function () {
TC.set_path("lib/");
});
function login(form) {
TC.render_interface('Demo.js', $('input', form).val());
}
:css
body, html {
background: #222 url(background.jpg) 50% 50%;
font-size: 12px;
width: 100%;
height: 100%;
position: absolute;
padding: 0;
margin: 0;
overflow: hidden;
}
%body
%form{ onsubmit: "login(this.form); return false;" }
#shadow
.ui-widget-shadow
%table#login.ui-widget.ui-widget-content.ui-corner-all
%thead
%tr
%th.ui-widget-header.ui-corner-top{ colspan: "2" }
Enter your desired username for DinMaker
%tr
%th
Name
%td
%input{ name: "name", style: "width: 93%" }
%tr
%th
%td
%button.ui-state-default.ui-corner-all{ title: "Enter the chat room.", type: "submit" }
%span.ui-icon.ui-icon-unlocked
Launch