From b0b201467fe1289927012d8d47f23f24128c1285 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Tue, 8 Nov 2011 15:04:25 -0500 Subject: [PATCH] Add fancy keybinds for navigating the pages click free. --- application/views/template.php | 30 +++++++++++++++++++++++++----- application/views/view.php | 16 ++++++++++++++++ css/style.css | 4 ++++ 3 files changed, 45 insertions(+), 5 deletions(-) diff --git a/application/views/template.php b/application/views/template.php index fb0f44a..aa21386 100644 --- a/application/views/template.php +++ b/application/views/template.php @@ -6,6 +6,8 @@ + + @@ -15,16 +17,34 @@
+ + switch(key) { + case 82: + document.location.href = $('#random').attr('href'); + break; + case 71: + document.location.href = $('#gallery').attr('href'); + break; + case 76: + document.location.href = $('#latest').attr('href'); + break; + case 85: + document.location.href = $('#upload').attr('href'); + break; + } + }); + diff --git a/application/views/view.php b/application/views/view.php index cf1066a..935ae3a 100644 --- a/application/views/view.php +++ b/application/views/view.php @@ -1,9 +1,25 @@ +
+ diff --git a/css/style.css b/css/style.css index 60d7d0d..101b938 100644 --- a/css/style.css +++ b/css/style.css @@ -352,4 +352,8 @@ h1{ #links a { color: #fff; +} + +.underline { + text-decoration: underline; } \ No newline at end of file