From 8fb42bf534831504b8084618f47b0a5a1fce5ffa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lucas?= Date: Wed, 13 Jun 2012 17:28:54 +0200 Subject: [PATCH] Search box is now under the title --- index.php | 18 +++++++++++++----- style.css | 12 ++++++++++++ 2 files changed, 25 insertions(+), 5 deletions(-) diff --git a/index.php b/index.php index f8073c6..c9ad264 100644 --- a/index.php +++ b/index.php @@ -50,7 +50,15 @@ overlay : null } }); - $(".fancysearch").fancybox(); + + $("#searchImage").click(function(){ + if ($("#search").is(":hidden")) { + $("#search").slideDown("slow"); + } else { + $("#search").hide(); + } + }); + $(".bookdetail").click(function(){ var url = $(this).find("a").attr("href"); $('#content').load(url, function(data, stat, req){ @@ -74,17 +82,17 @@
- " alt="Search" /> + " alt="Search" />

title ?>

-