{"id":25759607,"url":"https://github.com/maechabin/cb-slideshowad-js","last_synced_at":"2026-05-08T03:07:00.283Z","repository":{"id":57363142,"uuid":"54218991","full_name":"maechabin/cb-slideshowad-js","owner":"maechabin","description":"複数のバナー広告を組み合わせてスライドショー動画広告を実装するためのjQueryプラグイン","archived":false,"fork":false,"pushed_at":"2016-06-29T17:48:59.000Z","size":573,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-08T21:09:54.362Z","etag":null,"topics":["ads","jquery","jquery-plugin","npm"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maechabin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-18T17:18:36.000Z","updated_at":"2018-08-06T23:54:08.000Z","dependencies_parsed_at":"2022-09-06T09:41:17.165Z","dependency_job_id":null,"html_url":"https://github.com/maechabin/cb-slideshowad-js","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/maechabin/cb-slideshowad-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maechabin%2Fcb-slideshowad-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maechabin%2Fcb-slideshowad-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maechabin%2Fcb-slideshowad-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maechabin%2Fcb-slideshowad-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maechabin","download_url":"https://codeload.github.com/maechabin/cb-slideshowad-js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maechabin%2Fcb-slideshowad-js/sbom","scorecard":{"id":610656,"data":{"date":"2025-08-11","repo":{"name":"github.com/maechabin/cb-slideshowad-js","commit":"2614c347922eac5f020a7d39cc728edfd9953086"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-21T02:34:26.850Z","repository_id":57363142,"created_at":"2025-08-21T02:34:26.850Z","updated_at":"2025-08-21T02:34:26.850Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":285548619,"owners_count":27190488,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-11-21T02:00:06.175Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ads","jquery","jquery-plugin","npm"],"created_at":"2025-02-26T17:36:54.935Z","updated_at":"2025-11-21T03:04:51.549Z","avatar_url":"https://github.com/maechabin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cb-slideshowad-js\n\n複数のバナー広告を組み合わせて`「スライドショー動画広告」`を実装するためのjQueryプラグイン。\n\n## About\n\n複数のバナー広告を組み合わせることによって、動画のように見せるスライドショー動画広告を手軽に実装できます。広告をリッチに見せることができ、広告のクリック率を向上させることができます。また静止画像では実現できなかった広告にストーリーを持たせるということが可能となり広告の訴求力を高めます。\n\n`「フェイドインフェイドアウト」`、`「フリップ（縦 / 横）」`、`「スライド（前 / 後 / 左 / 右）」`の3種類のスライドショータイプに対応しています（デフォルトはフェイドインフェイドアウトタイプ）。\n\n主にアフィリエイトサービスの広告を使用することを想定しているので、アフィリエイトサービスからそのまま広告をコピーして実装できるようになっています。\n\n\n## Demo\n\n[https://maechabin.github.io/cb-slideshowad-js/](https://maechabin.github.io/cb-slideshowad-js/)\n\n## Download\n\nこちらのページから[ダウンロード](https://github.com/maechabin/cb-slideshowad-js/archive/master.zip)するか、`[git clone]`コマンドでローカルにコピーします。\n\n```\n$ git clone git@github.com:maechabin/cb-slideshowad-js.git 任意のディレクトリ名\n```\n\nnpm経由でも入手可能です。\n\n```\n$ npm install --save slideshowad\n```\n\n\n機能の実装に使用するファイルは以下のjsファイルとなります。\n- ./dist/jquery.slideshowad.js\n\n## Usage\n\n### 1. jQueryと当プラグインの読み込み\n\njQuery本体とdistディレクトリ内の「jquery.slideshowad.js」をページに読み込みます。\n\n```html\n\u003cscript src=\"https://code.jquery.com/jquery-1.12.0.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"./dist/jquery.slideshowad.js\"\u003e\u003c/script\u003e\n```\n\n### 2. スライドショー動画広告を表示させる要素を準備\n\nhtmlファイル内にスライドショー動画広告を表示させる要素を作成し、任意のclass名またはid名を付けます。\n\n```html\n\u003cdiv class=\"slideshowad-images\"\u003e\n\n\u003c/div\u003e\n```\n\n作成した要素に対して、以下のスタイルを指定します。（ページ表示時に、設定した広告の画像が表示されるのを防ぐためです。）\n```css\n.slideshowad-images {\n  display: none;\n}\n```\n\n### 3. スライドショーさせる広告を設定\n\n上記で作成した要素内にスライドショーさせる広告タグ（リンク, 画像[, インプレッション計測用画像]）を順に貼り付けます。貼り付けた順番にスライドショーが実行されます。貼り付ける広告の数に制限はありません。（貼り付ける広告の画像はできるだけ同じサイズのものとすることを推奨します）\n\n```html\n\u003cdiv class=\"slideshowad-images\"\u003e\n  \u003c!-- 1つ目の広告 --\u003e\n  \u003ca href=\"http://example.com/\"\u003e\n    \u003cimg src=\"http://exapmle.com/example1.png\" width=\"300\" height=\"200\"\u003e\n  \u003c/a\u003e\n  \u003cimg src=\"http://example.com/img1.gif\" width=\"1\" height=\"1\"\u003e\n  \u003c!-- 2つ目の広告 --\u003e\n  \u003ca href=\"http://example.com/\"\u003e\n    \u003cimg src=\"http://exapmle.com/example2.png\" width=\"300\" height=\"200\"\u003e\n  \u003c/a\u003e\n  \u003cimg src=\"http://example.com/img2.gif\" width=\"1\" height=\"1\"\u003e\n  \u003c!-- 3つ目の広告 --\u003e\n  \u003ca href=\"http://example.com/\"\u003e\n    \u003cimg src=\"http://exapmle.com/example3.png\" width=\"300\" height=\"200\"\u003e\n  \u003c/a\u003e\n  \u003cimg src=\"http://example.com/img3.gif\" width=\"1\" height=\"1\"\u003e\n\u003c/div\u003e\n```\n\n設定する広告タグは以下の形式（`img要素`を持った`a要素`）となります。a要素には必ずhref属性、img要素にはwidth属性、height属性を設定するようにしてください（width属性、height属性がないと画像の表示サイズに不具合が生じる場合があります）。インプレッションを計測するためのimg要素はあってもなくても問題ありません。（多くのアフィリエイトサービスの広告タグは以下の形式となっていることが多いです）\n```html\n\u003c!-- スライドショーの対象となる広告タグの形式 --\u003e\n\n\u003c!-- 広告の飛び先URL（href属性必須） --\u003e\n\u003ca href=\"http://example.com/\"\u003e\n    \u003c!-- 広告の画像（width属性/height属性必須） --\u003e\n  \u003cimg src=\"http://exapmle.com/example.png\" width=\"300\" height=\"200\"\u003e\n\u003c/a\u003e\n\u003c!-- インプレッション計測用のimg要素（任意） --\u003e\n\u003cimg src=\"http://example.com/img.gif\" width=\"1\" height=\"1\"\u003e\n```\n\n### 4. プラグインを実行\n\nステップ2で作成した要素に対して、`.slideShowAd()`メソッドを実行します。\n\n```javascript\n$('.slideshowad-images').slideShowAd();\n```\n\n## Option\n\n**slideShowType {String}**\nスライドショー動画広告のスライドショーのタイプを以下より指定します。デフォルト値は、`fade`。\n- `'fade'`: フェイドインフェイドアウト\n- `'flipY'`: Y軸を軸に横方向へのフリップ\n- `'flipX'`: X軸を軸とする縦方向のフリップ\n- `'slideLeft'`: 左から右へのスライド\n- `'slideRight'`: 右から左へのスライド\n- `'slideTop'`: 上から下へのスライド\n- `'slideBottom'`: 下から上へのスライド\n- `'none'`: エフェクトなしのスライドショー\n\n**width {String}**\nスライドショー動画広告を表示させる要素の「幅」を指定します。CSSでwidthに指定できる値で指定します。デフォルト値は、1つ目の広告として貼り付けた画像のサイズの幅となります。\n\n**height {String}**\nスライドショー動画広告を表示させる要素の「高さ」を指定します。CSSでheightに指定できる値で指定します。デフォルト値は、1つ目の広告として貼り付けた画像のサイズの高さとなります。\n\n**interval {Number}**\nスライドショーの間隔を指定します。数値（単位はミリ秒)で指定します。デフォルト値は`5000`（5秒）。\n\n**targetBlank {Boolean}**\nリンク先を別ウィンドウで表示するかしないか指定します。trueにするとリンク先を別ウィンドウで表示します。デフォルト値は`false`。\n\nオプションの指定方法は以下の通りです。slideShowAd()メソッドの引数にオブジェクトリテラル形式でオプションを指定します。\n```javascript\n// 幅300px、高さ250px、スライドショーの間隔を8秒に設定\n$('.slideshowad-images').slideShowAd({\n  'width': '300px',\n  'height': '250px',\n  'interval': '8000'\n});\n\n// スライドショータイプを横方向のフリップタイプ、リンク先を別ウィンドウで表示させる設定\n$('.slideshowad-images').slideShowAd({\n  'slideShowType': 'flipY',\n  'targetBlank': true\n});\n```\n\n## 対応ASP（アフィリエイトサービス）一覧\n\nそのまま管理画面から広告タグをコピーして使えるアフィリエイトサービスの一覧です（調査中）。\n\n[A8.net](http://px.a8.net/svt/ejp?a8mat=2BYLM2+1C85JU+0K+10H0IQ) / [Moba8.net](http://px.moba8.net/svt/ejp?a8mat=2BU3YH+AFOK9M+3NY+6HU7L\u0026guid=on) / [リンクシェア](http://www.linkshare.ne.jp/scland/mgm/?id=69Bb10/Y2MU) / [TGアフィリエイト](https://www.trafficgate.net/) / [Amazonアソシエイト](https://affiliate.amazon.co.jp/gp/associates/network/main.html)\n\n## License\n\nMit License\n\n## Update\n\n### v1.3.4\n- slideShowTypeオプションに`none`を追加。\n\n### v1.3.0\n- オプションにスライドタイプ（前 / 後 / 左 / 右）を追加。\n\n### v1.2.5\n- X軸を軸とする縦方向のフリップタイプに対応。それに伴いflipタイプのオプションの指定方法に変更あり。\n\n### v1.2.0\n- オプションにslideShowTypeを追加し、横方向へのフリップタイプのスライドショーに対応\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaechabin%2Fcb-slideshowad-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaechabin%2Fcb-slideshowad-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaechabin%2Fcb-slideshowad-js/lists"}