diff --git a/index.html b/index.html index a86f9f0..f3a53e0 100644 --- a/index.html +++ b/index.html @@ -27,6 +27,7 @@

Ply

+

Alert

@@ -41,9 +42,9 @@
- +

 					Ply.dialog("alert", "Hello %username%!");
-				
+				
@@ -60,13 +61,13 @@
- +

 					Ply.dialog(
 						"confirm",
 						{ effect: "3d-sign" },
 						"Continue?"
 					);
-				
+				
@@ -86,15 +87,59 @@
- +

 					Ply.dialog("prompt", {
 						title: "Spam subscribe",
 						form: { email: "E-mail" }
 					});
-				
+				
+
+ +
+

Dialogs / Multistep

+ +
+
+
+
You want to win?
+ +
+
+
+ +
+

+					Ply.dialog({
+						"intro": {
+							ui: "confirm",
+							data: {
+								text: "You want to win?",
+								ok: "Yes",
+								cancel: "No"
+							},
+							next: "congratulations",
+							nextEffect: "3d-flip[180,-180]"
+						},
+						"congratulations": {
+							data: {
+								children: [{
+									tag: "img",
+									src: "st/you-win.gif"
+								}],
+								ok: "Okay"
+							}
+						}
+					});
+				
+
+
+ + + +
Loading…
@@ -124,7 +169,7 @@ diff --git a/ply.css b/ply.css index 95713bd..f534ad3 100644 --- a/ply.css +++ b/ply.css @@ -149,7 +149,7 @@ border: 2px solid #ccc; outline: 0; padding: 5px 10px; - margin-top: 10px; + margin-top: 15px; font-size: 16px; font-family: "Arial", Helvetica; box-sizing: border-box; diff --git a/st/app.css b/st/app.css index d79ebd0..37a96ef 100644 --- a/st/app.css +++ b/st/app.css @@ -46,6 +46,7 @@ h2 { .row { margin-bottom: 30px; + clear: both; } .row:after { clear: both; @@ -151,6 +152,8 @@ pre code { font-family: Menlo, Monaco, Consolas, monospace; line-height: 1.5; padding: 30px; + overflow: scroll; + max-height: 220px; } diff --git a/st/you-win.gif b/st/you-win.gif new file mode 100644 index 0000000..f77c395 Binary files /dev/null and b/st/you-win.gif differ