Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jQuery(document).ready(function($){
- /* ------ Setup Tab Functionality ------ **/
- // Setup First Tab
- jQuery('#tabs ul li a:first').addClass('active');
- // Click
- jQuery('#tabs ul li a').click(function(event){
- event.preventDefault();
- // Load Content
- var myterm = jQuery(this).attr('href').substring(1);
- jQuery.ajax({
- url: my_wp.ajaxurl,
- data: { action: my_wp.action, term : myterm }, // action data should match hook for example 'my_action' match with 'wp_ajax_my_action' and 'wp_ajax_nopriv_my_action'
- success: function(content){
- jQuery('#whitepapersshow').fadeTo(300, 0.05, function($){
- jQuery(this).html(content);
- jQuery(this).cycle({
- fx: 'scrollHorz',
- easing: 'easeOutQuad',
- speed: 800,
- timeout: 8000,
- pause: 1,
- next: '#nextPapers',
- prev: '#prevPapers',
- slideResize: false,
- }).fadeTo(900, 1.0);
- jQuery(".tabpopup").fadeOut(0);
- // Global Process
- jQuery(".mediumgraybutton").mouseenter(function(){
- jQuery("#po"+this.id).fadeIn(400);
- });
- jQuery(".tabpopup").mouseleave(function(){
- jQuery(this).fadeOut(600);
- });
- });
- }
- });
- // Update Nav Status
- jQuery('#tabs ul li a').removeClass('active');
- jQuery(this).addClass('active');
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement