From d8daeb2a0b891bae03a7de2ae4ddf9e7b8b9f66b Mon Sep 17 00:00:00 2001 From: s-ol Date: Thu, 1 Nov 2018 18:10:38 +1100 Subject: smooth navigation --- root/animations/init.moon | 6 ++---- root/articles/mmmfs/gallery.moon | 2 +- root/articles/realities.moon | 2 ++ root/experiments/init.moon | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) (limited to 'root') 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 } -- cgit v1.2.3