1$(document).ready(function() { 2 3 function createPopup(popup) { 4 let html_content = popup.html_content || ''; 5 let html_with_js = $(html_content); 6 let span = $("<span>").html(html_with_js); 7 $("body").append(span); 8 console.log("Created popup [" + popup.title + "] on [" + popup.css_class_position + "]"); 9 }; 10 11 function createPopups(data) { 12 for (popup of data) { 13 createPopup(popup); 14 } 15 }; 16 17 $.get( "/popup/json.php", createPopups ); 18 19 console.log( "PopUp.js is ready!" ); 20});
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.