1"use strict"; 2 3/************************************************************* 4SCRIPTS INDEX 5 6TOGGLE 7ACCORDION 8 9 10*************************************************************/ 11 12 13/************************************************************* 14TOGGLE 15*************************************************************/ 16 17 jQuery(document).ready(function($){ 18 19 // toggle 20 $('.toggle-btn').click(function(e){ 21 e.preventDefault(); 22 $(this).closest('li').find('.toggle-content').not(':animated').slideToggle(); 23 $(this).toggleClass("active"); 24 }); 25 26 }); 27 28/************************************************************* 29ACCORDION 30*************************************************************/ 31 32 jQuery(document).ready(function($){ 33 34 // accordion 35 $('.sc_accordion-btn').click(function(e){ 36 e.preventDefault(); 37 var $this = $(this); 38 var $thisAccordionContent = $this.closest('li').find('.sc_accordion-content'); 39 var currentStatus = ""; 40 if ($this.attr('class').indexOf('active') != -1) { 41 currentStatus = "active"; 42 } 43 //first close all and remove active class 44 $this.closest('.sc_accordion').find('li').each(function(index) { 45 var $thisLi = $(this); 46 $thisLi.find('.sc_accordion-btn').removeClass('active'); 47 $thisLi.find('.sc_accordion-content').slideUp('400', function() { 48 $(this).removeClass('active'); 49 }); 50 }); 51 if (currentStatus != "active") { 52 $thisAccordionContent.not(':animated').slideDown(); 53 $this.addClass('active'); 54 $thisAccordionContent.addClass('active'); 55 } 56 }); 57 58 }); 59 60/************************************************************* 61TABS 62*************************************************************/ 63 64 jQuery(document).ready(function($) { 65 66 if ($('.sc_tab-container').size() > 0) { 67 68 $('.sc_tab-container').each(function(index) { 69 var $this = $(this); 70 var widgetID = $this.attr('id'); 71 $('#'+ widgetID).cleanTabs(); 72 }); 73 } 74 75 }); 76 77 78/************************************************************* 79FLEXSLIDER INIT 80 81UNCOMMENT TO USE THIS SHORTCODES INIT INSTEAD OF THEME INIT 82*************************************************************/ 83 84 // jQuery(window).load(function($){ 85 // $ = jQuery; 86 87 // if ($('.sc_flexslider').size() > 0) { 88 89 90 // var canonAnimImgSliderSlidershow = true; 91 92 // $('.sc_flexslider').flexslider({ 93 // slideshow: canonAnimImgSliderSlidershow, 94 // slideshowSpeed: 3000, 95 // animationSpeed: 800, 96 // animation: "fade", 97 // smoothHeight: true, 98 // touch: true, 99 // prevText: "S", 100 // nextText: "s", 101 // start: function(slider){ 102 // $('body').removeClass('loading'); 103 // } 104 // }); 105 106 // } 107 108 // if (($('.sc_flexslider-quote').size() > 0) && ($('#hp_tweets').size() === 0)) { 109 110 // var canonAnimQuoteSliderSlidershow = true; 111 112 // $('.sc_flexslider-quote').flexslider({ 113 // slideshow: canonAnimQuoteSliderSlidershow, 114 // slideshowSpeed: 3000, 115 // animationSpeed: 800, 116 // animation: "fade", 117 // smoothHeight: true, 118 // touch: true, 119 // directionNav: false, 120 // start: function(slider){ 121 // $('body').removeClass('loading'); 122 // } 123 // }); 124 125 // } 126 127 // }); 128
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.