PageSourceSearch

https://gip.ge/wp-content/plugins/wp-megamenu-pro/addons/wpmm-videowidget/wpmm-videowidget.js?ver=7.1.2

js gip.ge collected 2026-10-02 04:48:52 UTC 1,164 bytes, 39 lines download raw bytes

1jQuery(document).ready(function($){'use strict';
2
3	const players = Array.from(document.querySelectorAll('.wpmm-video-player'));
4	players.map(elem => {
5		const player = new Plyr(elem);
6		player.volume = 0;
7		$('.wp-megamenu-wrap .wpmm-nav-wrap > ul.wp-megamenu > li.wpmm_mega_menu').on('mouseleave', function() {
8			player.pause();
9		});
10	});
11
12	// Self hosted video upload
13	$(document).on('click', '.wpmm_video_upload_btn', function(e){
14		console.log('>>>>>>')
15		e.preventDefault();
16
17        // Set all variables to be used in scope
18        var frame;
19        // If the media frame already exists, reopen it.
20        if ( frame ) {
21            frame.open();
22            return;
23        }
24		frame = wp.media({
25            title: 'Select or upload media of your chosen persuasion',
26            button: {
27                text: 'Use this media'
28            },
29            multiple: false  // Set to true to allow multiple files to be selected
30        });
31        frame.on( 'select', function() {
32            var attachment = frame.state().get('selection').first().toJSON();
33			$('.self_video_url').val(attachment.url).change();
34        });
35		frame.open();
36	});
37	
38
39});	

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.