PageSourceSearch

https://tvandmusicnetwork.com/wp-content/themes/mh-magazine/includes/core/assets/js/scripts.js?ver=5.0.8

js tvandmusicnetwork.com collected 2026-10-02 23:32:11 UTC 2,782 bytes, 115 lines download raw bytes

1jQuery(window).on("load", function(){
2
3	/* FlexSlider */
4
5	jQuery(".mh-slider-widget").flexslider({
6		animation: "slide",
7		controlNav: true,
8		directionNav: true,
9		animationLoop: true,
10		slideshow: true,
11		slideshowSpeed: 7000,
12		smoothHeight: true
13	});
14	jQuery(".mh-carousel-widget").flexslider({
15		animation: "slide",
16		controlNav: false,
17		directionNav: true,
18		animationLoop: true,
19		slideshow: true,
20		slideshowSpeed: 7000,
21		itemWidth: 188,
22		itemMargin: 15
23	});
24	jQuery("[id*='testimonials-']").flexslider({
25		animation: "fade",
26		controlNav: false,
27		directionNav: true,
28		randomize: true
29	});
30	jQuery("[id*='images-']").flexslider({
31		animation: "fade",
32		controlNav: false,
33		directionNav: true,
34		randomize: true
35	});
36
37});
38
39jQuery(function($){
40
41	/* MH Navigation */
42
43	$(function(){
44		$('.mh-header-nav').slicknav({ prependTo: '.mh-header-nav-mobile', duration: 500, allowParentLinks: true });
45		$('.mh-main-nav').slicknav({ prependTo: '.mh-main-nav-wrap', duration: 500, allowParentLinks: true });
46		$('.mh-footer-nav').slicknav({ prependTo: '.mh-footer-nav-mobile', duration: 500, allowParentLinks: true });
47	});
48
49	/* News Ticker */
50
51	function ticker_top(){
52		$('#mh-ticker-loop-top li:first').slideUp(function(){
53			$(this).appendTo($('#mh-ticker-loop-top')).slideDown();
54		});
55	}
56	setInterval(function(){ticker_top()}, 4000);
57
58	function ticker_bottom(){
59		$('#mh-ticker-loop-bottom li:first').slideUp(function(){
60			$(this).appendTo($('#mh-ticker-loop-bottom')).slideDown();
61		});
62	}
63	setInterval(function(){ticker_bottom()}, 4000);
64
65	/* Hide Boxes */
66
67	$('.mh-hide-box').on("click", function(){
68		$(this).closest('.mh-box').fadeToggle();
69	});
70
71	/* Back to Top Button */
72
73	window._isScrolled = false;
74	var $mh_back_to_top = $('.mh-back-to-top');
75	$(window).on('scroll', false, function() {
76		var scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
77		if (scrollTop > 400 && !window._isScrolled) {
78			window._isScrolled = true;
79			$mh_back_to_top.fadeIn();
80		} else if (scrollTop <= 400 && window._isScrolled) {
81			window._isScrolled = false;
82			$mh_back_to_top.fadeOut();
83		}
84	});
85	$mh_back_to_top.on("click", function(){
86		$('html, body').stop().animate({scrollTop : 0}, 400);
87		return false;
88	});
89
90	/* MH Tabbed Widget */
91
92	$('div.mh-tab-buttons').each(function(){
93		var $active, $content, $links = $(this).find('a');
94		$active = $links.first().addClass('active');
95		$content = $($active.attr('href'));
96
97		$links.not($active).each(function () {
98			$($(this).attr('href')).hide();
99		});
100
101		$(this).on('click', 'a', function(e){
102			$active.removeClass('active');
103			$content.hide();
104
105			$active = $(this);
106			$content = $($(this).attr('href'));
107
108			$active.addClass('active');
109			$content.fadeIn('slow');
110
111			e.preventDefault();
112		});
113	});
114
115});

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.