PageSourceSearch

https://www.technomadia.com/wp-content/themes/technomadia/inc/shor…?ver=12b8601c556d3b26c95afb1dd922f1ef

js technomadia.com collected 2026-10-02 02:45:43 UTC 5,130 bytes, 177 lines download raw bytes

1/*-----------------------------------------------------------------------------------
2
3 	Shortcode JS - All shortcode jQuery
4
5-----------------------------------------------------------------------------------*/
6
7/* ========================================================
8 * bootstrap-tab.js v2.0.1
9 * http://twitter.github.com/bootstrap/javascript.html#tabs
10 * ========================================================
11 * Copyright 2012 Twitter, Inc.
12 *
13 * Licensed under the Apache License, Version 2.0 (the "License");
14 * you may not use this file except in compliance with the License.
15 * You may obtain a copy of the License at
16 *
17 * http://www.apache.org/licenses/LICENSE-2.0
18 *
19 * Unless required by applicable law or agreed to in writing, software
20 * distributed under the License is distributed on an "AS IS" BASIS,
21 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 * See the License for the specific language governing permissions and
23 * limitations under the License.
24 * ======================================================== */
25
26
27!function( $ ){
28
29  "use strict"
30
31 /* TAB CLASS DEFINITION
32  * ==================== */
33
34  var Tab = function ( element ) {
35    this.element = $(element)
36  }
37
38  Tab.prototype = {
39
40    constructor: Tab
41
42  , show: function () {
43      var $this = this.element
44        , $ul = $this.closest('ul:not(.dropdown-menu)')
45        , selector = $this.attr('data-target')
46        , previous
47        , $target
48
49      if (!selector) {
50        selector = $this.attr('href')
51        selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7
52      }
53
54      if ( $this.parent('li').hasClass('active') ) return
55
56      previous = $ul.find('.active a').last()[0]
57
58      $this.trigger({
59        type: 'show'
60      , relatedTarget: previous
61      })
62
63      $target = $(selector)
64
65      this.activate($this.parent('li'), $ul)
66      this.activate($target, $target.parent(), function () {
67        $this.trigger({
68          type: 'shown'
69        , relatedTarget: previous
70        })
71      })
72    }
73
74  , activate: function ( element, container, callback) {
75      var $active = container.find('> .active')
76        , transition = callback
77            && $.support.transition
78            && $active.hasClass('fade')
79
80      function next() {
81        $active
82          .removeClass('active')
83          .find('> .dropdown-menu > .active')
84          .removeClass('active')
85
86        element.addClass('active')
87
88        if (transition) {
89          element[0].offsetWidth // reflow for transition
90          element.addClass('in')
91        } else {
92          element.removeClass('fade')
93        }
94
95        if ( element.parent('.dropdown-menu') ) {
96          element.closest('li.dropdown').addClass('active')
97        }
98
99        callback && callback()
100      }
101
102      transition ?
103        $active.one($.support.transition.end, next) :
104        next()
105
106      $active.removeClass('in')
107    }
108  }
109
110
111 /* TAB PLUGIN DEFINITION
112  * ===================== */
113
114  $.fn.tab = function ( option ) {
115    return this.each(function () {
116      var $this = $(this)
117        , data = $this.data('tab')
118      if (!data) $this.data('tab', (data = new Tab(this)))
119      if (typeof option == 'string') data[option]()
120    })
121  }
122
123  $.fn.tab.Constructor = Tab
124
125
126 /* TAB DATA-API
127  * ============ */
128
129  $(function () {
130    $('body').on('click.tab.data-api', '[data-toggle="tab"], [data-toggle="pill"]', function (e) {
131      e.preventDefault()
132      $(this).tab('show')
133    })
134  })
135
136}( window.jQuery );
137
138
139
140/*-----------------------------------------------------------------------------------*/
141/*	jQuery Toggles
142/*-----------------------------------------------------------------------------------*/
143//Hide (Collapse) the toggle containers on load
144	jQuery(".tm-toggle-content").hide();
145	//Switch the "Open" and "Close" state per click
146	jQuery(".tm-toggle-action").toggle(function(){
147		jQuery(this).addClass("active");
148		}, function () {
149		jQuery(this).removeClass("active");
150	});
151	//Slide up and down on click
152	jQuery(".tm-toggle-action").click(function(){
153		jQuery(this).next(".tm-toggle-content").slideToggle();
154	});
155
156
157/*-----------------------------------------------------------------------------------*/
158/*	jQuery Accordion
159/*-----------------------------------------------------------------------------------*/
160jQuery(document).ready(function() {
161//ACCORDION BUTTON ACTION (ON CLICK DO THE FOLLOWING)
162jQuery('.tm-accordion-title').click(function() {
163//REMOVE THE ON CLASS FROM ALL BUTTONS
164jQuery('.tm-accordion-title').removeClass('active');
165//NO MATTER WHAT WE CLOSE ALL OPEN SLIDES
166jQuery('.tm-accordion-content').slideUp('normal');
167//IF THE NEXT SLIDE WASN'T OPEN THEN OPEN IT
168if(jQuery(this).next().is(':hidden') == true) {
169//ADD THE ON CLASS TO THE BUTTON
170jQuery(this).addClass('active');
171//OPEN THE SLIDE
172jQuery(this).next().slideDown('normal');
173}
174});
175// CLOSES ALL S ON PAGE LOAD
176jQuery('.tm-accordion-content').hide();
177});

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.