1// æç« æè® / æ¶èï¼æéç data-url ç±å¾ç«¯ä¾ç®åçæ çµ¦ãå å ¥ãæãç§»é¤ãçç¶²å 2function article_interactive(button_id) 3{ 4 var url = $('#'+ button_id).data('url'); 5 if(url==undefined || url=='') 6 return; 7 8 $.post(url, function(res) 9 { 10 if(res.status=='ok') 11 { 12 swal({ 13 title: t('Like / bookmark article'), 14 text: res.message, 15 type: "success", 16 }).then(function(result) { 17 location.reload(); 18 }); 19 } 20 else if(res.status=='no_login') 21 { 22 swal({ 23 title: t('Like / bookmark article'), 24 text: res.message, 25 type: "warning", 26 }); 27 } 28 else 29 { 30 swal(t('Server error')); 31 } 32 }, 'json'); 33} 34 35// æå¡ä¸å¿ãæçæ¶èãçç§»é¤é 36function remove_collect_from_article(url) 37{ 38 if(url==undefined || url=='') 39 return; 40 41 $.post(url, function(res) 42 { 43 if(res.status=='ok') 44 { 45 swal({ 46 title: t('Bookmarked articles'), 47 text: res.message, 48 type: "success", 49 }).then(function(result) { 50 location.reload(); 51 }); 52 } 53 else if(res.status=='no_login') 54 { 55 swal({ 56 title: t('Bookmarked articles'), 57 text: res.message, 58 type: "warning", 59 }); 60 } 61 else 62 { 63 swal(t('Server error')); 64 } 65 }, 'json'); 66}
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.