diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2018-11-01 07:10:38 +0000 |
|---|---|---|
| committer | s-ol <s-ol@users.noreply.github.com> | 2018-11-01 07:10:38 +0000 |
| commit | d8daeb2a0b891bae03a7de2ae4ddf9e7b8b9f66b (patch) | |
| tree | ce843bc1325d095c825da354f14765bc3c72f0db /root | |
| parent | fix event handles in lib.dom (diff) | |
| download | mmm-d8daeb2a0b891bae03a7de2ae4ddf9e7b8b9f66b.tar.gz mmm-d8daeb2a0b891bae03a7de2ae4ddf9e7b8b9f66b.zip | |
smooth navigation
Diffstat (limited to 'root')
| -rw-r--r-- | root/animations/init.moon | 6 | ||||
| -rw-r--r-- | root/articles/mmmfs/gallery.moon | 2 | ||||
| -rw-r--r-- | root/articles/realities.moon | 2 | ||||
| -rw-r--r-- | root/experiments/init.moon | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/root/animations/init.moon b/root/animations/init.moon index cb1f20a..ba8cb91 100644 --- a/root/animations/init.moon +++ b/root/animations/init.moon @@ -14,11 +14,9 @@ Fileder { li { a name, { href: child.path, - onclick: (_, e, ...) -> - print 'ASD', e, ... - window\alert 'YO WADDAFUQ' + onclick: (e) => e\preventDefault! - BROWSER\navigate "animations | #{name}", + BROWSER\navigate child.path }, ': ', desc } diff --git a/root/articles/mmmfs/gallery.moon b/root/articles/mmmfs/gallery.moon index 081865a..e132f42 100644 --- a/root/articles/mmmfs/gallery.moon +++ b/root/articles/mmmfs/gallery.moon @@ -14,7 +14,7 @@ with Fileder { 'moon -> mmm/dom': => link = (child) -> a { href: '#', - onclick: -> BROWSER\navigate { 'gallery', (child\get 'name', 'alpha'), nil }, + onclick: -> BROWSER\navigate child.path img src: child\gett 'preview', 'URL -> image/png' } diff --git a/root/articles/realities.moon b/root/articles/realities.moon index f913842..5de8f6a 100644 --- a/root/articles/realities.moon +++ b/root/articles/realities.moon @@ -549,4 +549,6 @@ Fileder { @phys! @finish! + + _content } diff --git a/root/experiments/init.moon b/root/experiments/init.moon index 0beb78c..7b3a05d 100644 --- a/root/experiments/init.moon +++ b/root/experiments/init.moon @@ -16,7 +16,7 @@ Fileder { href: child.path, onclick: (e) => e\preventDefault! - BROWSER\navigate "animations | #{name}", + BROWSER\navigate child.path }, ': ', desc } |
