PageSourceSearch

https://www.realgrammar.com/wp-content/plugins/booker-shortcodes-plugin/js/scripts.js?ver=6.9.9

js realgrammar.com collected 2026-10-05 01:40:04 UTC 3,257 bytes, 128 lines download raw bytes

1"use strict";
2
3/*************************************************************
4SCRIPTS INDEX
5
6SC_TOGGLE
7SC_ACCORDION
8SC_TABS
9
10
11*************************************************************/
12
13
14/*************************************************************
15SC_TOGGLE
16*************************************************************/
17
18	jQuery(document).ready(function($){
19
20		// toggle	  
21		$('.sc_toggle-btn').click(function(e){
22			e.preventDefault();
23			$(this).closest('li').find('.sc_toggle-content').not(':animated').slideToggle();
24			$(this).toggleClass("active");
25		});
26		
27	});
28
29/*************************************************************
30SC_ACCORDION
31*************************************************************/
32
33	jQuery(document).ready(function($){
34
35		// accordion	  
36		$('.sc_accordion-btn').click(function(e){
37			e.preventDefault();
38			var $this = $(this);
39			var $thisAccordionContent = $this.closest('li').find('.sc_accordion-content');
40			var currentStatus = "";
41			if ($this.attr('class').indexOf('active') != -1) {
42				currentStatus = "active";
43			}
44			//first close all and remove active class
45			$this.closest('.sc_accordion').find('li').each(function(index) {
46				var $thisLi = $(this);
47				$thisLi.find('.sc_accordion-btn').removeClass('active');
48				$thisLi.find('.sc_accordion-content').slideUp('400', function() {
49					$(this).removeClass('active');
50				});
51			});
52			if (currentStatus != "active") {
53				$thisAccordionContent.not(':animated').slideDown();
54				$this.addClass('active');
55				$thisAccordionContent.addClass('active');
56			}
57		});
58		
59	});
60
61/*************************************************************
62SC_TABS
63*************************************************************/
64
65	jQuery(document).ready(function($) {
66		
67		if ($('.sc_tabs-container').size() > 0) {
68
69			$('.sc_tabs-container').each(function(index) {
70				var $this = $(this);
71				$this.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.