From cc83f7b1c72170f6eb679930107914a4b8bd15f7 Mon Sep 17 00:00:00 2001 From: eavichay Date: Mon, 12 Dec 2016 16:57:55 +0200 Subject: [PATCH] fixing slim-states demo --- example/States/index.html | 25 +++++++++++++++++++------ example/States/slim3.png | Bin 0 -> 12112 bytes 2 files changed, 19 insertions(+), 6 deletions(-) create mode 100644 example/States/slim3.png diff --git a/example/States/index.html b/example/States/index.html index 36e4858..9124096 100644 --- a/example/States/index.html +++ b/example/States/index.html @@ -5,19 +5,29 @@ SlimJS - States Demo + +

+

States demo with slim-states

- + -
Init
-
Hello
-
World
+
This is the initial state. click the "Next" button for the next state
+
Hello (div #1)
Goodbye
+
World (div #2)
-
+ +Fork me on GitHub + + \ No newline at end of file diff --git a/example/States/slim3.png b/example/States/slim3.png new file mode 100644 index 0000000000000000000000000000000000000000..a26ba94cc373618a3b16f800a13b5831514b0c67 GIT binary patch literal 12112 zcmXY11ymbd(+NT>n;aHFvA4Jb&k&n#IRcGv;cPDaN806@q6 z_l5(crV|1HXiApi;>yYvwvM(A7PfX2vf|}W>4?k{r%SuHaeKve^va}0=H13Y3II>)LQCkJsRFpm2(wg5jZhOczoefY3X46mmKG~H{g~`KCOlrFH%6%+S-ag* zh&cVY->zT6K*^59hiQBH>^g>3F*e2t%bq)b1kyu;J)E@xshj zOYAF%%={CZw=IzH{fb9K6txLOqwvo(S(eU{Fq0r;B9{;&rC3?-;p)rV_E2T%Y2iEKZ{Dlw9) zE<)x`B+@R#XJdgiJ+z!3dK{Ql#k_+ z;ZO}%r_higyAb~NhCf7KsySA05WwmG6x=G!5${){B0P=pOT4N0196~KF8ZI(jvT4c z1lehSzSR*6NAl+E{wcM1yBIAZKEU3&M~KYTYt7Eu-vh4ZV@8cL8L6f$!zk@1uF@=n zZwb3L8LxIh!10spMCC{fKcK<~s&vy)#udxg(Kch> z_YxX&a)fBhFjLLqMB}mnJwnBMKTzX@iF495#k`TN&R3trnUtEeQKi~vE=l8-A*PBO zTKsHPgUlb#Ou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