1var download_check; 2 3jQuery(document).ready( function() { 4 5 if ( jQuery('#show_update_popup').val() == 1 ) { show_update_popup(); } 6 7}); 8 9function show_update_popup() { 10 11 var return_html = "<h2>Alert: Updates Required</h2>\n"; 12 return_html += "<p>In 2017, there were updates to Canadian anti money laundering (AML) and counter terrorist financing (CTF) regulations.</p>\n"; 13 return_html += "<p>At least one of your documents is affected by these changes.</p>\n"; 14 return_html += "<p>You will need to go through the set up wizard and answer a few additional "; 15 return_html += "questions, then download the new documents that are generated.</p>\n"; 16 17 jQuery('.outlier_dialog').attr('title', 'Important Update').html(return_html).dialog({ 18 modal: true, 19 width: 800, 20 buttons: { 21 Close: function() { jQuery(this).dialog('destroy'); } 22 } 23 }); 24 25 return false; 26 27} 28 29 30function outlier_download( product_id ) { 31 32 jQuery('.outlier_download_overlay').show(); 33 jQuery('#outlier_iframe').attr('src', '/wp-content/plugins/outlier/product_download.php?product_id=' + product_id + '&product_type=custom'); 34 download_check = setInterval( function() { watch_for_completion(); }, 1000 ); 35 return false; 36 37} 38 39function watch_for_completion() { 40 41 console.log( 'checking' ); 42 43 var iframe = document.getElementById('outlier_iframe'); 44 var iframeDoc = iframe.contentDocument || iframe.contentWindow.document; 45 46 if (iframeDoc.readyState === 'complete') { 47 setTimeout( function() { 48 jQuery('.outlier_download_overlay').fadeOut(); 49 }, 3000); 50 clearInterval( download_check ); 51 return; 52 } 53 54 return false; 55 56}
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.