"use strict"; /************************************************************* SCRIPTS INDEX TOGGLE ACCORDION *************************************************************/ /************************************************************* TOGGLE *************************************************************/ jQuery(document).ready(function($){ // toggle $('.toggle-btn').click(function(e){ e.preventDefault(); $(this).closest('li').find('.toggle-content').not(':animated').slideToggle(); }); // add active class for toggle $(".toggle-btn").click(function () { $(this).toggleClass("active"); }); }); /************************************************************* ACCORDION *************************************************************/ jQuery(document).ready(function($){ // accordion $('.sc_accordion-btn').click(function(e){ e.preventDefault(); var $this = $(this); var $thisAccordionContent = $this.next('.sc_accordion-content'); var currentStatus = ""; if ($this.attr('class').indexOf('active') != -1) { currentStatus = "active"; } //first close all and remove active class $this.closest('.sc_accordion').find('li').each(function(index) { var $thisLi = $(this); $thisLi.find('.sc_accordion-btn').removeClass('active'); $thisLi.find('.sc_accordion-content').slideUp('400', function() { $(this).removeClass('active'); }); }); if (currentStatus != "active") { $thisAccordionContent.not(':animated').slideDown(); $this.addClass('active'); $thisAccordionContent.addClass('active'); } }); }); /************************************************************* FLEXSLIDER INIT UNCOMMENT TO USE THIS SHORTCODES INIT INSTEAD OF THEME INIT *************************************************************/ // jQuery(window).load(function($){ // $ = jQuery; // if ($('.sc_flexslider').size() > 0) { // var canonAnimImgSliderSlidershow = true; // $('.sc_flexslider').flexslider({ // slideshow: canonAnimImgSliderSlidershow, // slideshowSpeed: 3000, // animationSpeed: 800, // animation: "fade", // smoothHeight: true, // touch: true, // prevText: "S", // nextText: "s", // start: function(slider){ // $('body').removeClass('loading'); // } // }); // } // if (($('.sc_flexslider-quote').size() > 0) && ($('#hp_tweets').size() === 0)) { // var canonAnimQuoteSliderSlidershow = true; // $('.sc_flexslider-quote').flexslider({ // slideshow: canonAnimQuoteSliderSlidershow, // slideshowSpeed: 3000, // animationSpeed: 800, // animation: "fade", // smoothHeight: true, // touch: true, // directionNav: false, // start: function(slider){ // $('body').removeClass('loading'); // } // }); // } // }); /* FILE ARCHIVED ON 11:56:22 Mar 22, 2015 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 06:46:12 Feb 25, 2019. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* playback timings (ms): LoadShardBlock: 126.839 (3) esindex: 0.006 captures_list: 141.84 CDXLines.iter: 10.248 (3) PetaboxLoader3.datanode: 107.16 (4) exclusion.robots: 0.289 exclusion.robots.policy: 0.267 RedisCDXSource: 1.783 PetaboxLoader3.resolve: 74.859 load_resource: 108.289 **************************************** SCRIPTS INDEX TOGGLE ACCORDION *************************************************************/ /************************************************************* TOGGLE *************************************************************/ jQuery(document).ready(function($){ // toggle $('.toggle-btn').click(function(e){ e.preventDefault(); $(this).closest('li').find('.toggle-content').not(':animated').slideToggle(); }); // add active class for toggle $(".toggle-btn").click(function () { $(this).toggleClass("active"); }); }); /************************************************************* ACCORDION *************************************************************/ jQuery(document).ready(function($){ // accordion $('.sc_accordion-btn').click(function(e){ e.preventDefault(); var $this = $(this); var $thisAccordionContent = $this.next('.sc_accordion-content'); var currentStatus = ""; if ($this.attr('class').indexOf('active') != -1) { currentStatus = "active"; } //first close all and remove active class $this.closest('.sc_accordion').find('li').each(function(index) { var $thisLi = $(this); $thisLi.find('.sc_accordion-btn').removeClass('active'); $thisLi.find('.sc_accordion-content').slideUp('400', function() { $(this).removeClass('active'); }); }); if (currentStatus != "active") { $thisAccordionContent.not(':animated').slideDown(); $this.addClass('active'); $thisAccordionContent.addClass('active'); } }); }); /************************************************************* FLEXSLIDER INIT UNCOMMENT TO USE THIS SHORTCODES INIT INSTEAD OF THEME INIT *************************************************************/ // jQuery(window).load(function($){ // $ = jQuery; // if ($('.sc_flexslider').size() > 0) { // var canonAnimImgSliderSlidershow = true; // $('.sc_flexslider').flexslider({ // slideshow: canonAnimImgSliderSlidershow, // slideshowSpeed: 3000, // animationSpeed: 800, // animation: "fade", // smoothHeight: true, // touch: true, // prevText: "S", // nextText: "s", // start: function(slider){ // $('body').removeClass('loading'); // } // }); // } // if (($('.sc_flexslider-quote').size() > 0) && ($('#hp_tweets').size() === 0)) { // var canonAnimQuoteSliderSlidershow = true; // $('.sc_flexslider-quote').flexslider({ // slideshow: canonAnimQuoteSliderSlidershow, // slideshowSpeed: 3000, // animationSpeed: 800, // animation: "fade", // smoothHeight: true, // touch: true, // directionNav: false, // start: function(slider){ // $('body').removeClass('loading'); // } // }); // } // }); /* FILE ARCHIVED ON 11:56:22 Mar 22, 2015 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 06:46:12 Feb 25, 2019. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* playback timings (ms): LoadShardBlock: 126.839 (3) esindex: 0.006 captures_list: 141.84 CDXLines.iter: 10.248 (3) PetaboxLoader3.datanode: 107.16 (4) exclusion.robots: 0.289 exclusion.robots.policy: 0.267 RedisCDXSource: 1.783 PetaboxLoader3.resolve: 74.859 load_resource: 108.289 */