{"id":25759603,"url":"https://github.com/maechabin/jquery-overlayad-js","last_synced_at":"2025-10-07T11:21:27.392Z","repository":{"id":57317029,"uuid":"56422442","full_name":"maechabin/jquery-overlayad-js","owner":"maechabin","description":"バナー広告をページの下部または上部に「固定（オーバーレイ）表示」させるためのjQueryプラグイン","archived":false,"fork":false,"pushed_at":"2016-03-28T10:54:25.000Z","size":2301,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-09T01:56:10.635Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":false,"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-04-17T06:30:19.000Z","updated_at":"2018-06-17T05:56:15.000Z","dependencies_parsed_at":"2022-08-25T20:00:51.038Z","dependency_job_id":null,"html_url":"https://github.com/maechabin/jquery-overlayad-js","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/maechabin/jquery-overlayad-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maechabin%2Fjquery-overlayad-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maechabin%2Fjquery-overlayad-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maechabin%2Fjquery-overlayad-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maechabin%2Fjquery-overlayad-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maechabin","download_url":"https://codeload.github.com/maechabin/jquery-overlayad-js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maechabin%2Fjquery-overlayad-js/sbom","scorecard":{"id":610658,"data":{"date":"2025-08-11","repo":{"name":"github.com/maechabin/jquery-overlayad-js","commit":"bc7ed81348a2da82f8d2e7e90e3f985bee161fad"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"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":"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":"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":"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":"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":"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":"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":"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":"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":"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":"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":"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:28.563Z","repository_id":57317029,"created_at":"2025-08-21T02:34:28.564Z","updated_at":"2025-08-21T02:34:28.564Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278763169,"owners_count":26041509,"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-10-07T02:00:06.786Z","response_time":59,"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":[],"created_at":"2025-02-26T17:36:48.674Z","updated_at":"2025-10-07T11:21:27.358Z","avatar_url":"https://github.com/maechabin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jquery-overlayad-js\n\nバナー広告をページの下部または上部に`「固定（オーバーレイ）表示」`させるためのjQueryプラグイン。\n\n## About\n\nオーバーレイ表示とは、ページの上部または下部にバナー広告を固定して表示させるスタイルです。画面をスクロールしても常に表示され続けるため、クリック率が高くなります。`300×50`や`320×50`のバナーを使って実装するのが一般的です。当プラグインを使うとバナー広告のオーバーレイ表示を手軽に実装することができます。\n\nまた当プラグインでは、スマホでの表示を想定して画面サイズよりもバナーサイズが大きい場合や小さい場合の表示補助機能を用意しています。画面サイズがバナーサイズよりも大きかった場合に生じる余計なスペースの`クリック領域化`、画面サイズがバナーサイズよりも小さかった場合の`リキッド表示`、`トリミング表示`に対応しています。\n\n主にアフィリエイトサービスの広告を使用することを想定しているので、アフィリエイトサービスからそのまま広告をコピーして実装できるようになっています。\n\n## Demo\n\n[http://support.moba8.net/tools/overlayad/demo.html](http://support.moba8.net/tools/overlayad/demo.html)\n\n## Download\n\nこちらのページから[ダウンロード](https://github.com/maechabin/jquery-overlayad-js/archive/master.zip)するか、`[git clone]`コマンドでローカルにコピーします。\n\n```\n$ git clone git@github.com:maechabin/jquery-overlayad-js.git 任意のディレクトリ名\n```\n\nnpm経由でも入手可能です。\n\n```\n$ npm install --save overlayad\n```\n\n機能の実装に使用するファイルは以下のjsファイルとなります。\n- ./dist/jquery.overlayad.js\n\n\n## Usage\n\n### 1. jQueryと当プラグインの読み込み\n\njQuery本体とdistディレクトリ内の「jquery.overlayad.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.overlayad.js\"\u003e\u003c/script\u003e\n```\n\n### 2. オーバーレイ広告を表示させる要素を準備\n\nhtmlファイル内にオーバーレイ広告を表示させる要素を作成し、任意のclass名またはid名を付けます。\n\n```html\n\u003cdiv class=\"overlay-images\"\u003e\n\n\u003c/div\u003e\n```\n\n作成した要素に対して、以下のスタイルを指定します。（ページ表示時に、設定した広告の画像が表示されるのを防ぐためです。）\n```css\n.overlay-images {\n  display: none;\n}\n```\n\n### 3. スライドショーさせる広告を設定\n\n上記で作成した要素内にスライドショーさせる広告タグ（リンク, 画像[, インプレッション計測用画像]）を順に貼り付けます。貼り付けた順番にスライドショーが実行されます。貼り付ける広告の数に制限はありません。（貼り付ける広告の画像はできるだけ同じサイズのものとすることを推奨します）\n\n```html\n\u003cdiv class=\"overlay-imagess\"\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/div\u003e\n```\n\n設定する広告タグは以下の形式（`img要素`を持った`a要素`）となります。a要素には必ずhref属性、img要素にはwidth属性、height属性を設定するようにしてください（width属性、height属性がないと画像の表示サイズに不具合が生じる場合があります）。インプレッションを計測するためのimg要素はあってもなくても問題ありません。（多くのアフィリエイトサービスの広告タグは以下の形式となっていることが多いです）\n\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で作成した要素に対して、`.overlayAd()`メソッドを実行します。\n\n```javascript\n$('.overlay-images').overlayAd();\n```\n\n\n## Options\n\n**position {String}**\nオーバーレイ表示させる際の固定箇所を指定します。ページ上部に固定させる場合は`top`、ページ下部に固定させる場合は`bottom`を指定します。デフォルト値は`bottom`。\n\n**mobileStyle {String}**\nページを狭めた際に、ページの横幅のサイズが表示している広告の画像よりも小さくなった場合の画像の表示スタイルを指定します。ページサイズに合わせて画像を縮小させる（アスペクト比は維持されます）場合は'responsive'、ページ中央のポジションを保ったままトリミングさせる場合は`trimming`を指定します。デフォルト値は`responsive`。\n\n**targetBlank {Boolean}**\nリンク先を別ウィンドウで表示するかしないか指定します。trueにするとリンク先を別ウィンドウで表示します。デフォルト値は`false`。\n\n**backgroundStyle {Boolean}**\nページの横幅のサイズが、表示している広告の画像サイズよりも大きい場合、画像の両脇に余計なスペースが生じます。こちらのオプションの値を`true`の場合、画像の両脇の余計なスペースを背景色で埋め、クリック可能な領域に変更します。デフォルト値は`true`。\n\n**backgroundColor {String}**\n上記のbackgroundStyleを`ture`に設定した場合に設定される背景色を指定します。CSSでbackground-colorに指定できる値で指定します。デフォルト値は`rgba(1,1,1 ,1)`。\n\nオプションの指定方法は以下の通りです。overlayAd()メソッドの引数にオブジェクトリテラル形式でオプションを指定します。\n\n```javascript\n// ページ上部に固定し、ページを狭めるとトリミング表示、\n// リンク先は別ウィンドウで表示、背景なし（余白あり）\n$('.overlay-images').overlayAd({\n  'position': 'top',\n  'mobileStyle': 'trimming',\n  'targetBlank': true,\n  'backgroundStyle': false,\n  'backgroundColor': 'none'\n});\n```\n\n## License\n\nMit License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaechabin%2Fjquery-overlayad-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaechabin%2Fjquery-overlayad-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaechabin%2Fjquery-overlayad-js/lists"}