1var $xa = jQuery.noConflict(); 2$xa(document).ready(function () { 3$xa('.faqs .expand-icon').removeClass('expand-icon').addClass('expand-icon-arrow'); 4 $(".faq-qa .field-question").on("click", function () { 5 var currentTab = $(this).parents('.faq-qa'); 6 if (currentTab.find(".expand-icon-arrow").hasClass("expanded")) { 7 currentTab.find(".expand-icon-arrow").removeClass("expanded"); 8 currentTab.find(".field-answer").removeClass("expanded"); 9 } else { 10 currentTab.find(".expand-icon-arrow").addClass("expanded"); 11 currentTab.find(".field-answer").addClass("expanded"); 12 } 13 $('.faq-qa').each(function () { 14 $(this).find(".expand-icon-arrow").not(currentTab.find('.expand-icon-arrow')).removeClass('expanded'); 15 $(this).find(".field-answer").not(currentTab.find('.field-answer')).removeClass("expanded"); 16 }); 17 var target = $('.field-answer.expanded'); 18 $target = $(target); 19 $('html, body').stop().animate({ 20 'scrollTop': $target.offset().top - 50 21 }, 500, 'swing', function () {}); 22 setTimeout(function(){ 23 $(target).focus(); 24 }); 25 }); 26 27 $xa(".faq-qa .expand-icon-arrow").on("click", function () { 28 var currentTab = $(this).parents('.faq-qa'); 29 if (currentTab.find(".expand-icon-arrow").hasClass("expanded")) { 30 currentTab.find(".expand-icon-arrow").removeClass("expanded"); 31 currentTab.find(".field-answer").removeClass("expanded"); 32 } else { 33 currentTab.find(".expand-icon-arrow").addClass("expanded"); 34 currentTab.find(".field-answer").addClass("expanded"); 35 } 36 $('.faq-qa').each(function () { 37 $(this).find(".expand-icon-arrow").not(currentTab.find('.expand-icon-arrow')).removeClass('expanded'); 38 $(this).find(".field-answer").not(currentTab.find('.field-answer')).removeClass("expanded"); 39 }); 40 var target = $('.field-answer.expanded'); 41 $target = $(target); 42 $('html, body').stop().animate({ 43 'scrollTop': $target.offset().top - 50 44 }, 500, 'swing', function () {}); 45 setTimeout(function(){ 46 $(target).focus(); 47 }); 48 49 }); 50 51 $xa(".faq-to-top-of-page").on("click", function () { 52 $("html").animate({ 53 scrollTop: 0 54 }, "slow"); 55 }); 56 57 $xa(".faqs #content .content-detail .faq-headline .field-body-copy ul li a").on("click", function () { 58 var target = this.hash; 59 $target = $(target); 60 $('html, body').stop().animate({ 61 'scrollTop': $target.position().top + 220 62 }, 500, 'swing', function () {}); 63 setTimeout(function(){ 64 $(target).find(".faq-qa .field-question")[0].focus(); 65 }); 66 return false; 67 }); 68 69 $(".top-menu-arrow").click(function () { 70 $(".top-menu-nav").slideToggle('slow'); 71 $(".top-menu-arrow").toggleClass('topslow'); 72 $(".top-menu-bar").toggleClass('slide-down'); 73 74 }); 75 76 $(".nav-toggle").click(function () { 77 //alert("hi"); 78 $(".menu-4-links").slideToggle('slow'); 79 $(".icon-bar").toggleClass('cross-icon'); 80 }); 81});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.