1'use strict'; 2 3window.init_use_your_drive_media_player = function (listtoken, plugin) { 4 var container = document.querySelector('.media[data-token="' + listtoken + '"]'); 5 6 /* Load Playlist via Ajax */ 7 var data = { 8 action: 'useyourdrive-get-playlist', 9 account_id: container.getAttribute('data-account-id'), 10 lastFolder: container.getAttribute('data-id'), 11 sort: container.getAttribute('data-sort'), 12 listtoken: listtoken, 13 page_url: document.location.href, 14 _ajax_nonce: UseyourDrive_vars.getplaylist_nonce 15 }; 16 17 jQuery.ajaxQueue.addRequest({ 18 type: "POST", 19 url: UseyourDrive_vars.ajax_url, 20 data: data, 21 success: function (json) { 22 var playlist = create_playlistfrom_json(json); 23 init_mediaelement(container, listtoken, playlist, plugin); 24 25 const event = new CustomEvent('ajax-success', { 26 detail: { 27 json: json, 28 request: data 29 } 30 }); 31 32 container.dispatchEvent(event); 33 34 }, 35 error: function (json) { 36 container.querySelector('.loading.initialize').style.display = 'none'; 37 container.querySelector('.wpcp__main-container').classList.add('error'); 38 39 const event = new CustomEvent('ajax-error', { 40 detail: { 41 json: json, 42 request: data 43 } 44 }); 45 46 container.dispatchEvent(event); 47 48 }, 49 dataType: 'json' 50 }); 51 52 jQuery.ajaxQueue.run(); 53}
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.