PageSourceSearch

https://www.bonuspark.jp/js/app.js?202609251436

js bonuspark.jp collected 2026-09-25 06:06:53 UTC 25,027 bytes, 738 lines download raw bytes

1$(function () {
2// 表示端末による表示変更(iOS,And,PC)
3(function getOs() {
4  if (getMobileOS() === 'iOS') {
5    $('.js-appStore').removeClass('u-pc').attr('href','https://app.adjust.com/n4bld9z_xpco4m2?redirect=https%3A%2F%2Fapp.sdk.ponta.jp%2Foperation%2Fv6%2Funiversal_link%2Findex.html%3Ful_mode%3Dnative%26ul_content_id%3DP021800&engagement_type=fallback_click');
6    $('.js-GooglePlay').addClass('u-pc');
7    $('.p-category--special .p-category__tab,.p-category--special .content,.c-cardList__wrap, .c-button__sub.c-cardList__button, .js-recommend').removeClass('is-ios-hide');
8  } else if (getMobileOS() === 'Android') {
9    $('.js-GooglePlay').removeClass('u-pc').attr('href','https://app.adjust.com/n4bld9z_xpco4m2?redirect=https%3A%2F%2Fapp.sdk.ponta.jp%2Foperation%2Fv6%2Funiversal_link%2Findex.html%3Ful_mode%3Dnative%26ul_content_id%3DP021800&engagement_type=fallback_click');
10    $('.js-appStore').addClass('u-pc');
11    $('.p-category--special .p-category__tab,.p-category--special .content,.c-cardList__wrap, .c-button__sub.c-cardList__button, .js-recommend').removeClass('is-and-hide');
12  } else {
13    $('.c-cardList__wrap, .js-recommend').removeClass('is-pc-hide');
14    $('.is-cat__app').addClass('is-pc-hide');
15    $('.p-top__anchorList.is-app, #app').addClass('is-hide');
16  }
17})();
18
19//utmパラメータ取得して引き回し
20(function getUtm() {
21  var currentURL = window.location.href;
22  var currentDecodedURL = decodeURIComponent(currentURL);
23  var utmParamValue = "";
24  var startIndex = currentDecodedURL.indexOf("utmParam=");
25
26  if (currentDecodedURL.indexOf('utmParam=&') == -1 && startIndex !== -1) {
27      startIndex += 9; 
28      utmParamValue = currentDecodedURL.substring(startIndex).replace('&openExternalBrowser=0', '');
29    } else {
30      var queryString = currentDecodedURL.split('?')[1];
31      var params = new URLSearchParams(queryString);
32      var GAparam = [];
33      params.forEach(function(value, key) {
34        if (key.indexOf('utm_') === 0) {
35          GAparam.push(key + '=' + value);
36        }
37      });
38      utmParamValue = GAparam.join('&');
39  }
40  $(".js-utmParam").val(utmParamValue);
41  $(document).on("click", "a", function(e) {
42    var link = $(this).attr("href");
43    if(utmParamValue) {
44      if (!$(this).attr('target') && link.indexOf('utm') === -1) {
45        var updatedLink = link + (link.includes('?') ? '&' : '?') + utmParamValue;
46        $(this).attr("href", updatedLink);
47      }
48    }
49  });
50})();
51
52// タグ切り替え
53(function ChangeTab() {
54  // 初期値
55  $('.js-tab-right-content').hide();
56
57  $('.js-tab-left').on('click', function () {
58    $('.js-tab-right').removeClass('active');
59    $(this).addClass('active');
60    $('.js-tab-right-content').hide();
61    $('.js-tab-left-content').show();
62  });
63
64  $('.js-tab-right').on('click', function () {
65    $('.js-tab-left').removeClass('active');
66    $(this).addClass('active');
67    $('.js-tab-left-content').hide();
68    $('.js-tab-right-content').show();
69  })
70})();
71
72// モーダル機能
73(function snsModalOpen() {
74  $('.js-snsModalOpen').on('click', function (e) {
75    e.preventDefault();
76    $('.js-snsModal').addClass('c-modal--open');
77  });
78})();
79(function detailModalOpen() {
80  $('.js-detailModalOpen').on('click', function (e) {
81    e.preventDefault();
82    $('.js-detailModal').addClass('c-modal--open');
83  });
84})();
85
86(function modalClose() {
87  $('.js-modal').on('click', function (e) {
88    if ($(e.target).get(0) === $('.js-snsModal').get(0)) {
89      $('.js-snsModal').removeClass('c-modal--open');
90    } else if ($(e.target).get(0) === $('.js-detailModal').get(0)) {
91      $('.js-detailModal').removeClass('c-modal--open');
92    } else if ($(e.target).get(0) === $('.js-topModal').get(0)) {
93      $('.js-topModal').removeClass('c-modal--open');
94    }
95  });
96  $('.js-modalClose').on('click', function (e) {
97    e.preventDefault();
98    $('.js-modal').removeClass('c-modal--open');
99  });
100})();
101
102(function clickCopyLink() {
103  $('.js-copyLink').on('click', function () {
104    const link = $('.js-link').text();
105    const userAgent = navigator.userAgent.toLowerCase();
106    const isAndroidWebview = userAgent.indexOf('android') > -1 && userAgent.indexOf('wv') > -1;
107
108    if (isAndroidWebview) {
109      const textarea = document.createElement('textarea');
110      textarea.value = link;
111      document.body.appendChild(textarea);
112      textarea.select();
113      document.execCommand('copy');
114      document.body.removeChild(textarea);
115      try {
116        $('.js-copySuccess').addClass('c-modal__copySuccess--fadeIn');
117        setTimeout(() => {
118          $('.js-copySuccess').removeClass('c-modal__copySuccess--fadeIn');
119        }, 3000);
120      } catch (err) {
121        console.log('コピーが失敗しました。', err);
122      }
123    } else {
124      navigator.clipboard.writeText(link).then(() => {
125        $('.js-copySuccess').addClass('c-modal__copySuccess--fadeIn');
126        setTimeout(() => {
127          $('.js-copySuccess').removeClass('c-modal__copySuccess--fadeIn');
128        }, 3000);
129      }).catch(err => {
130        console.log('コピーが失敗しました。', err);
131      });
132    }
133
134  })
135})();
136
137// アンカーリンク系
138(function clickPageTop() {
139  $('.js-pageTop').on('click', function () {
140    $('body,html').animate({ scrollTop: 0 }, 800);
141  });
142})();
143
144(function clickAnchor() {
145  $('a[href^="#"]').on('click', function () {
146    const speed = 800;
147    const href = $(this).attr('href');
148    const position = $(href).offset().top;
149    $('html, body').animate({ scrollTop: position }, speed);
150    return false
151  });
152})();
153
154// カルーセル
155(function swiper() {
156  const swiper = new Swiper('.swiper', {
157    loop: true,
158    spaceBetween: 15,
159    slidesPerView: 'auto',
160    centeredSlides: true,
161    centeredSlidesBounds: true,
162    autoplay: {
163      delay: 4700,
164      disableOnInteraction: false,
165      pauseOnMouseEnter: true,
166    },
167    pagination: {
168      el: '.swiper-pagination',
169      clickable: true,
170    },
171    navigation: {
172      nextEl: ".swiper-button-next",
173      prevEl: ".swiper-button-prev",
174    },
175  });
176})();
177
178// 検索メニュー
179(function clickMore() {
180  $('.js-clickMore').on('click', function () {
181    $('.c-cardList--normal').css('display', 'block');
182    $(this).hide();
183  });
184})();
185
186(function copySearchText() {
187  $('.c-search input.c-keywordBox__input').on('change', function () {
188    const searchText = $(this).val();
189    $('.c-keywordBox input.c-keywordBox__input').val(searchText);
190  });
191})();
192
193// 空検索対策
194(function preventEmptySearch() {
195  $(document).on('submit', '.c-keywordBox__form', function (e) {
196    var $form = $(this);
197    var $input = $form.find('input[name="search"]');
198    var value = $input.val() || '';
199    var normalizedForCheck = value.replace(/ /g, ' ').trim();
200
201    if (!normalizedForCheck) {
202      e.preventDefault();
203      $input.val('');
204      $input.focus();
205      return false;
206    }
207
208    $input.val(value.replace(/^[\s ]+|[\s ]+$/g, ''));
209  });
210})();
211
212(function closeSearch() {
213  $('.js-closeSearch').on('click', function () {
214    $('.c-search').hide();
215    $('.c-search__nav').hide();
216    $('.c-search__keyword').hide();
217    $('.c-search__tag').hide();
218    $('.c-search__category').hide();
219    $('.c-search__white').removeClass('c-search__white--nav');
220    $('.c-search__close').removeClass('isSearch').removeClass('isMenu');
221  });
222})();
223
224(function openSearchCategory() {
225  $('.js-openSearchCategory').on('click', function () {
226    $('.c-search').show();
227    $('.c-search__keyword').show();
228    $('.c-search__tag').show();
229    $('.c-search__category').show();
230    $('.c-search__close').addClass('isSearch');
231  });
232})();
233
234(function openSearchKeyword() {
235  $('.js-keyword-pc').on('click', function () {
236    const keywordBox = $('.js-keywordWrap-pc');
237
238    $('.c-search').show();
239    keywordBox.show();
240    keywordBox.find('.js-keywordBox').focus();
241    $('.c-search__tag').show();
242    $('.c-search__category').show();
243  });
244
245  $('.js-keyword-sp').on('click', function () {
246    const keywordBox = $('.js-keywordWrap-sp');
247
248    $('.c-search').show();
249    keywordBox.show();
250    keywordBox.find('.js-keywordBox').focus();
251    $('.c-search__tag').show();
252    $('.c-search__category').show();
253  })
254  
255})();
256
257(function openSearchMenu() {
258  $('.js-openSearchMenu').on('click', function () {
259    $('.c-search').show();
260    $('.c-search__nav').show();
261    $('.c-search__white').addClass('c-search__white--nav');
262    $('.c-search__close').addClass('isMenu');
263  });
264})();
265
266//ソート機能
267(function clickSort() {
268  // memo: data属性の値が数値変換できない場合は0にする関数
269  const typeOfNan = (point) => {
270    if (Number.isNaN(Number(point))) return 0
271    return Number(point)
272  }
273
274  // 新着順のリスト
275  const initialList = $('.js-list li').get();
276  // 高ポイント順のリスト
277  const pointList = $('.js-list li').sort((a, b) => {
278    const pointA = typeOfNan($(a).data('point'));
279    const pointB = typeOfNan($(b).data('point'));
280    return pointB - pointA;
281  });
282
283  // 新着順にする処理
284  $('.js-sortNew').on('click', function () {
285    if ($(this).hasClass('active')) return
286
287    $('.js-sortPoint').removeClass('active');
288    $(this).addClass('active');
289    $.each(initialList, function (index, item) {
290      $('.js-list').append(item);
291    });
292  });
293
294  // 高ポイント順にする処理
295  $('.js-sortPoint').on('click', function () {
296    if ($(this).hasClass('active')) return
297    
298    $('.js-sortNew').removeClass('active');
299    $(this).addClass('active');
300    $.each(pointList, function (index, item) {
301      $('.js-list').append(item);
302    });
303  });
304
305})();
306
307//ソート機能(カテゴリースペシャルページ)
308(function clickSortCategory() {
309  const os = getMobileOS();
310
311  $('.js-categoryList').each(function () {
312    const $list = $(this);
313    const $content = $list.closest('.content');
314    const $number = $content.find('.js-categoryNumber');
315
316    // 対象カード(.js-categoryList 内)
317    const $cards = $list.find('.c-cardList__card');
318
319    // OSごとのクラス削除
320    if (os === 'iOS') {
321      $cards.removeClass('is-and-hide');
322    } else if (os === 'Android') {
323      $cards.removeClass('is-ios-hide');
324    }
325
326    // 件数算出
327    const totalSize = $cards.length;
328    const size_iosHide = $cards.filter('.is-ios-hide').length;
329    const size_andHide = $cards.filter('.is-and-hide').length;
330    const visibleCount = totalSize - size_iosHide - size_andHide;
331
332    $number.text(`全${visibleCount}件`);
333
334    // ===== ソート機能 =====
335    const $items = $list.children('a').get();
336
337    const initialList = [...$items];
338    const pointList = [...$items].sort((a, b) => {
339      const pointA = Number($(a).data('point')) || 0;
340      const pointB = Number($(b).data('point')) || 0;
341      return pointB - pointA;
342    });
343
344    $content.find('.js-sortNew').off('click').on('click', function () {
345      if ($(this).hasClass('active')) return;
346      $content.find('.js-sortPoint').removeClass('active');
347      $(this).addClass('active');
348      $list.empty().append(initialList);
349    });
350
351    $content.find('.js-sortPoint').off('click').on('click', function () {
352      if ($(this).hasClass('active')) return;
353      $content.find('.js-sortNew').removeClass('active');
354      $(this).addClass('active');
355      $list.empty().append(pointList);
356    });
357
358    // function getPoint($el) {
359    //   const data = $el.data('point');
360    //   if (data !== undefined) return Number(data);
361    //   const text = $el.find('.c-point__minText').text();
362    //   return Number(text.replace(/[^0-9]/g, '')) || 0;
363    // }
364  });
365
366})();
367
368
369// タブ切り替え(カテゴリースペシャルページ)
370(function clickTab() {
371  const tabs = document.querySelectorAll('.p-category__tab');
372  const contents = document.querySelectorAll('.p-category__tabContent .content');
373
374  const os = getMobileOS();
375  const $appTab = $('.p-category__tab--app');
376
377  // OSごとのクラス削除
378  if (os === 'Other') {
379    $appTab.addClass('is-hide');
380  } else {
381    $appTab.removeClass('is-hide');
382  }
383
384  tabs.forEach((tab, index) => {
385    tab.addEventListener('click', () => {
386      tabs.forEach(t => t.classList.remove('is-active'));
387      contents.forEach(c => c.classList.remove('is-active'));
388
389      tab.classList.add('is-active');
390      contents[index].classList.add('is-active');
391    });
392  });
393})();
394
395// 特集・特集キャンペーンの絞り込み
396(function clickFindAllOrType() {
397  const typeFind = (list, that) => {
398    if (that.hasClass('active')) return
399
400    $('.js-findAll').removeClass('active');
401    $('.js-findFeature').removeClass('active');
402    $('.js-findCampaign').removeClass('active');
403    that.addClass('active');
404    // list内を一旦初期化
405    $('.js-list').empty();
406    $.each(list, function (index, item) {
407      $('.js-list').append(item);
408    })
409  }
410
411  const searchNoElement = (list, typeText) => {
412    if (list.length === 0) {
413      return $('.js-findText').text(`現在、${typeText}はありません。`);
414    }
415    return $('.js-findText').text('');
416  }
417
418  const list = $('.js-list li');
419  // すべて
420  const initialList = list.get();
421  // 特集
422  const featureList = list.filter((index,el) => {
423    return $(el).data('type') === 'feature';
424  });
425  // キャンペーン
426  const campaignList = list.filter((index, el) => {
427    return $(el).data('type') === 'campaign';
428  })
429
430  // memo: すべての場合はイベント前に調べる
431  searchNoElement(initialList, '特集・キャンペーン');
432
433  // すべての絞り込み
434  $('.js-findAll').on('click', function () {
435    searchNoElement(initialList, '特集・キャンペーン');
436    typeFind(initialList, $(this));
437  });
438
439  // 特集の絞り込み
440  $('.js-findFeature').on('click', function () {
441    searchNoElement(featureList, '特集');
442    typeFind(featureList, $(this));
443  });
444
445  // キャンペーンの絞り込み
446  $('.js-findCampaign').on('click', function () {
447    searchNoElement(campaignList, 'キャンペーン');
448    typeFind(campaignList, $(this));
449  });
450})();
451
452// 横スクロール
453(function horizontalScroll() {
454  new SimpleBar($('.js-scroll').get(0), {
455    forceVisible: 'x'
456  })
457})();
458
459//詳細ページアコーディオン
460(function slideToggle() {
461  $('.p-detail__subTitle').on('click', function () {
462    const $wrap = $(this).closest('.p-detail__wrap');
463    const $summary = $wrap.find('.p-detail__summary');
464    $summary.stop().slideToggle(200);
465    $(this).toggleClass('is-open');
466  });
467})();
468
469//汎用アコーディオン
470(function slideToggle() {
471  $('.js-accordion').on('click', function () {
472    const $trigger = $(this);
473    const $content = $trigger.next(); // 見出しの直後を対象に
474    $content.stop().slideToggle(200);
475    $trigger.toggleClass('is-open');
476  });
477})();
478
479$('.c-navigation__logout').on('click', function () {
480  deleteCookie('lmck-history');
481});
482
483let resizeTimer;
484$(window).on('resize', function () {
485  clearTimeout(resizeTimer);
486  resizeTimer = setTimeout(function () {
487    resizeHandler();
488  }, 100);
489});
490
491const resizeHandler = setRankingCardHeight();
492$(window).on('load', function () {
493  resizeHandler();
494  displayLogout();
495});
496
497});
498
499// 高さ揃え処理
500function setRankingCardHeight() {
501  function setEqualHeight() {
502    var maxHeight = 0;
503    // 高さリセット
504    $('.c-cardList__wrap--ranking > a').css('height', '');
505    // 最大の高さを取得
506    $('.c-cardList__wrap--ranking > a').each(function () {
507      var height = $(this).outerHeight();
508      if (height > maxHeight) {
509        maxHeight = height;
510      }
511    });
512    // 高さを揃える
513    $('.c-cardList__wrap--ranking > a').height(maxHeight);
514  }
515  function handleResize() {
516    if (window.innerWidth <= 980) {
517      setEqualHeight();
518    } else {
519      $('.c-cardList__wrap--ranking > a').css('height', '');
520    }
521  }
522  return handleResize;
523}
524
525function getMobileOS() {
526  const ua = navigator.userAgent;
527  if (/android/i.test(ua)) {
528    return "Android"
529  } else if (/iPad|iPhone|iPod/.test(ua)) {
530    return "iOS"
531  }
532  return "Other"
533}
534
535function getCookie(name) {
536  const m = document.cookie.match(
537    new RegExp('(?:^|;\\s*)' + name.replace(/[.$?*|{}()[\]\\/+^]/g, '\\$&') + '=([^;]*)')
538  );
539  return m ? decodeURIComponent(m[1]) : null;
540}
541
542function displayLogout() {
543  const show = getCookie('lmck-history') !== null;
544  $('.c-navigation__listLogout,.c-navigation__logout').toggleClass('is-show', show);
545  return show;
546}
547
548function deleteCookie(name) {
549  document.cookie = name + '=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/; domain=bonuspark.jp;';
550  $('.c-navigation__logout,.c-navigation__logout').removeClass('is-show');
551}
552
553function waitForLogoutCookie({ timeoutMs = 10000, intervalMs = 250 } = {}) {
554  if (displayLogout()) return;
555
556  const start = Date.now();
557
558  function stopWatching() {
559    clearInterval(timerId);
560    $(document).off('ajaxComplete._lmck');
561  }
562
563  const timerId = setInterval(() => {
564    if (displayLogout()) {
565      stopWatching();
566      return;
567    }
568
569    if (Date.now() - start > timeoutMs) {
570      stopWatching();
571    }
572  }, intervalMs);
573
574  $(document)
575    .off('ajaxComplete._lmck')
576    .on('ajaxComplete._lmck', function () {
577      if (displayLogout()) {
578        stopWatching();
579      }
580    });
581}
582
583$(function () {
584  waitForLogoutCookie({ timeoutMs: 10000, intervalMs: 250 });
585});
586
587// ASP URL変更
588const auth_url = "https://www.ponta.jp/front/LWAS900/SLWAS900110.htm";
589function genURLVc(lp_url) {
590  const a_para = "005b15fae94b7251c4067219ed5fec09";
591  const p_para = "/servlet/referral";
592  const s_para = "vcptn";
593  const queryString = new URLSearchParams(new URL(lp_url).search).toString();
594  const encodedQueryString = encodeURIComponent(queryString);
595  const encoded_a_para = encodeURIComponent(a_para);
596  const encoded_p_para = encodeURIComponent(p_para);
597  const encoded_s_para = encodeURIComponent(s_para);
598  const gen_url = `${auth_url}?a=${encoded_a_para}&p=${encoded_p_para}&q=${encodedQueryString}&s=${encoded_s_para}`;
599  $('.js-genUrl').attr("href",gen_url);
600};
601function genURLGmo(lp_url) {
602  const a_para = "19763bd03963dcc59f33513a60b98f87";
603  const p_para = "/redirect";
604  const s_para = "u";
605  const queryString = new URLSearchParams(new URL(lp_url).search).toString();
606  const encodedQueryString = encodeURIComponent(queryString + "&network_zone_id=0000");
607  const encoded_a_para = encodeURIComponent(a_para);
608  const encoded_p_para = encodeURIComponent(p_para);
609  const encoded_s_para = encodeURIComponent(s_para);
610  const gen_url = `${auth_url}?a=${encoded_a_para}&p=${encoded_p_para}&q=${encodedQueryString}&s=${encoded_s_para}`;
611  $('.js-genUrl').attr("href",gen_url);
612};
613function genURLA8(lp_url) {
614  const a_para = "1fc06d2286ad89ce4b4ebcda65776ffd";
615  const p_para = "%2Fredirect_a8%2Ehtml";
616  const s_para = "id";
617  const encodedQueryString = encodeURIComponent('ref='+encodeURIComponent(lp_url+'&id1=&id2=').replace(/\./g, '%2E'))
618  const gen_url = `${auth_url}?a=${a_para}&p=${p_para}&s=${s_para}&q=${encodedQueryString}`;
619  $('.js-genUrl').attr("href",gen_url);
620};
621function genURLTg(lp_url) {
622  const a_para = "71d965b26632a6bf1b2aaffc6a4d5721";
623  const p_para = "%2Fredirect_tg%2Ehtml";
624  const s_para = "id";
625  const encodedQueryString = encodeURIComponent('ref='+encodeURIComponent(lp_url+'/0/POBP/').replace(/\./g, '%2E'))
626  const gen_url = `${auth_url}?a=${a_para}&p=${p_para}&s=${s_para}&q=${encodedQueryString}`;
627  $('.js-genUrl').attr("href",gen_url);
628};
629function genURLAt(lp_url) {
630  const a_para = "82447c4772e92d0b309d63391da6830d";
631  const s_para = "add";
632  const queryString = new URLSearchParams(new URL(lp_url).search).toString();
633  const encoded_queryString = encodeURIComponent(queryString.replace(/\./g, '%2E'));
634  const urlObject = new URL(lp_url);
635  const encoded_urlPath = encodeURIComponent(urlObject.pathname.replace(/\./g, '%2E'));
636  const gen_url = `${auth_url}?a=${a_para}&p=${encoded_urlPath}&q=${encoded_queryString}&s=${s_para}`;
637  $('.js-genUrl').attr("href",gen_url);
638};
639function genURLCj(lp_url) {
640  const a_para = "f7d09e5ede714f0111d8fc951c401131";
641  const s_para = "u";
642  const queryString = new URLSearchParams(new URL(lp_url).search).toString();
643  const encodedQueryString = encodeURIComponent(queryString.replace('&u=', '').replace(/\./g, '%2E'));
644  const urlObject = new URL(lp_url);
645  const url_Path = encodeURIComponent(urlObject.pathname.replace(/\./g, '%2E'));
646  const gen_url = `${auth_url}?a=${a_para}&p=${url_Path}&q=${encodedQueryString}&s=${s_para}`;
647  $('.js-genUrl').attr("href",gen_url);
648};
649function genURLSb(lp_url) {
650  const a_para = "ef4da3cab514fc029d6b3de211ef841e";
651  const s_para = "encpid";
652  const urlObject = new URL(lp_url);
653  const url_Path = encodeURIComponent(urlObject.pathname.slice(1));
654  const gen_url = `${auth_url}?a=${a_para}&s=${s_para}&p=${url_Path}`;
655  $('.js-genUrl').attr("href",gen_url);
656};
657function genURLCa(lp_url) {
658  const a_para = "81a0219bdbed58f40678d1da9e207422";
659  const p_para = "/cl/click.php";
660  const s_para = "user_id";
661  const encoded_a_para = encodeURIComponent(a_para);
662  const encoded_p_para = encodeURIComponent(p_para);
663  const encoded_s_para = encodeURIComponent(s_para);
664  const queryString = new URLSearchParams(new URL(lp_url).search).toString();
665  const encodedQueryString = encodeURIComponent(queryString).replace(/\./g, '%2E');
666  const gen_url = `${auth_url}?a=${encoded_a_para}&p=${encoded_p_para}&q=${encodedQueryString}&s=${encoded_s_para}`;
667  $('.js-genUrl').attr("href",gen_url);
668};
669function genURLAfro(lp_url) {
670  const a_para = "d118f4dd388c0ad8521163dd341217f9";
671  const p_para = "/x.php";
672  const s_para = "pid";
673  const encoded_a_para = encodeURIComponent(a_para);
674  const encoded_p_para = encodeURIComponent(p_para);
675  const encoded_s_para = encodeURIComponent(s_para);
676  const queryString = new URLSearchParams(new URL(lp_url).search).toString();
677  const encodedQueryString = encodeURIComponent(queryString).replace(/\./g, '%2E');
678  const gen_url = `${auth_url}?a=${encoded_a_para}&p=${encoded_p_para}&q=${encodedQueryString}&s=${encoded_s_para}`;
679  $('.js-genUrl').attr("href",gen_url);
680};
681function genURLLs(lp_url) {
682  const a_para = "90c415eca6fd9e9232b10c3b11ee30c3";
683  const p_para = "/fs-bin/stat";
684  const s_para = "u1";
685  const encoded_a_para = encodeURIComponent(a_para);
686  const encoded_p_para = encodeURIComponent(p_para);
687  const encoded_s_para = encodeURIComponent(s_para);
688  const queryString = new URLSearchParams(new URL(lp_url).search).toString();
689  const encodedQueryString = encodeURIComponent(queryString).replace(/\./g, '%2E');
690  const gen_url = `${auth_url}?a=${encoded_a_para}&p=${encoded_p_para}&q=${encodedQueryString}&s=${encoded_s_para}`;
691  $('.js-genUrl').attr("href",gen_url);
692};
693function genURLAfitw(lp_url) {
694  const a_para = "8d54f1e704bc50560b64ce1ced431dad";
695  const p_para = "/cp";
696  const s_para = "u1";
697  const encoded_a_para = encodeURIComponent(a_para);
698  const encoded_p_para = encodeURIComponent(p_para);
699  const encoded_s_para = encodeURIComponent(s_para);
700  const queryString = new URLSearchParams(new URL(lp_url).search).toString();
701  const encodedQueryString = encodeURIComponent(queryString).replace(/\./g, '%2E');
702  const gen_url = `${auth_url}?a=${encoded_a_para}&p=${encoded_p_para}&q=${encodedQueryString}&s=${encoded_s_para}`;
703  $('.js-genUrl').attr("href",gen_url);
704};
705function genURLNewAfitw(lp_url) {
706  const a_para = "4a9fb0e5584729909d9f16110070805a";
707  const p_para = "/0f9D5dacD14cec65/cl/";
708  const s_para = "param1";
709  const encoded_a_para = encodeURIComponent(a_para);
710  const encoded_p_para = encodeURIComponent(p_para);
711  const encoded_s_para = encodeURIComponent(s_para);
712  const queryString = new URLSearchParams(new URL(lp_url).search).toString();
713  const encodedQueryString = encodeURIComponent(queryString).replace(/\./g, '%2E');
714  const gen_url = `${auth_url}?a=${encoded_a_para}&p=${encoded_p_para}&q=${encodedQueryString}&s=${encoded_s_para}`;
715  $('.js-genUrl').attr("href",gen_url);
716};
717function genURLJpn(lp_url) {
718  const a_para = "87480098793e00f581ddddfa53c7b371";
719  const s_para = "u";
720  const encoded_a_para = encodeURIComponent(a_para);
721  const encoded_s_para = encodeURIComponent(s_para);
722  const queryString = new URL(lp_url).toString().replace('https://ex-click.j-a-net.jp/?','');
723  const encodedQueryString = encodeURIComponent(queryString);
724  const gen_url = `${auth_url}?a=${a_para}&q=${encodedQueryString}&s=${encoded_s_para}`;
725  $('.js-genUrl').attr("href",gen_url);
726};
727function genURLSkyFlag(lp_url) {
728  const a_para = "6d76a2f738a9893d4af46d1bc1b8bcd8";
729  const p_para = "/ad/p/r";
730  const s_para = "suid";
731  const encoded_a_para = encodeURIComponent(a_para);
732  const encoded_p_para = encodeURIComponent(p_para);
733  const encoded_s_para = encodeURIComponent(s_para);
734  const queryString = new URL(lp_url).toString().replace('https://ad.skyflag.jp/ad/p/r?','');
735  const encodedQueryString = encodeURIComponent(queryString);
736  const gen_url = `${auth_url}?a=${encoded_a_para}&p=${encoded_p_para}&q=${encodedQueryString}&s=${encoded_s_para}`;
737  $('.js-genUrl').attr("href",gen_url);
738};

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.