PageSourceSearch

https://gravidia.jp/wp-content/plugins/shogakukan-utility/static/s…kan-utility-script-footer.js?ver=20220616_1

js gravidia.jp collected 2026-10-07 00:28:54 UTC 1,201 bytes, 34 lines download raw bytes

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.