1(function ($) { 2$(function () { 3 if ($('.disable-autotag').length > 0) { 4 return; 5 } 6 if (!$('.autotag').length) { 7 $.ajax({ 8 url: "/api/hashtags", 9 type: 'GET', 10 dataType: 'json', 11 data: { url: window.location.href }, 12 13 success: function (response) { 14 console.log("hashtag", window.location.href, response); 15 if (response.success && response.hashtags.length > 0) { 16 var hashtagHtml = '<div class="staticTag autotag">' + 17 '<h5><img src="/module/img/tag.png" alt="TAG"></h5>' + 18 '<ul>'; 19 20 response.hashtags.forEach(function (tag) { 21 hashtagHtml += '<li><a href="/hashtag/?tag=' + encodeURIComponent(tag) + '" target="_self">#' + tag + '</a></li>'; 22 }); 23 24 hashtagHtml += '</ul></div>'; 25 26 // å ã®ãã¸ãã¯ã¨åãå ´æã«æ¿å ¥ 27 if ($('#fv').length) { 28 $('#fv').after(hashtagHtml); 29 } else if ($('.fv').length == 1) { 30 $('.fv').after(hashtagHtml); 31 } else if ($('.fvDetail').length == 1) { 32 $('.fvDetail').after(hashtagHtml); 33 } else if ($('.detail').length == 1) { 34 $('.detail').after(hashtagHtml); 35 } else if ($('h2').length) { 36 $('h2').after(hashtagHtml); 37 } 38 } 39 }, 40 error: function (xhr, status, error) { 41 console.log('Hashtag API error:', error); 42 } 43 }); 44 } 45}); 46})($);
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.