PageSourceSearch

https://sudoroom.org/wp-content/plugins/templategalaxy/assets/js/templategalaxy-scripts.js?ver=7.1

js sudoroom.org collected 2026-09-24 18:36:38 UTC 11,974 bytes, 506 lines download raw bytes

1(function ($) {
2  /**
3   * adding slider for patternberg
4   */
5
6  // Wait for a short time to ensure classes are applied before initializing Swiper
7  setTimeout(function () {
8    // Initialize Swiper
9    var tgPostSwiper = new Swiper(".tg-post-slider", {
10      slidesPerView: 1,
11      spaceBetween: 20,
12      loop: true,
13      autoplay: {
14        delay: 5000,
15        disableOnInteraction: false,
16      },
17      pagination: {
18        el: ".tgpost-slider-pagination",
19        clickable: true,
20      },
21      navigation: {
22        nextEl: ".tgpost-slider-next",
23        prevEl: ".tgpost-slider-prev",
24      },
25      // Add more options as needed
26    });
27    var tgPostSwiper2 = new Swiper(".tg-post-slider-2", {
28      slidesPerView: 1,
29      spaceBetween: 20,
30      centeredSlides: true,
31      loop: true,
32      autoplay: {
33        delay: 5000,
34        disableOnInteraction: false,
35      },
36      pagination: {
37        el: ".tgpost-slider-pagination",
38        clickable: true,
39      },
40      navigation: {
41        nextEl: ".tgpost-slider-next",
42        prevEl: ".tgpost-slider-prev",
43      },
44      breakpoints: {
45        400: {
46          slidesPerView: 1,
47        },
48        1180: {
49          slidesPerView: 2,
50        },
51      },
52      // Add more options as needed
53    });
54    var tgPostSwiper3 = new Swiper(".tg-post-slider-3", {
55      slidesPerView: 1,
56      spaceBetween: 20,
57      loop: true,
58      autoplay: {
59        delay: 5000,
60        disableOnInteraction: false,
61      },
62      pagination: {
63        el: ".tgpost-slider-pagination",
64        clickable: true,
65      },
66      navigation: {
67        nextEl: ".swiper-button-next",
68        prevEl: ".swiper-button-prev",
69      },
70      breakpoints: {
71        400: {
72          slidesPerView: 1,
73        },
74        767: {
75          slidesPerView: 2,
76        },
77        1024: {
78          slidesPerView: 2,
79        },
80        1180: {
81          slidesPerView: 3,
82        },
83      },
84      // Add more options as needed
85    });
86    var tgPostSwiper4 = new Swiper(".tg-post-slider-4", {
87      slidesPerView: 1,
88      spaceBetween: 20,
89      loop: true,
90      autoplay: {
91        delay: 5000,
92        disableOnInteraction: false,
93      },
94      pagination: {
95        el: ".tgpost-slider-pagination",
96        clickable: true,
97      },
98      navigation: {
99        nextEl: ".tgpost-slider-next",
100        prevEl: ".tgpost-slider-prev",
101      },
102      breakpoints: {
103        400: {
104          slidesPerView: 1,
105        },
106        767: {
107          slidesPerView: 2,
108        },
109        1024: {
110          slidesPerView: 2,
111        },
112        1180: {
113          slidesPerView: 4,
114        },
115      },
116      // Add more options as needed
117    });
118
119    var tgPostTicker = new Swiper(".tg-news-ticker", {
120      direction: "vertical",
121      slidesPerView: 1,
122      loop: true,
123      spaceBetween: 0,
124      autoplay: {
125        delay: 5000,
126        disableOnInteraction: false,
127      },
128      pagination: {
129        el: ".tg-ticker-pagination",
130        clickable: true,
131      },
132      navigation: {
133        nextEl: ".tg-ticker-next",
134        prevEl: ".tg-ticker-prev",
135      },
136      // Add more options as needed
137    });
138    var tgPostTicker2 = new Swiper(".tg-news-ticker-2", {
139      slidesPerView: 4,
140      direction: "vertical",
141      spaceBetween: 20,
142      loop: true,
143      autoplay: {
144        delay: 5000,
145        disableOnInteraction: false,
146      },
147      pagination: {
148        el: ".tgv-ticker-pagination",
149        clickable: true,
150      },
151      navigation: {
152        nextEl: ".tgv-ticker-next",
153        prevEl: ".tgv-ticker-prev",
154      },
155      // Add more options as needed
156    });
157    var tgPostTicker3 = new Swiper(".tg-news-ticker-3", {
158      slidesPerView: 3,
159      direction: "vertical",
160      loop: true,
161      spaceBetween: 20,
162      autoplay: {
163        delay: 5000,
164        disableOnInteraction: false,
165      },
166      pagination: {
167        el: ".tgv-ticker-pagination",
168        clickable: true,
169      },
170      navigation: {
171        nextEl: ".tgv-ticker-next",
172        prevEl: ".tgv-ticker-prev",
173      },
174      // Add more options as needed
175    });
176
177    var tgPostCarsl = new Swiper(".tg-post-carousel", {
178      slidesPerView: 1,
179      spaceBetween: 20,
180      loop: true,
181      autoplay: {
182        delay: 5000,
183        disableOnInteraction: false,
184      },
185      pagination: {
186        el: ".tgpost-carousel-pagination",
187        clickable: true,
188      },
189      navigation: {
190        nextEl: ".tgpost-carousel-next",
191        prevEl: ".tgpost-carousel-prev",
192      },
193      breakpoints: {
194        400: {
195          slidesPerView: 1,
196        },
197        767: {
198          slidesPerView: 2,
199        },
200        1024: {
201          slidesPerView: 2,
202        },
203        1180: {
204          slidesPerView: 3,
205        },
206      },
207      // Add more options as needed
208    });
209    var tgPostCarsl4 = new Swiper(".tg-post-carousel-4", {
210      slidesPerView: 1,
211      spaceBetween: 20,
212      loop: true,
213      autoplay: {
214        delay: 5000,
215        disableOnInteraction: false,
216      },
217      pagination: {
218        el: ".tgpost-carousel-pagination",
219        clickable: true,
220      },
221      navigation: {
222        nextEl: ".tgpost-carousel-next",
223        prevEl: ".tgpost-carousel-prev",
224      },
225      breakpoints: {
226        400: {
227          slidesPerView: 1,
228        },
229        767: {
230          slidesPerView: 2,
231        },
232        1024: {
233          slidesPerView: 2,
234        },
235        1180: {
236          slidesPerView: 4,
237        },
238      },
239      // Add more options as needed
240    });
241    var tgPostCarsl5 = new Swiper(".tg-post-carousel-5", {
242      slidesPerView: 1,
243      spaceBetween: 20,
244      loop: true,
245      autoplay: {
246        delay: 5000,
247        disableOnInteraction: false,
248      },
249      pagination: {
250        el: ".tgpost-carousel-pagination",
251        clickable: true,
252      },
253      navigation: {
254        nextEl: ".tgpost-carousel-next",
255        prevEl: ".tgpost-carousel-prev",
256      },
257      breakpoints: {
258        400: {
259          slidesPerView: 1,
260        },
261        767: {
262          slidesPerView: 2,
263        },
264        1024: {
265          slidesPerView: 2,
266        },
267        1180: {
268          slidesPerView: 5,
269        },
270      },
271      // Add more options as needed
272    });
273    var tgContentBox1 = new Swiper(".tg-content-carousel-1", {
274      slidesPerView: 1,
275      spaceBetween: 20,
276      loop: true,
277      autoplay: {
278        delay: 5000,
279        disableOnInteraction: false,
280      },
281      pagination: {
282        el: ".tgcontent-carousel-pagination",
283        clickable: true,
284      },
285      navigation: {
286        nextEl: ".tgcontent-slide-next",
287        prevEl: ".tgcontent-slide-prev",
288      },
289      breakpoints: {
290        400: {
291          slidesPerView: 1,
292        },
293        767: {
294          slidesPerView: 1,
295        },
296        1024: {
297          slidesPerView: 1,
298        },
299        1180: {
300          slidesPerView: 1,
301        },
302      },
303      // Add more options as needed
304    });
305    var tgContentBox2 = new Swiper(".tg-content-carousel-2", {
306      slidesPerView: 1,
307      spaceBetween: 20,
308      loop: true,
309      autoplay: {
310        delay: 5000,
311        disableOnInteraction: false,
312      },
313      pagination: {
314        el: ".tgcontent-carousel-pagination",
315        clickable: true,
316      },
317      navigation: {
318        nextEl: ".tgcontent-slide-next",
319        prevEl: ".tgcontent-slide-prev",
320      },
321      breakpoints: {
322        400: {
323          slidesPerView: 1,
324        },
325        767: {
326          slidesPerView: 2,
327        },
328        1024: {
329          slidesPerView: 2,
330        },
331        1180: {
332          slidesPerView: 2,
333        },
334      },
335      // Add more options as needed
336    });
337    var tgContentBox = new Swiper(".tg-content-carousel", {
338      slidesPerView: 1,
339      spaceBetween: 20,
340      loop: true,
341      autoplay: {
342        delay: 5000,
343        disableOnInteraction: false,
344      },
345      pagination: {
346        el: ".tgcontent-carousel-pagination",
347        clickable: true,
348      },
349      navigation: {
350        nextEl: ".tgcontent-slide-next",
351        prevEl: ".tgcontent-slide-prev",
352      },
353      breakpoints: {
354        400: {
355          slidesPerView: 1,
356        },
357        767: {
358          slidesPerView: 2,
359        },
360        1024: {
361          slidesPerView: 2,
362        },
363        1180: {
364          slidesPerView: 3,
365        },
366      },
367      // Add more options as needed
368    });
369    var tgContentBox4 = new Swiper(".tg-content-carousel-4", {
370      slidesPerView: 1,
371      spaceBetween: 20,
372      loop: true,
373      autoplay: {
374        delay: 5000,
375        disableOnInteraction: false,
376      },
377      pagination: {
378        el: ".tgcontent-carousel-pagination",
379        clickable: true,
380      },
381      navigation: {
382        nextEl: ".tgcontent-slide-next",
383        prevEl: ".tgcontent-slide-prev",
384      },
385      breakpoints: {
386        400: {
387          slidesPerView: 1,
388        },
389        767: {
390          slidesPerView: 2,
391        },
392        1024: {
393          slidesPerView: 2,
394        },
395        1180: {
396          slidesPerView: 4,
397        },
398      },
399      // Add more options as needed
400    });
401    var tgContentBox5 = new Swiper(".tg-content-carousel-5", {
402      slidesPerView: 1,
403      spaceBetween: 20,
404      loop: true,
405      autoplay: {
406        delay: 5000,
407        disableOnInteraction: false,
408      },
409      pagination: {
410        el: ".tgcontent-carousel-pagination",
411        clickable: true,
412      },
413      navigation: {
414        nextEl: ".tgcontent-slide-next",
415        prevEl: ".tgcontent-slide-prev",
416      },
417      breakpoints: {
418        400: {
419          slidesPerView: 1,
420        },
421        767: {
422          slidesPerView: 2,
423        },
424        1024: {
425          slidesPerView: 3,
426        },
427        1180: {
428          slidesPerView: 5,
429        },
430      },
431      // Add more options as needed
432    });
433  }, 100); // You can adjust the delay as needed
434  // });
435  $(".tg-swiper-holder").find(".wp-block-post").addClass("swiper-slide");
436
437  $(".tg-swiper-holder").each(function (index) {
438    var sliderHeight = $(this).find(".wp-block-cover").css("min-height");
439    $(this).find(".wp-block-cover").css("height", sliderHeight);
440  });
441
442  $(".news-ticker-holderv").each(function (index) {
443    var tickerHeight = $(this).css("min-height");
444    $(this).find(".tg-news-ticker-2").css("height", tickerHeight);
445  });
446  $(".news-ticker-holderv").each(function (index) {
447    var tickerHeight = $(this).css("min-height");
448    $(this).find(".tg-news-ticker-3").css("height", tickerHeight);
449  });
450
451  /**
452   * PatternBerg Counter
453   */
454  var viewed = [];
455  $(".tg-counter").each(function () {
456    viewed.push(false);
457  });
458
459  $(window).scroll(function () {
460    var windowHeight = $(window).height();
461    var scrollTop = $(window).scrollTop();
462    $(".tg-counter").each(function (index) {
463      var offset = $(this).offset().top;
464      var distance = offset - scrollTop;
465
466      if (!viewed[index] && distance < windowHeight) {
467        viewed[index] = true;
468        var count = parseInt($(this).text());
469        $(this)
470          .prop("Counter", 0)
471          .animate(
472            {
473              Counter: count,
474            },
475            {
476              duration: 3000,
477              easing: "swing",
478              step: function (now) {
479                $(this).text(Math.ceil(now));
480              },
481            }
482          );
483      }
484    });
485  });
486  document.addEventListener("DOMContentLoaded", function () {
487    var tgSwiper = new Swiper(".tg-slider", {
488      // Swiper configuration options
489      slidesPerView: 1,
490      spaceBetween: 20,
491      autoplay: {
492        delay: 5000, // Set the delay (in milliseconds) between slides
493        disableOnInteraction: false, // Allow navigation when interacting with the slider
494      },
495      pagination: {
496        el: ".tg-slider-pagination",
497        clickable: true,
498      },
499      navigation: {
500        nextEl: ".tg-slider-next",
501        prevEl: ".tg-slider-prev",
502      },
503      // Add more options as needed
504    });
505  });
506})(jQuery);

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.