From 3eb6effb43e3cd487ef3f1b52c18f3057d518943 Mon Sep 17 00:00:00 2001 From: Tony Stuck Date: Tue, 16 Oct 2012 10:26:20 -0400 Subject: [PATCH 1/2] Updated markup for search field --- themes/jquery/css/base.css | 6 +++++- themes/jquery/searchform.php | 8 ++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/themes/jquery/css/base.css b/themes/jquery/css/base.css index c73c804b..a7bf1080 100644 --- a/themes/jquery/css/base.css +++ b/themes/jquery/css/base.css @@ -1392,7 +1392,11 @@ nav#main .searchform input { border-style: none; color: #fff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.76); - width: 75%; + width: 85%; +} + +nav#main .searchform input:focus{ + outline: none; } nav#main .searchform i { diff --git a/themes/jquery/searchform.php b/themes/jquery/searchform.php index 378a0dc7..75a160d3 100755 --- a/themes/jquery/searchform.php +++ b/themes/jquery/searchform.php @@ -4,10 +4,6 @@ */ ?>
- - + +
From 056a735943212fad2836554f4b76e178d7224760 Mon Sep 17 00:00:00 2001 From: Tony Stuck Date: Tue, 16 Oct 2012 10:47:08 -0400 Subject: [PATCH 2/2] Removed inline script from search input. Cleaned up main.js file and removed nested jQuery.ready calls --- themes/jquery/js/main.js | 43 ++++++++++++++++++------------------ themes/jquery/searchform.php | 2 +- 2 files changed, 22 insertions(+), 23 deletions(-) diff --git a/themes/jquery/js/main.js b/themes/jquery/js/main.js index 42970970..f463d7b5 100644 --- a/themes/jquery/js/main.js +++ b/themes/jquery/js/main.js @@ -1,35 +1,34 @@ $(document).ready(function() { -//Slide Form Open//////////////////////////////////////// - -$('li.toggle-projects').click(function() {$('#global-project-select').slideToggle(000); -return false; -}); - -//Join Page Sign-up ///////////////////////////////////// - $(document).ready(function() { - $('div.choose-gifts').hide(); - $('.member-level> a.join').click(function() { - $(this).nextAll('div.choose-gifts').slideToggle(300).siblings('div.choose-gifts:visible').slideUp(700); - $(this).toggleClass("close"); - }); - }); - -//Colorbox Enlarge////////////// -$(".enlarge").colorbox({rel:'goodies'}); + //Slide Form Open//////////////////////////////////////// + $('li.toggle-projects').click(function() { + $('#global-project-select').slideToggle(000); + return false; + }); + //Join Page Sign-up ///////////////////////////////////// + $('div.choose-gifts').hide(); + $('.member-level> a.join').click(function() { + $(this).nextAll('div.choose-gifts').slideToggle(300).siblings('div.choose-gifts:visible').slideUp(700); + $(this).toggleClass("close"); + }); - + //Colorbox Enlarge////////////// + $(".enlarge").colorbox({rel:'goodies'}); + // Hook up the FlexSlider $(window).load(function() { $('.flexslider').flexslider({ - - controlNav: "false" + controlNav: "false" }); - }); - + // Search form text replacement + $('.searchform input').on('focusin', function(evt){ + this.value = (this.value == 'Search jQuery') ? '' : this.value; + }).on('focusout', function(evt){ + this.value = this.value || 'Search jQuery'; + }); }); //Close Document Ready diff --git a/themes/jquery/searchform.php b/themes/jquery/searchform.php index 75a160d3..7718f0b7 100755 --- a/themes/jquery/searchform.php +++ b/themes/jquery/searchform.php @@ -5,5 +5,5 @@ ?>
- +