1function consume_credit_for_media() 2{ 3 var url = $('#btn_consume_credit_for_media').data('url'); 4 $.get(url, function(res) 5 { 6 if(res.status=='ok') 7 { 8 swal( 9 t('Points deducted. You have %s points left', res.credit_left) 10 ).then((result) => { 11 location.reload(); 12 }); 13 } 14 else if(res.status=='err:not_login') 15 { 16 swal(t('Please log in first')); 17 } 18 else if(res.status=='err:already_open') 19 { 20 swal(t('Access already unlocked')); 21 } 22 else if(res.status=='err:credit_not_enough') 23 { 24 swal(t('Not enough points')); 25 } 26 }, 'json'); 27}
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.