projects
/
WP-Themes
/
staffords.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71c360e
)
added toggle animation to close on blur
author
Anthony Talarico
<talarico@gaslightmedia.com>
Mon, 23 Nov 2015 18:44:02 +0000
(13:44 -0500)
committer
Anthony Talarico
<talarico@gaslightmedia.com>
Mon, 23 Nov 2015 18:44:02 +0000
(13:44 -0500)
js/custom/pageSetup.js
patch
|
blob
|
history
diff --git
a/js/custom/pageSetup.js
b/js/custom/pageSetup.js
index
e7054dd
..
daff1ed
100644
(file)
--- a/
js/custom/pageSetup.js
+++ b/
js/custom/pageSetup.js
@@
-202,7
+202,18
@@
$(document).ready(function () {
$(".searchform").animate({width: 'toggle'}, 1000);
$("li a.search").css("visibility", "hidden");
$('.searchform').css("left", "5px");
+ $(".searchform input[type='text']").focus();
});
+ $(".searchform input[type='text']").blur(function () {
+ $(".searchform").animate({width: 'toggle'}, 1000);
+ $('.searchform').css("right", "5px");
+ $("li a.search").css("visibility", "visible");
+ });
+
+
+
+
+