Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 93 lines (77 sloc) 3.315 kb
8b560b0 @rustyio Initial commit.
rustyio authored
1 -module (demos).
255dc81 @rustyio Split Quickstart into separate git project.
rustyio authored
2 -include_lib ("nitrogen_core/include/wf.hrl").
8b560b0 @rustyio Initial commit.
rustyio authored
3 -compile(export_all).
4
5 main() -> #template { file="./templates/grid.html" }.
6
7 title() -> "Demos".
8
9 layout() ->
10 #container_12 { body=[
11 #grid_12 { alpha=true, omega=true, class=header, body=common:header(demos) },
12 #grid_clear {},
13
14 #grid_10 { alpha=true, omega=true, prefix=1, suffix=1, class=headline, body=headline() },
15 #grid_clear {},
16
17 #grid_4 { alpha=true, prefix=1, body=left(), class=pad_right },
18 #grid_3 { body=middle() },
19 #grid_3 { omega=true, suffix=1, body=right() },
20 #grid_clear {},
21
22 #grid_12 { alpha=true, omega=true, body=common:footer() }
23 ]}.
24
25 headline() ->
26 "Demos".
27
28 left() ->
29 [
30 "
31 Click a link on the right to see Nitrogen in action.
32 <p>
33 Each demo is a separate Erlang module. You can view the
34 source code of the module using the 'View Module Source' link
35 on the left side of the page.
36
37 "
38 ].
39
40 middle() ->
41 [
42 #h2 { text="Controls and Validation" },
43 #p{},
44 #link { text="Simple Controls", url="/demos/simplecontrols" }, #br{},
45 #link { text="In-Place Textbox", url="/demos/advancedcontrols1" }, #br{},
46 #link { text="Google Charts", url="/demos/advancedcontrols2" }, #br{},
47 #link { text="Radio Buttons", url="/demos/radio" }, #br{},
48 #link { text="File Uploading", url="/demos/upload" }, #br{},
49 #link { text="User Notices", url="/demos/notices" }, #br{},
ebd5862 @rustyio Update to v2.0.2.
rustyio authored
50 #link { text="Validation", url="/demos/validation" }, #br{},
51 #link { text="Autocompletion", url="/demos/textbox_autocomplete" }, #br{},
8b560b0 @rustyio Initial commit.
rustyio authored
52
53 #h2 { text="Drag, Drop & Sort" },
54 #p{},
55 #link { text="Drag and Drop", url="/demos/dragdrop" }, #br{},
56 #link { text="Sorting", url="/demos/sorting1" }, #br{},
57 #link { text="Nested Sorting", url="/demos/sorting2" }, #br{},
58
59 #h2 { text="Data Binding" },
60 #p{},
61 #link { text="Simple (List-Based) Binding", url="/demos/binding1" }, #br{},
62 #link { text="Record-Based Binding", url="/demos/binding2" }, #br{},
63 #link { text="Key/Value Pair Binding", url="/demos/binding3" }, #br{},
64 #link { text="Binding With a Transform Function", url="/demos/binding4" }, #br{}
65 ].
66
67 right() ->
68 [
69 #h2 { text="Events and Ajax" },
70 #p{},
71 #link { text="Effects", url="/demos/effects" }, #br{},
72 #link { text="Postbacks", url="/demos/postback" }, #br{},
73 #link { text="AJAX Updates", url="/demos/ajax" }, #br{},
74 #link { text="AJAX Replace", url="/demos/replace" }, #br{},
75 #link { text="AJAX Remove", url="/demos/remove" }, #br{},
76 #link { text="JQuery Paths", url="/demos/jquerypaths" }, #br{},
77 #link { text="Javascript API", url="/demos/api" }, #br{},
78
79 #h2 { text="Comet/Asynchronous Calls" },
80 #p{},
81 #link { text="Counter with Comet", url="/demos/comet1" }, #br{},
82 #link { text="Chatroom with Comet", url="/demos/comet2" }, #br{},
83 #link { text="Multiple Comets with Graceful Exit", url="/demos/comet3" }, #br{},
84 #link { text="Continuations", url="/demos/continuations" }, #br{},
85
86 #h2 { text="Advanced Topics" },
87 #p{},
88 #link { text="Set Content Type", url="/demos/contenttype" }, #br{},
89 #link { text="HTTP Headers", url="/demos/headers" }, #br{},
1ee091c @rustyio Remove unnecessary P tags, add state demo.
rustyio authored
90 #link { text="Security", url="/demos/security" }, #br{},
91 #link { text="State", url="/demos/state" }
8b560b0 @rustyio Initial commit.
rustyio authored
92 ].
Something went wrong with that request. Please try again.