diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2018-05-03 21:51:07 +0000 |
|---|---|---|
| committer | s-ol <s-ol@users.noreply.github.com> | 2018-05-03 21:53:41 +0000 |
| commit | d8e5f36cd7fc2d063f7f4bc992d2168b34f68b1c (patch) | |
| tree | 323ee024080f35d1e206548757a7d72a8b658943 /app/index.moon | |
| parent | add submodule tracking gh-pages (diff) | |
| download | mmm-d8e5f36cd7fc2d063f7f4bc992d2168b34f68b1c.tar.gz mmm-d8e5f36cd7fc2d063f7f4bc992d2168b34f68b1c.zip | |
add component framework + todo
Diffstat (limited to 'app/index.moon')
| -rw-r--r-- | app/index.moon | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/app/index.moon b/app/index.moon index b501d57..e43b318 100644 --- a/app/index.moon +++ b/app/index.moon @@ -8,12 +8,15 @@ back_button = -> document.body\appendChild p a { '< back', href: '/' } switch window.location.search - when "?twisted" + when '?twisted' back_button! require './twisted.moon' - when "?center-of-mass" then + when '?center-of-mass' then back_button! require './centerofmass.moon' + when '?todo' then + back_button! + require './todo.moon' else document.body\appendChild h1 'mmm' document.body\appendChild p { @@ -29,7 +32,7 @@ switch window.location.search '.' } document.body\appendChild p 'current demos:' - document.body\appendChild ul for name in *{'twisted', 'center-of-mass'} + document.body\appendChild ul for name in *{'twisted', 'center-of-mass', 'todo'} li a { name, href: "/?#{name}" } document.body\appendChild p { |
