PageSourceSearch

https://www.madinin-art.net/wp-content/themes/magazine-premium-master/library/js/theme.js?ver=7.1.2

js madinin-art.net collected 2026-10-02 11:08:28 UTC 2,372 bytes, 82 lines download raw bytes

1( function($) {
2	// Responsive videos
3	var all_videos = $( '.entry-content' ).find( 'iframe[src*="player.vimeo.com"], iframe[src*="youtube.com"], iframe[src*="youtube-nocookie.com"], iframe[src*="dailymotion.com"],iframe[src*="kickstarter.com"][src*="video.html"], object, embed' ),
4		f_height;
5
6	all_videos = all_videos.not( 'object object' );
7
8	all_videos.each( function() {
9		var video = $(this);
10
11		if ( video.parents( 'object' ).length )
12			return;
13
14		if ( ! video.prop( 'id' ) )
15			video.attr( 'id', 'rvw' + Math.floor( Math.random() * 999999 ) );
16
17		video
18			.wrap( '<div class="responsive-video-wrapper" style="padding-top: ' + ( video.attr( 'height' ) / video.attr( 'width' ) * 100 ) + '%" />' )
19			.removeAttr( 'height' )
20			.removeAttr( 'width' );
21	} );
22
23	// Mobile menu
24	$( '#header' ).on( 'click', '#mobile-menu a', function() {
25		if ( $(this).hasClass( 'left-menu' ) ) {
26			$( '#nav-wrapper' ).toggleClass( 'menu-open' );
27			$( '#drop-down-search' ).slideUp( 'fast' );
28		} else {
29			$( '#nav-wrapper' ).removeClass( 'menu-open' );
30			$( '#drop-down-search' ).slideToggle( 'fast' );
31		}
32	} );
33
34	// Open submenus in mobile menu
35	$( '#nav-wrapper' ).on( 'click', '.sub-menu-parent > a, .page_item_has_children > a', function(e) {
36		e.preventDefault();
37
38		if ( $(this).parents( '#nav-wrapper' ).hasClass( 'menu-open' ) ) {
39			$(this).toggleClass( 'open' ).parent().find( '.sub-menu:first, .children:first' ).toggle();
40		}
41	} );
42
43	// Footer height
44	$(window)
45		.resize( function() {
46			footer_height();
47		} )
48		.load( function() {
49			footer_height();
50		} );
51
52	function footer_height() {
53		f_height = $( '#footer-content' ).outerHeight() + 5;
54		$( '#footer' ).css({ height: f_height + 'px' });
55		$( '#page' ).css({ marginBottom: -f_height + 'px' });
56		$( '#main' ).css({ paddingBottom: f_height  + 'px' });
57	}
58
59	// Shortcode
60	if ( theme_js_vars['carousel'] )
61		$( '.carousel' ).carousel();
62
63	if ( theme_js_vars['tooltip'] )
64		$( 'a[rel="tooltip"]' ).tooltip();
65
66	if ( theme_js_vars['tabs'] ) {
67		$( '.nav-tabs a' ).click( function(e) {
68			e.preventDefault();
69			$(this).tab( 'show' );
70		} );
71	}
72
73	$( 'a[href="#"]' ).click( function(e) {
74		e.preventDefault();
75	} );
76
77	if ( 'scrollerota' == theme_js_vars['type'] || 'sliderota' == theme_js_vars['type'] ) {
78		window.addEventListener('orientationchange', function(){
79			location.reload();
80		}, false);
81	}
82} )(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.