PageSourceSearch

https://www.classicoldieswmid.com/wp-content/themes/008-itmwpb/inc/js/common.js?ver=3.0

js classicoldieswmid.com collected 2026-10-08 09:35:55 UTC 6,687 bytes, 216 lines download raw bytes

1jQuery(document).ready(function($) {
2
3// Initialize slider
4if ( typeof $().carouFredSel == 'function' ) {
5
6// Thumbnail slider used also on front page
7$(window).on("load",function() {
8  $(".js-thumbnail-slider").map(function() {
9    var wrapper = $(this),
10      pagination = $('<div class="slider-nav"></div>');
11
12    wrapper.append(pagination);
13
14    wrapper.find('.slides').carouFredSel({
15      responsive  : true,
16      swipe       : true,
17      items		: {
18        visible		: 1,
19        width       : 630
20      },
21      scroll		: {
22        fx			: "fade",
23        onAfter : function() {
24
25          // Trigger reload banner event on page body
26          $('body').trigger('reload-banners');
27        }
28      },
29      auto		: false,
30      pagination	: {
31        container		: pagination,
32        anchorBuilder	: function( nr ) {
33          return "\n<img class='nav-item nav-item-" + nr + "' src='" + $(this).attr( "data-thumbnail" ) + "' />";
34        }
35      },
36      prev: wrapper.find('.js-prev'),
37      next: wrapper.find('.js-next')
38    });
39  });
40});
41
42// Featured posts slider
43
44$('.js-posts-slider').each(function(i, e) {
45  var itemsContainer = $(this);
46
47  if($(window).width() >= 320 && $(window).width() < 768 ) {
48
49  itemsContainer.carouFredSel({
50                                responsive : true,
51                                swipe : true,
52                                items : {
53                                        visible : 1, //Show how many items are visible at once
54                                },
55                                scroll : {
56                                        items: 1, //Determines how many itmes change per scroll
57                                        fx: "scroll",  duration  : 1500,  items : 1,  easing : "linear" , pauseOnHover : true,  // easing options: "linear" "swing" "quadratic" "cubic" "elastic"
58                                },
59                                auto : {
60                                        play: true,
61                                },
62                                next : '#' + itemsContainer.attr('id') + '-next',
63                                prev : '#' + itemsContainer.attr('id') + '-prev'
64                        });
65                    }
66
67                    if($(window).width() >= 768 && $(window).width() <= 1024 ) {
68                        itemsContainer.carouFredSel({
69                                responsive : true,
70                                swipe : true,
71                                items : {
72                                        visible : 3, //Show how many items are visible at once
73                                },
74                                scroll : {
75                                        items: 1, //Determines how many itmes change per scroll
76                                        fx: "scroll",  duration  : 1500,  items : 1,  easing : "linear" , pauseOnHover : true,  // easing options: "linear" "swing" "quadratic" "cubic" "elastic"
77                                },
78                                auto : {
79                                        play: true,
80                                },
81                                next : '#' + itemsContainer.attr('id') + '-next',
82                                prev : '#' + itemsContainer.attr('id') + '-prev'
83                        });
84                    }
85
86                    if($(window).width() > 1024) {
87                        itemsContainer.carouFredSel({
88                                responsive : true,
89                                swipe : true,
90                                items : {
91                                        visible : 3, //Show how many items are visible at once
92                                },
93                                scroll : {
94                                        items: 1, //Determines how many itmes change per scroll
95                                        fx: "scroll",  duration  : 1500,  items : 1,  easing : "linear" , pauseOnHover : true,  // easing options: "linear" "swing" "quadratic" "cubic" "elastic"
96                                },
97                                auto : {
98                                        play: true,
99                                },
100                                next : '#' + itemsContainer.attr('id') + '-next',
101                                prev : '#' + itemsContainer.attr('id') + '-prev'
102                        });
103                    }
104
105
106
107})
108}
109
110
111jQuery(document).ready(function() {
112jQuery("#wbns-btn-close1").click(function() {
113window.open("http://player.listenlive.co/46241", "_blank");
114 });
115});
116
117
118jQuery(document).ready(function() {
119jQuery("#wbns-btn-close2").click(function() {
120window.open("http://player.listenlive.co/46231", "_blank");
121 });
122});
123
124
125// Toogle navigation class
126$('#js-site-navigation').map(function() {
127var toggler = $(this).find('.menu-toggle'),
128  menu = $(this).find('ul.nav-menu');
129
130toggler.on('click', function() {
131  toggler.toggleClass('toggled-on');
132  menu.toggleClass('toggled-on');
133});
134});
135
136}) // End of jQuery shell function
137
138
139jQuery(document).ready(function($) {
140
141/*
142"Hovernav" navbar dropdown on hover
143Uses jQuery Media Query - see http://www.sitepoint.com/javascript-media-queries/
144*/
145var mq = window.matchMedia('(min-width: 992px)');
146if (mq.matches) {
147$('ul.navbar-nav > li').addClass('hovernav');
148} else {
149$('ul.navbar-nav > li').removeClass('hovernav');
150};
151/*
152The addClass/removeClass also needs to be triggered
153on page resize <=> 768px
154*/
155if (matchMedia) {
156var mq = window.matchMedia('(min-width: 992px)');
157mq.addListener(WidthChange);
158WidthChange(mq);
159}
160function WidthChange(mq) {
161if (mq.matches) {
162$('ul.navbar-nav > li').addClass('hovernav');
163// Restore "clickable parent links" in navbar
164$('.hovernav a').click(function () {
165//window.location = this.href;
166  //----------------------------------
167  //WD-1291
168  var target_val = this.target;
169  if (target_val == '_blank') {
170    //navigation set as open into new window then donot do window.location
171  }
172  else {
173    window.location = this.href;
174  }
175  //----------------------------------
176});
177} else {
178$('ul.navbar-nav > li').removeClass('hovernav');
179}
180};
181// Restore "clickable parent links" in navbar
182$('.hovernav a').click(function () {
183//window.location = this.href;
184  //----------------------------------
185  //WD-1291
186  var target_val = this.target;
187  if (target_val == '_blank') {
188    //navigation set as open into new window then donot do window.location
189  }
190  else {
191    window.location = this.href;
192  }
193  //----------------------------------
194});
195
196
197});
198
199
200
201
202jQuery(function ($) {
203
204$('#nav').affix({
205  offset: {
206    top: $('header').height()
207  }
208});
209
210$('#sidebar').affix({
211  offset: {
212    top: 200
213  }
214});
215
216});

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.