ウィジェットの使い方(アフィリエイト対応)

受付中の案件情報一覧を出力するウィジェットを提供しています。
JavascriptのコードをHTML上に掲載するだけで、新着案件一覧などを好きなページに配置することができます。
ラッコIDアフィリエイトにも対応しているので、あなたのサイトやシステムに組み込んで報酬獲得に繋げることもできます!

ラッコツールズのように案件一覧を好きな場所に配置することができます!
バランスよく出力されるtype未指定がおすすめ!

設置タグ(レスポンシブ)

<script class="rakkoma-widget" src="https://api.rakkoma.com/js/widget.js"></script>

リクエストパラメータ(オプション)

パラメータ名 説明/値
type 出力タイプ
pickup=ピックアップ案件のランダム
new=新着順
random=ランダム
default=おすすめ案件+PICKUP+ランダムの混合(デフォルト値)
limit 最大出力数
int(2) / max:50 default:8(モバイルは4)
r あなたのアフェリエイトコードを指定する
アフィリエイトリンクとして出力されます
アフィリエイトコード(英2文字+数字8文字)の確認はこちら

サンプル(新着・8件・アフィリエイトコード付与)

設置タグ

<script class="rakkoma-widget" src="https://api.rakkoma.com/js/widget.js?type=new&limit=8&r=TN88969039"></script>

見た目変更(CSS編集)

設置タグを記載した位置に、javascriptが以下のHTMLタグ/CSSを動的に出力しています。
出力されるHTMLタグには特定のclassを割り振っているので、詳細度の高いcssセレクタを指定することにより、適用されるcssを上書きすることができます。
設置サイトのデザインに合ったカスタマイズを試してみてください。

<div class="rakko_ma_list">
  <div class="rakko_ma_head">
    <img width="55" height="50" src="https://rakkoma.com/img/rakko_ma_balloon.png" alt="ラッコM&A" class="ma_rakko_img">
    <p>オンライン事業売却案件(ラッコM&A)</p>
  </div>
  <div class="rakko_ma_body">
    <ul class="rakko_ma_items">
      <li>
        <a href="{案件詳細ページURL}" target="_blank" rel="noopener nofollow">
          <img width="220" height="220" class="rakko_ma_thumbnail" src="{案件サムネイル画像}" alt="{案件名}" loading="lazy" decoding="async">
          <p class="rakko_ma_price">
            <strong><span class="rakko_ma_price_yen">¥</span>{希望売却価格}</strong>
          </p>
        </a>
      </li>
      .
      .
      .
      .
    </ul>
  </div>
  <div class="rakko_ma_see_more">
    <a href="https://rakkoma.com/project/list?r=TN88969039&utm_medium=internal&utm_campaign=widget_ma3386" class="icon_triborder" target="_blank" rel="noopener nofollow">もっと見る</a>
  </div>
</div>

<style type="text/css">
        html, body, img, div, a, ul, li {
            margin: 0px;
            padding: 0px;
            border-width: 0px;
            line-height: 1;
            font-size: 100%;
            transition-property: none;
        }
        body {
            font-size: 14px;
            letter-spacing: 0.4px;
            font-family: -apple-system, BlinkMacSystemFont, Roboto, "Segoe UI", "Helvetica Neue", HelveticaNeue, YuGothic, "Yu Gothic Medium", "Yu Gothic", Verdana, Meiryo, sans-serif;
            font-feature-settings: "pkna";
            -webkit-text-size-adjust: 100%;
            overflow: hidden;
        }
        .rakko_ma_list {
            border: 1px solid #ccc;
            border-radius: 5px;
            max-width: 1030px;
            margin: 0 auto;
            background-color: #fff;
            overflow: hidden;
            container-type: inline-size;
            container-name: rakko_ma_widget;
        }

        .rakko_ma_list, .rakko_ma_list * { 
            box-sizing: border-box;
        }
        .rakko_ma_list img {
            display: block;
            max-width: 100%;
            height: auto;
        }
        .rakko_ma_list p {
            margin: 0;
            padding: 0;
        }
        .rakko_ma_list a {
            text-decoration: none;
            color: inherit;
        }
        .rakko_ma_list .rakko_ma_items > li {
            list-style: none;
            min-width: 0;
        }

        .rakko_ma_list .rakko_ma_body {
            display: flex;
            justify-content: center;
            margin: 24px 40px;
        }
        .rakko_ma_list ul.rakko_ma_items {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 20px;
            width: 100%;
        }
        .rakko_ma_list ul.rakko_ma_items li {
            list-style-type: none;
            background-color: #FFFFFF;
        }
        .rakko_ma_list ul.rakko_ma_items li a {
            text-decoration: none;
            display: block;
            cursor: pointer;
            text-align: right;
            color: #000000;
            border: 1px solid #DDDDDD;
        }
        .rakko_ma_list ul.rakko_ma_items li a:hover {
            text-decoration: none;
            opacity: 0.6;
        }
        .rakko_ma_list ul.rakko_ma_items p {
            color: #000000;
            padding: 0 10px;
            margin: 10px 0;
        }
        .rakko_ma_list ul.rakko_ma_items .rakko_ma_price {
            font-size: 18px;
        }
        .rakko_ma_list ul.rakko_ma_items span.rakko_ma_price_yen {
            font-size: smaller;
        }
        .rakko_ma_list ul.rakko_ma_items img.rakko_ma_thumbnail {
            width: 100%;
            height: auto;
            aspect-ratio: 1 / 1;
        }
        .rakko_ma_list .rakko_ma_see_more {
            border-top: none;
            padding: 0px 20px 20px 20px;
        }
        .rakko_ma_list .rakko_ma_see_more a {
            text-decoration: none;
            color: #FFFFFF;
            background-color: #0A65CC;
            border-radius: 40px;
            letter-spacing: 1px;
            max-width: 400px;
            margin: 0 auto;
            padding: 8px 16px;
            text-align: center;
            display: block;
            line-height: 1.4;
        }
        .rakko_ma_list .rakko_ma_see_more a:hover {
            text-decoration: none;
            opacity: 0.6;
        }
        .rakko_ma_list .rakko_ma_head {
            background-color:#f2f2f2;
            border-bottom: 1px solid #e0e0e0;
            color: #333;
            font-size: 20px;
            font-weight:bold;
            border-radius: 5px 5px 0px 0px;
            padding: 0px 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 62px;
        }
        .rakko_ma_list .rakko_ma_head p {
            line-height: 1.3;
            margin-left: 7px;
            padding: 8px 0;
        }
        .rakko_ma_list .rakko_ma_head .ma_rakko_img {
            max-width: 55px;
            align-self: flex-end;
        }
        .rakko_ma_list .rakko_ma_footer {
            border-radius: 0px 0px 5px 5px;
            border-top:1px solid #e0e0e0;
            background-color: #f2f2f2;
            display: flex;
            justify-content: space-between;
            padding: 8px 16px;
            font-size: 14px;
        }
        .rakko_ma_list .rakko_ma_footer span {
            color: #757575;
        }
        .rakko_ma_list .rakko_ma_footer a {
            text-decoration: none;
            color: #0d64cc;
        }
        .rakko_ma_list .rakko_ma_footer a:hover {
            text-decoration: underline;
        }
        .rakko_ma_list .icon_triborder {
            position: relative;
            display: block;
            padding-left: 17px;
            font-size: 16px;
        }
        .rakko_ma_list .icon_triborder::after {
            content: "";
            border-top: 2px solid #FFFFFF;
            border-right: 2px solid #FFFFFF;
            margin-top: -3.5px;
            height: 6px;
            width: 6px;
            position: absolute;
            top: 50%;
            right: 5%;
            -webkit-transform: rotate(45deg);
            transform: rotate(45deg);
        }

        @container rakko_ma_widget (min-width: 541px) and (max-width: 960px) {
            .rakko_ma_list .rakko_ma_body {
                margin: 24px;
            }
            .rakko_ma_list ul.rakko_ma_items {
                gap: 16px;
            }
            .rakko_ma_list ul.rakko_ma_items .rakko_ma_price {
                font-size: 15px;
            }
        }

        @container rakko_ma_widget (max-width: 540px) {
            .rakko_ma_list .rakko_ma_body {
                margin: 16px;
            }
            .rakko_ma_list ul.rakko_ma_items {
                grid-template-columns: repeat(2, minmax(0,1fr));
                gap: 12px;
            }
            .rakko_ma_list .rakko_ma_head {
                font-size: 16px;
                min-height: 44px;
                padding: 0 16px;
            }
            .rakko_ma_list .rakko_ma_head .ma_rakko_img {
                max-width: 40px;
                min-width: 40px;
            }
            .rakko_ma_list .rakko_ma_footer {
                flex-direction: column;
                text-align: right;
                font-size: 12px;
                gap: 4px;
            }
            .rakko_ma_list .icon_triborder {
                font-size: 14px;
            }
            .rakko_ma_list ul.rakko_ma_items .rakko_ma_price {
                font-size: 15px;
            }
        }
        @container rakko_ma_widget (max-width: 374px) {
            .rakko_ma_list .rakko_ma_head {
                font-size: 15px;
            }
        }
</style>

お悩みは解決しましたか?
この記事を読んでも解決しなかった場合は、右下の【AIに質問】ボタンからお気軽にご相談ください。