PageSourceSearch

https://digiinfluence.com/wp-content/plugins/ws-download-manager/js/sdm_wp_scripts.js?ver=6.9.4

js digiinfluence.com collected 2026-10-04 01:44:13 UTC 1,482 bytes, 61 lines download raw bytes

1// Simple Download Monitor frontend scripts
2
3function sdm_is_ie() {
4
5    var ua = window.navigator.userAgent;
6    var msie = ua.indexOf("MSIE ");
7
8    if (msie > 0 || !!navigator.userAgent.match(/Trident.*rv\:11\./))
9    {
10	return true;
11    }
12
13    return false;
14}
15
16jQuery(document).ready(function ($) {
17
18    // Populate all nested titles and links 
19    $('li.sdm_cat').each(function () {
20
21	var $this = $(this);
22	this_slug = $this.attr('id');
23	this_id = $this.children('.sdm_cat_title').attr('id');
24
25	// Run ajax
26	$.post(
27		sdm_ajax_script.ajaxurl,
28		{
29		    action: 'sdm_pop_cats',
30		    cat_slug: this_slug,
31		    parent_id: this_id
32		},
33		function (response) {
34
35		    // Loop array returned from ajax function
36		    $.each(response.final_array, function (key, value) {
37
38			// Populate each matched post title and permalink
39			$this.children('.sdm_placeholder').append('<a href="' + value['permalink'] + '"><span class="sdm_post_title" style="cursor:pointer;">' + value['title'] + '</span></a>');
40		    });
41
42		    $this.children('span').append('<span style="margin-left:5px;" class="sdm_arrow">&#8616</span>');
43		}
44	);
45    });
46
47    // Hide results on page load
48    $('li.sdm_cat').children('.sdm_placeholder').hide();
49
50    // Slide toggle for each list item
51    $('body').on('click', '.sdm_cat_title', function (e) {
52
53	// If there is any html.. then we have more elements
54	if ($(this).next().html() != '') {
55
56	    $(this).next().slideToggle(); // toggle div titles
57	}
58    });
59
60
61});

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.