1/*Logo Upload Script */ 2jQuery(document).ready(function() { 3 4jQuery('#upload_logo_button').click(function() { 5 formfield = jQuery('#logo').attr('name'); 6 tb_show('logo_upload', 'media-upload.php?type=image&TB_iframe=true'); 7 8 9 window.send_to_editor = function(html) { 10 imgurl = jQuery('img',html).attr('src'); 11 jQuery('#logo').val(imgurl); 12 tb_remove(); 13} 14 15 return false; 16}); 17 18 19 20}); 21 22/*Background Image Upload Script */ 23jQuery(document).ready(function() { 24 25jQuery('#background_image_button').click(function() { 26 formfield2 = jQuery('#background-image').attr('name'); 27 tb_show('background_image', 'media-upload.php?type=image&TB_iframe=true'); 28 29 30 31 window.send_to_editor = function(html) { 32 imgurl2 = jQuery('img',html).attr('src'); 33 jQuery('#background-image').val(imgurl2); 34 tb_remove(); 35} 36 37 38 39 return false; 40}); 41 42 43 44}); 45 46/*Ajax call to get mail list info */ 47jQuery(document).ready( function() { 48 49 jQuery("#my_submit").click( function() { 50 51 //landing_page_id = jQuery(this).attr("landing_page_id") 52 // nonce = jQuery(this).attr("data-nonce") 53 landing_page_id = "123" 54 55 jQuery.ajax({ 56 type : "post", 57 dataType : "jsonp", 58 //jsonp: "callback", 59 //dataType: "html", 60 //url : myAjax.ajaxurl, 61 //url: "http://www.menuflavors.com/LandingPages.action", 62 url: "http://www.menuflavors.com/mytest.html", 63 //data : {action: "my_user_vote", post_id : post_id, nonce: nonce}, 64 data:{landingPageId : landing_page_id}, 65 jsonpCallback:"myFunction", 66 //success: function(response) { 67 //alert(response) 68 //jQuery("#the_message").html("the test worked") 69 //if(response.type == "success") { 70 //jQuery("#vote_counter").html(response.vote_count) 71 // jQuery("#the_message").html("the test worked") 72 // } 73 // else { 74 // alert("Your vote could not be added") 75 // } 76 //} 77 }) 78 79 }) 80 81 }) 82 83function myFunction(data){ 84jQuery("#the_message").html(data.text) 85 alert(data.text) 86}
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.