diff --git a/project.clj b/project.clj index aad4283..c5aa785 100644 --- a/project.clj +++ b/project.clj @@ -1,6 +1,6 @@ (defproject yenu "0.1.0-SNAPSHOT" :description "yenu -- The image sharing tool for friends" - :url "https://aaron-fischer.net/" + :url "https://yenu.de/" :dependencies [[bouncer "1.0.1"] [compojure "1.5.2"] diff --git a/resources/public/js/main.js b/resources/public/js/main.js new file mode 100644 index 0000000..5800c97 --- /dev/null +++ b/resources/public/js/main.js @@ -0,0 +1,6 @@ +$(function () { + $('#page-switcher').on('change', function(e) { + var page = $(e.target).val(); + window.location = '/page/' + page; + }); +}); diff --git a/resources/templates/index.html b/resources/templates/index.html index a4880cb..5c36933 100644 --- a/resources/templates/index.html +++ b/resources/templates/index.html @@ -2,7 +2,8 @@ {% block content %} -{% safe %}{{ pagination| }}{% endsafe %} +{% safe %}{{ pagination }}{% endsafe %} +{% safe %}{{ pagination-mobile }}{% endsafe %}