{"id":16416652,"url":"https://github.com/javatmp/bootstrap-actionable","last_synced_at":"2026-02-15T00:30:50.170Z","repository":{"id":29923136,"uuid":"122940815","full_name":"JavaTMP/bootstrap-actionable","owner":"JavaTMP","description":"A small Javascript code that help implement click event actions for \u003ca\u003e and \u003cbutton\u003e tags by declarative way and provide functionalities to load AJAX content in Bootstrap Modal Wrapper instance.","archived":false,"fork":false,"pushed_at":"2022-12-01T23:18:06.000Z","size":516,"stargazers_count":0,"open_issues_count":13,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-28T22:36:27.886Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JavaTMP.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-26T08:51:32.000Z","updated_at":"2019-07-11T18:34:14.000Z","dependencies_parsed_at":"2023-01-14T15:56:11.094Z","dependency_job_id":null,"html_url":"https://github.com/JavaTMP/bootstrap-actionable","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JavaTMP/bootstrap-actionable","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JavaTMP%2Fbootstrap-actionable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JavaTMP%2Fbootstrap-actionable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JavaTMP%2Fbootstrap-actionable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JavaTMP%2Fbootstrap-actionable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JavaTMP","download_url":"https://codeload.github.com/JavaTMP/bootstrap-actionable/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JavaTMP%2Fbootstrap-actionable/sbom","scorecard":{"id":71315,"data":{"date":"2025-08-11","repo":{"name":"github.com/JavaTMP/bootstrap-actionable","commit":"bdabbf6d2d5e18999e9fbd8c4d83e7574913f254"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"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":"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":"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/25 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":"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":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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"}},{"name":"Vulnerabilities","score":0,"reason":"39 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-6chw-6frg-f759","Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-vc8w-jr9v-vj7f","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-897m-rjf5-jp39","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-4gmj-3p3h-gm8h","Warn: Project is vulnerable to: GHSA-3gx7-xhv7-5mx3","Warn: Project is vulnerable to: GHSA-8r6j-v8pm-fqw3","Warn: Project is vulnerable to: MAL-2023-462","Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-qqgx-2p2h-9c37","Warn: Project is vulnerable to: GHSA-gxr4-xjj5-5px2","Warn: Project is vulnerable to: GHSA-jpcq-cgw6-v4j6","Warn: Project is vulnerable to: GHSA-6c8f-qphg-qjgp","Warn: Project is vulnerable to: GHSA-jf85-cpcp-j695","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-3jfq-g458-7qm9","Warn: Project is vulnerable to: GHSA-r628-mhmh-qjhw","Warn: Project is vulnerable to: GHSA-9r2w-394v-53qc","Warn: Project is vulnerable to: GHSA-5955-9wpr-37jh","Warn: Project is vulnerable to: GHSA-qq89-hq3f-393p","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh","Warn: Project is vulnerable to: GHSA-p9pc-299p-vxgp"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-15T03:51:49.151Z","repository_id":29923136,"created_at":"2025-08-15T03:51:49.151Z","updated_at":"2025-08-15T03:51:49.151Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278297072,"owners_count":25963644,"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-04T02:00:05.491Z","response_time":63,"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":"2024-10-11T07:09:46.840Z","updated_at":"2025-10-04T10:10:47.549Z","avatar_url":"https://github.com/JavaTMP.png","language":"JavaScript","readme":"# Bootstrap Actionable\r\nA small Javascript code that help implement click event actions for a and button tags by declarative way\r\nand provide functionalities to load AJAX content in Bootstrap Modal Wrapper instance.\r\n\r\n## Installation Using NPM\r\n```\r\nnpm install bootstrap-actionable\r\n```\r\n\r\n## Building from The source\r\nMake sure node.js and git client are locally installed on your machine and then run the following commands:\r\n```\r\ncd bootstrap-actionable\r\nnpm install\r\ngulp\r\n```\r\n## Tutorial\r\n[Bootstrap Actionable plugin](https://github.com/JavaTMP/bootstrap-actionable) is a small Javascript code that help us implement\r\nclick actions for `\u003ca\u003e` and `\u003cbutton\u003e` tags by declarative way and provide functionalities to load AJAX content in Bootstrap Modal\r\nWrapper instance. The following are the main action types provided by the plugin:\r\n\r\n### `\"action-ref-href\"` Action Type\r\n\r\nThis is the simplest function of the plugin which fires other link's `click` event that contains the value of `href`'s attribute equal to provided one. We use this type on sidebar small shortcut `buttons` and on all `home.html`'s `buttons`. See the following button tags html code:\r\n```\r\n\u003cbutton class=\"btn btn-primary\"\r\n        actionType=\"action-ref-href\"\r\n        action-ref-by-href=\"pages/home.html\"\u003e\r\n    \u003ci class=\"fa fa-home fa-fw\"\u003e\u003c/i\u003e\r\n\u003c/button\u003e\r\n```\r\nPressing the above button will make actionable code search for link with value `\"pages/home.html\"` in its `href` attribute and then fire a `click` event on it.\r\n\r\nAnother button code example from `home.html` page:\r\n```\r\n\u003cbutton type=\"button\" class=\"javatmp-btn btn btn-primary btn-block my-2\"\r\n        actionType=\"action-ref-href\"\r\n        actionScope=\".sidebar\"\r\n        action-ref-by-href=\"pages/custom-pages/login-pages/default-login-page.html\" \u003e\r\n    \u003ci class=\"fa fa-file-o\"\u003e\u003c/i\u003e\r\n    Default Login Page\r\n\u003c/button\u003e\r\n```\r\nPressing the above button will make actionable code search for link value `\"pages/custom-pages/login-pages/default-login-page.html\"` in its `href` attribute in `.sidebar` div only as we explicitly set the `actionScope` attribute and because the link on sidebar contains target attribute the actionable plugin code will use `window.open` to open it. See the following code for target link in the sidebar:\r\n```\r\n\u003ca target=\"\\_blank\"  href=\"pages/custom-pages/login-pages/default-login-page.html\"\u003e\r\n    \u003ci class=\"fa fa-lg fa-fw fa-file-o\"\u003e\u003c/i\u003e\r\n    Default Login Page\r\n\u003c/a\u003e\r\n```\r\n\r\n### `\"action-ref\"` Action Type\r\nIt is similar to `\"action-ref-href\"` but instead of using URL to search for value of `href` attribute, it uses an alias name to search for. See the following code for `\"Compose Message\"` and `\"View Message\"` sidebar link in `index.html` page:\r\n```\r\n\u003cli\u003e\r\n    \u003ca action-name=\"compose-page\" href=\"pages/custom-pages/inbox/compose-message.html\"\u003e\r\n        \u003ci class=\"fa fa-lg fa-fw fa-file-o\"\u003e\u003c/i\u003e\r\n        Compose Message\r\n    \u003c/a\u003e\r\n\u003c/li\u003e\r\n\u003cli\u003e\r\n    \u003ca action-name=\"view-message\" href=\"pages/custom-pages/inbox/view-message.html\"\u003e\r\n        \u003ci class=\"fa fa-lg fa-fw fa-file-o\"\u003e\u003c/i\u003e\r\n        View Message\r\n    \u003c/a\u003e\r\n\u003c/li\u003e\r\n```\r\nAnd see the following tags from `./web/pages/custom-pages/inbox/inbox-messages.html` file:\r\n```\r\n\u003cbutton\r\n    type=\"button\"\r\n    actionType=\"action-ref\"\r\n    action-ref-by-name=\"compose-page\"\r\n    class=\"btn btn-danger btn-block actionable\"\u003e\r\n    Compose\r\n\u003c/button\u003e\r\n\u003ca\r\n    actionType=\"action-ref\"\r\n    action-ref-by-name=\"view-message\"\r\n    alt=\"\"\r\n    href=\"\"\u003e\r\n    Customer Support\r\n\u003c/a\u003e\r\n```\r\n\r\n### `\"ajax-request-in-model\"` action type\r\nThis action type is very powerful and it fires an AJAX request using href URL and load its contents in [Bootstrap Modal Wrapper](/pages/javatmp-bootstrap-modal-wrapper \"JavaTMP Bootstrap Modal Wrapper Plugin\") instance and give the control to the modal. Example links are the message links in dropdown menu items in main navbar in `index.html` page:\r\n```\r\n\u003ca actionType=\"ajax-request-in-model\"\r\n   href=\"pages/custom-pages/inbox/ajax/ajax-view-message.html\"\r\n   class=\"list-group-item list-group-item-action\"\u003e\r\n    \u003cdiv\u003e\r\n        \u003cstrong\u003eJohn Smith\u003c/strong\u003e\r\n        \u003cspan class=\"float-right text-muted\"\u003e\r\n            \u003cem\u003eYesterday\u003c/em\u003e\r\n        \u003c/span\u003e\r\n    \u003c/div\u003e\r\n    \u003cdiv\u003eLorem ipsum dolor sit amet adipis dolor sit elit ipsum dolor sit elit ...\u003c/div\u003e\r\n\u003c/a\u003e\r\n```\r\nPressing the above link will make actionable invokes the following method:\r\n```\r\nBootstrapModalWrapperFactory.createAjaxModal({\r\n    message: $this.options.loadingHtml,\r\n    ajaxContainerReadyEventName: $this.options.ajaxContainerReady,\r\n    ajax : {\r\n        url: href\r\n    }\r\n});\r\n```\r\nThe following HTML code is the response of above AJAX request:\r\n```\r\n\u003cdiv class=\"dynamic-ajax-content\"\u003e\r\n    ...\r\n    \u003cscript type=\"text/javascript\"\u003e\r\n        jQuery(function ($) {\r\n\r\n            // here we can reference the container bootstrap modal by its id\r\n            // passed as parameter to request by name \"ajaxModalId\"\r\n            // or for demo purposese ONLY we can get a reference top modal\r\n            // in current open managed instances in BootstrapModalWrapperFactory\r\n            var currentParentModal = BootstrapModalWrapperFactory.globalModals\\[BootstrapModalWrapperFactory.globalModals.length - 1\\];\r\n\r\n            $(\"#\" + currentParentModal.options.id).on(javatmp.settings.javaTmpAjaxContainerReady, function (event, modal) {\r\n                modal.updateSize(\"modal-lg\");\r\n                modal.updateTitle(\"View Message\");\r\n                modal.updateClosable(true);\r\n                modal.addButton({\r\n                    label: \"Close\",\r\n                    cssClass: \"btn btn-primary\",\r\n                    action: function (button, buttonData, originalEvent) {\r\n                        return this.hide();\r\n                    }\r\n                });\r\n            });\r\n        });\r\n    \u003c/script\u003e\r\n\u003c/div\u003e\r\n```\r\n\r\n## Copyright and License\r\nbootstrap-actionable is copyrighted by [JavaTMP](http://www.javatmp.com) and licensed under [MIT license](https://github.com/JavaTMP/bootstrap-actionable/blob/master/LICENSE).\r\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjavatmp%2Fbootstrap-actionable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjavatmp%2Fbootstrap-actionable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjavatmp%2Fbootstrap-actionable/lists"}