1(function($, SgkUtil) { 2 /** 3 * ãããèªã¿ãªã³ã¯DOMãªãã¸ã§ã¯ãã®åå¾ 4 * @param params 5 * @returns {DocumentFragment} 6 */ 7 const getTameshiyomiLinkDom = function(params) { 8 const templateStr = 9 '<a class="{{classStr}}" href="javascript:void(0);" onclick="SgkUtil.Book.openTameshiyomiModal(\'{{contentId}}\', \'{{popupTitle}}\');" style="{{styleStr}}">{{linkText}}</a>'; 10 return document 11 .createRange() 12 .createContextualFragment(SgkUtil.cnvTemplateStr(templateStr, params)); 13 }; 14 // ãããèªã¿ãªã³ã¯å·®ãè¾¼ã¿ç¨ã®DOMãæ¢ç´¢ãã¦ãªã³ã¯ã追å ãã 15 $('[data-type="tameshiyomi-link"]').each(function(i, el) { 16 const $el = $(el); 17 const contentId = $el.data('contentid'); 18 const classStr = $el.data('class'); 19 const popupTitle = $el.data('popuptitle'); 20 const styleStr = $el.data('style'); 21 const linkText = $el.data('text'); 22 $el 23 .before( 24 getTameshiyomiLinkDom({ 25 contentId: contentId, 26 popupTitle: popupTitle, 27 classStr: classStr, 28 styleStr: styleStr, 29 linkText: linkText 30 }) 31 ) 32 .remove(); 33 }); 34})(window.jQuery, window.SgkUtil);
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.