coffee - PhotoMithra
Home »
Posts Tagged
"coffee"
function et_search_bar(){
var $searchform = jQuery('#menu div#search-form'),
$searchinput = $searchform.find("input#searchinput"),
searchvalue = $searchinput.val();
$searchinput.focus(function(){
if (jQuery(this).val() === searchvalue) jQuery(this).val("");
}).blur(function(){
if (jQuery(this).val() === "") jQuery(this).val(searchvalue);
});
};
var $footer_widget = jQuery("#footer .widget");
if ($footer_widget.length) {
$footer_widget.each(function (index, domEle) {
// domEle == this
if ((index+1)%3 == 0) jQuery(domEle).addClass("last").after("");
});
};
jQuery(window).load(function(){
var $single_gallery_thumb = jQuery('.gallery-thumb');
if ($single_gallery_thumb.length) {
var single_gallery_thumb = $single_gallery_thumb.width(),
offset = single_gallery_thumb-434;
if ( offset < 0 ) {
jQuery('.gallery-thumb-bottom').css({'width':'auto','padding':'0 '+(single_gallery_thumb / 2)+'px'});
}
else jQuery('.gallery-thumb-bottom').css('width',offset);
}
});
//]]>
-->