PageSourceSearch

https://jutaku-kinri.vercel.app/js/affiliate_slots.js

js jutaku-kinri.vercel.app collected 2026-10-03 07:10:04 UTC 3,247 bytes, 43 lines download raw bytes

1/* アフィリエイト枠の一元管理。空配列=非表示。
2   entry は次の2形式に対応する:
3     A) { url: '...', label: '...' }        … 自前カード(従来形式)
4     B) { html: '<A8等の広告タグ>', note: '任意の注記' } … ASP発行タグをそのまま掲載
5   B形式でも「広告」バッジとPR注記はテンプレート側で強制付与する(ステマ規制・CLAUDE.md §1-2(d))。
6   A8.netの掲載サイトは「金利みはり計算機」(websiteId 003 / a8mat先頭 4B85P5) で発行したタグのみ置くこと。 */
7window.AFFILIATE_SLOTS = {
8  result_under: [
9    {
10      html: '<a href="https://px.a8.net/svt/ejp?a8mat=4B85P5+3VWXHE+2PS+2BEEF6" rel="nofollow sponsored noopener" target="_blank">火災保険の一括見積もりサービス</a><img border="0" width="1" height="1" src="https://www15.a8.net/0.gif?a8mat=4B85P5+3VWXHE+2PS+2BEEF6" alt="">',
11      note: '住宅ローンの返済額とあわせて、火災保険料も毎月の固定費に含まれます。加入の要否・補償内容の判断はご自身で行ってください。当サイトは特定の保険商品を推奨するものではありません。'
12    }
13  ],
14  minaoshi_result: [
15    {
16      html: '<a href="https://px.a8.net/svt/ejp?a8mat=4B85P5+3VWXHE+2PS+2BFWFM" rel="nofollow sponsored noopener" target="_blank">火災保険を比較する</a><img border="0" width="1" height="1" src="https://www12.a8.net/0.gif?a8mat=4B85P5+3VWXHE+2PS+2BFWFM" alt="">',
17      note: '金利以外の固定費として、火災保険料を比較できる一括見積もりサービスです。加入の要否・補償内容の判断はご自身で行ってください。当サイトは特定の保険商品を推奨するものではありません。'
18    }
19  ],
20  column_footer: [
21    {
22      html: '<a href="https://px.a8.net/svt/ejp?a8mat=4B85P5+3VWXHE+2PS+2BCWEQ" rel="nofollow sponsored noopener" target="_blank">火災保険の見積もりはこちら</a><img border="0" width="1" height="1" src="https://www17.a8.net/0.gif?a8mat=4B85P5+3VWXHE+2PS+2BCWEQ" alt="">',
23      note: '加入の要否・補償内容の判断はご自身で行ってください。当サイトは特定の保険商品を推奨するものではありません。'
24    }
25  ]
26};
27function renderAffiliateSlots(slotId, el) {
28  var entries = (window.AFFILIATE_SLOTS && window.AFFILIATE_SLOTS[slotId]) || [];
29  if (!el) return;
30  if (!entries.length) { el.hidden = true; el.innerHTML = ''; return; }
31  el.hidden = false;
32  var html = '<div class="ad-notice">※以下は広告(PR)を含みます</div>';
33  entries.forEach(function (e) {
34    if (e && e.html) {
35      html += '<div class="ad-card ad-card-tag"><span class="ad-badge">広告</span><span class="ad-tag-body">' + e.html + '</span>' +
36              (e.note ? '<span class="ad-card-note">' + e.note + '</span>' : '') + '</div>';
37    } else {
38      html += '<a class="ad-card" href="' + e.url + '" rel="sponsored nofollow noopener" target="_blank"><span class="ad-badge">広告</span>' + e.label + '</a>';
39    }
40  });
41  el.innerHTML = html;
42}
43if (typeof module !== 'undefined' && module.exports) { module.exports = { renderAffiliateSlots: renderAffiliateSlots }; }

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.