PageSourceSearch

https://akfsa.org/wp-content/themes/akfsa/js/script.js

js akfsa.org collected 2026-10-04 00:25:01 UTC 3,199 bytes, 91 lines download raw bytes

1
2// if (matchMedia) {
3//   var tablet = window.matchMedia("(min-width: 480px)");
4//   tablet.addListener(WidthChange);
5//   WidthChange(tablet);
6// }
7// // media query change
8// function WidthChange(tablet) {
9//   if (tablet.matches) {
10//     // window width is at least 768px
11//     $('.flexslider .slides').replaceWith($('<ul class="slides"><li><img src="/wp-content/uploads/2012/08/AKFSA_Banner_Ustream_3.jpg" alt="" /></a></li><li><img src="/wp-content/uploads/2012/08/slider-2.jpg" alt="" /></li><li><img src="/wp-content/uploads/2012/08/slider-3.jpg" alt="" /></li><li><img src="/wp-content/uploads/2012/08/slider-4.jpg" alt="" /></li><li><img src="/wp-content/uploads/2012/08/slider-5.jpg" alt="" /></li></ul>'));
12//   }
13//   else {
14//     // window width is less than 768px
15//     $('.flexslider .slides').replaceWith($('<ul class="slides"><li><a href="/misunderstood-no-more-examining-the-symptoms-diagnosis-and-treatment-of-social-anxiety/"><img src="/wp-content/uploads/2012/08/AKFSA_SterlingInn_Banner_mobile_rev.jpg" alt="" /></a></li></ul>'));
16//   }
17// }
18
19
20  jQuery(window).load(function() {
21    jQuery('.flexslider').flexslider({
22      slideshow: true,
23    });
24  });
25
26
27jQuery(document).ready(function ($) {
28
29  // $('.twitter_feed').getmytweets({
30  //       twitter_sn: 'akfsa',
31  //       twitter_wrap: 'tweet',
32  //       twitter_limit: 1,  how many tweets to return
33  //       twitter_pp: false,
34  //       twitter_stats: false,
35  //       twitter_details: false
36  //   });
37
38});
39
40
41// getTwitters('twitter', {
42//   id: 'akfsa',
43//   count: 1,
44//   enableLinks: true,
45//   ignoreReplies: true,
46//   clearContents: true,
47//   template: '<a target="_blank" href="https://twitter.com/AKFSA" class="time">FROM TWITTER</a> - %text% - <a target="_blank" href="https://twitter.com/%user_screen_name%/statuses/%id_str%/" class="time">%time%</a>'
48// });
49
50//jQuery(".wrapper").fitVids();
51
52jQuery('.nav li').hover(
53    function () {
54        //show its submenu
55        jQuery('ul', this).slideDown(100);
56
57    },
58    function () {
59        //hide its submenu
60        jQuery('ul', this).slideUp(100);
61    }
62);
63
64jQuery(document).ready(function () {
65
66  //ACCORDION BUTTON ACTION (ON CLICK DO THE FOLLOWING)
67  jQuery('.accordionButton').click(function () {
68    jQuery('span',this).html('+');
69    //REMOVE THE ON CLASS FROM ALL BUTTONS
70    jQuery('.accordionButton').removeClass('on');
71    //NO MATTER WHAT WE CLOSE ALL OPEN SLIDES
72    jQuery('.accordionContent').slideUp('normal');
73    //IF THE NEXT SLIDE WASN'T OPEN THEN OPEN IT
74    if (jQuery(this).next().is(':hidden') == true) {
75      jQuery('.accordionButton span').html('+');
76      jQuery('span',this).html('-');
77      //ADD THE ON CLASS TO THE BUTTON
78      jQuery(this).addClass('on');
79      //OPEN THE SLIDE
80      jQuery(this).next().slideDown('normal');
81    }
82  }); /*** REMOVE IF MOUSEOVER IS NOT REQUIRED ***/
83/********************************************************************************************************************
84  CLOSES ALL S ON PAGE LOAD
85  ********************************************************************************************************************/
86  jQuery('.accordionContent').hide();
87});
88
89Shadowbox.init();
90
91

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.