jsdelivr/jsdelivr — pull request #2727 by nntien (2014-12-15 02:31:03+00:00)
Title: Create wp_shortcodes.js

jQuery.fn.exists=function(callback){var args=[].slice.call(arguments,1);if(this.length){callback.call(this,args);}
return this;};jQuery(document).ready(function($){jQuery("body").prepend("

");var scrollDes='html,body';if(navigator.userAgent.match(/opera/i)){scrollDes='html';}
jQuery(window).scroll(function(){if(jQuery(this).scrollTop()>160){jQuery('#move-to-top').addClass('filling').removeClass('hiding');}else{jQuery('#move-to-top').removeClass('filling').addClass('hiding');}});jQuery('#move-to-top').click(function(){jQuery(scrollDes).animate({scrollTop:0},{duration:500});});});jQuery(document).ready(function($){var $top_menu=$('.primary-navigation');var $secondary_menu=$('.secondary-navigation');var $first_menu='';var $second_menu='';if($top_menu.length==0&&$secondary_menu.length==0){return;}else{if($top_menu.length){$first_menu=$top_menu;$second_menu=$secondary_menu;}else{$first_menu=$secondary_menu;}}
var menu_wrapper=$first_menu.clone().attr('class','mobile-menu').wrap('

').parent().hide().appendTo('body');if($second_menu.length){$second_menu.find('li').clone().prependTo('.mobile-menu .menu');}
$('.toggle-mobile-menu').click(function(e){e.preventDefault();e.stopPropagation();$('#mobile-menu-wrapper').show();$('body').toggleClass('mobile-menu-active');});$('#mobile-menu-wrapper').click(function(e){e.stopPropagation();});$(document).click(function(){if($('body').hasClass('mobile-menu-active')){$('body').removeClass('mobile-menu-active');}});});jQuery(document).ready(function($){$('#navigation ul.sub-menu, #navigation ul.children').hide();$('#navigation li').hover(function(){$(this).children('ul.sub-menu, ul.children').slideDown('fast');},function(){$(this).children('ul.sub-menu, ul.children').hide();});});jQuery(document).ready(function($){(function(d,s){var js,fjs=d.getElementsByTagName(s)[0],load=function(url,id){if(d.getElementById(id)){return;}
js=d.createElement(s);js.src=url;js.id=id;fjs.parentNode.insertBefore(js,fjs);};jQuery('span.facebookbtn, .fb-like-box').exists(function(){load('//connect.facebook.net/en_US/all.js#xfbml=1','fbjssdk');});jQuery('span.gplusbtn').exists(function(){load('https://apis.google.com/js/plusone.js','gplus1js');});jQuery('span.twitterbtn').exists(function(){load('//platform.twitter.com/widgets.js','tweetjs');});jQuery('span.linkedinbtn').exists(function(){load('//platform.linkedin.com/in.js','linkedinjs');});jQuery('span.pinbtn').exists(function(){load('//assets.pinterest.com/js/pinit.js','pinterestjs');});jQuery('span.stumblebtn').exists(function(){load('//platform.stumbleupon.com/1/widgets.js','stumbleuponjs');});}(document,'script'));});;jQuery(document).ready(function($){if($('.wp_shortcodes_toggle').length){$(".togglec").hide();$(".wps_togglet").click(function(){$(this).toggleClass("toggleta").next(".togglec").slideToggle("normal");});}
if($('.wp_shortcodes_tabs').length){$('.wp_shortcodes_tabs').each(function(){var $this=$(this);$this.find('.tab_content').slice(1).hide();$this.find('ul.wps_tabs li:first').addClass('active');$this.find('ul.wps_tabs li a').click(function(e){e.preventDefault();var $this_a=$(this);var $tab=$this.find('#'+$this_a.data('tab'));if(!$tab.is(':visible')){$this.find('.tab_content').hide();$this_a.parent().addClass('active').siblings().removeClass('active');$tab.fadeIn(600);}});});}});