1/** 2 * Created with JetBrains PhpStorm. 3 * User: jonathan 4 * Date: 10/31/12 5 * Time: 10:23 AM 6 * To change this template use File | Settings | File Templates. 7 */ 8 9 10jQuery(document).ready(function($){ 11 $('.mailjet-subscribe').submit(function(e) { 12 e.preventDefault(); 13 var f = $(e.currentTarget); 14 var p = f.parent(); 15 $.ajax({ 16 type: "POST", 17 url: "index.php", 18 data: f.serialize(), 19 dataType: "json", 20 success: function(data){ 21 p.find('.mailjet-error').hide(); 22 if(data === 'DUPLICATE'){ 23 p.find('.mailjet-success').hide(); 24 p.find('.mailjet-duplicate').show(); 25 }else{ 26 p.find('.mailjet-duplicate').hide(); 27 p.find('.mailjet-success').show(); 28 } 29 }, 30 error: function() { 31 p.find('.mailjet-success').hide(); 32 p.find('.mailjet-duplicate').hide(); 33 p.find('.mailjet-error').show(); 34 } 35 }); 36 }); 37});
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.