diff --git a/index.php b/index.php index 10c2eef..8570e52 100644 --- a/index.php +++ b/index.php @@ -21,6 +21,7 @@ $currentPage = Page::getPage ($page, $qid, $query); $currentPage->InitializeContent (); + $isEink = preg_match ("/(Kobo Touch|Kindle\/3.0)/", $_SERVER['HTTP_USER_AGENT']); ?> @@ -56,11 +57,7 @@ $(".fancycover").fancybox({ 'type' : 'image', - openEffect : 'none', - closeEffect : 'none', - helpers : { - overlay : null - } + }); $("#searchImage").click(function(){ @@ -74,7 +71,11 @@ $(".bookdetail").click(function(){ var url = $(this).find("a").attr("href"); $('#content').load(url, function(data, stat, req){ - $.fancybox( {content: data, maxWidth : '700' } ); + $.fancybox( { + content: data, + maxWidth : '700', + + } ); }); return false;