aboutsummaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.php b/index.php
index 6c0231e..7ce7428 100644
--- a/index.php
+++ b/index.php
@@ -16,7 +16,7 @@
<br/>
<div class="searchbtn">
<input class="home-btn" id="home-submit" type="submit" value="WolfEye Search">
- <input class="home-btn home-btn-last" id="home-lucky" type="button" value="I'm feeling lucky">
+ <input class="home-btn home-btn-last" onclick="if (document.getElementById('home-bar').value.trim() === '') return; location.href = '/lucky?q=' + encodeURI(document.getElementById('home-bar').value);" id="home-lucky" type="button" value="I'm Feeling Lucky">
</div>
<link rel="icon" href="/logo.svg">
</form>