jQuery(document).ready(function() { setTimeout(function() { jQuery('.bd-criteria-percent .bd-criteria-percentage').each(function() { var me = jQuery(this); var perc = me.attr("data-percentage"); var current_perc = 0; var progress = setInterval(function() { if (current_perc>=perc) { clearInterval(progress); } else { current_perc +=1; me.css('width', (current_perc)+'%'); } me.text((current_perc)+'%'); }, 10); }); },10); var vids = jQuery(".postsv3 .posts-v3"); for(var i = 0; i < vids.length; i+=2) { vids.slice(i, i+2).wrapAll('
'); } }); // Tabs function initTabGroup(content) { if(typeof content == 'undefined'){ content = document; } if (jQuery('.tabgroup', jQuery(content)).length) { jQuery('.tabgroup', jQuery(content)).tabs().show(); } } jQuery(document).ready(function($){ jQuery('#header-nav li.home a').html(''); //Added html - append - before - after /* Fit Videos ------------------------------------------------------- */ jQuery("div.bd-video-widget, .bd-video-shortcode, .pp-video").fitVids(); //******** SHORT CODES ********// // Tabs initTabGroup(); // Toggles jQuery('div.toggle h4').click(function () { var text = jQuery(this).siblings('div.panel'); if (text.is(':hidden')) { text.slideDown('200'); jQuery(this).siblings('span').html('-'); } else { text.slideUp('200'); jQuery(this).siblings('span').html('+'); } }); jQuery('.pp-img a img, .post_thumbnail img, .flickr_badge_image img, header .ads_468, footer img, .ads_bottom img, ul.small_thumbs li img, .post_thumbnail a, .widget_ads_125 a, .slider .top_slider .thumb img, .first-post-thumbnail img, .first-post-thumbnail-tabs img, .first-post-thumbnail-box img').hover( function() { jQuery(this).stop().animate({opacity:0.8},{queue:false,duration:200}); }, function() { jQuery(this).stop().animate({opacity:1},{queue:false,duration:200}); }); jQuery(".bdayh_theme_colors li").click(function() { var link_color = jQuery(this).find('a').attr('href').replace('#',''); jQuery('#style_blue,#style_green,#style_rose,#style_orange,#style_gray').attr('disabled','disabled'); jQuery('#style_'+link_color).removeAttr('disabled'); }); jQuery(".theme_p li").click(function() { var pattren_num = jQuery(this).find('a').attr('href').replace('#',''); if(pattren_num < 17 && pattren_num >= 1) { jQuery('body').css('background-image',"url('"+cherry_url+"/assets/images/pattern/pattern_"+ pattren_num +".png')"); jQuery('#stylebg_bg1,#stylebg_bg2').attr('disabled','disabled'); } }); jQuery(".bgfull li").click(function() { var backfull = jQuery(this).find('a').attr('href').replace('#',''); jQuery('#stylebg_bg1,#stylebg_bg2').attr('disabled','disabled'); jQuery('#stylebg_'+backfull).removeAttr('disabled'); }); jQuery(".bdayh_theme_wide").click(function() { jQuery('#style_wide').attr('disabled','disabled'); jQuery('#style_wide').removeAttr('disabled'); }); jQuery(".bdayh_theme_blocks").click(function() { jQuery('#style_wide').attr('disabled','disabled'); }); jQuery(".bdayh_theme_leftsidebar").click(function() { jQuery('#style_sidebarleft').attr('disabled','disabled'); jQuery('#style_sidebarleft').removeAttr('disabled'); }); jQuery(".bdayh_theme_rightsidebar").click(function() { jQuery('#style_sidebarleft').attr('disabled','disabled'); }); jQuery(".widget_tabs ol.tabs_nav li a, .box_tabs ol.box_tabs_nav li a, div.gotop a, ul.small_thumbs li a, .scrolling_box .nav a,.theme_switcher a").click(function(event) { event.preventDefault(event); }); // preventDefault jQuery(".toolbar ul li, nav ul li").each(function () { var jQuerysubmeun = jQuery(this).find('ul:first'); jQuery(this).hover(function () { jQuerysubmeun.stop().css({overflow: "hidden",height: "auto",display: "none",paddingTop: 0}).slideDown(180, function () { jQuery(this).css({overflow: "visible",height: "auto"}); }); }, function () { jQuerysubmeun.stop().slideUp(180, function () { jQuery(this).css({overflow: "hidden",display: "none"}); }); }); }); jQuery("