{"id":14972243,"url":"https://github.com/keaukraine/bootstrap-fs-modal","last_synced_at":"2025-10-26T18:31:42.184Z","repository":{"id":119106822,"uuid":"96224617","full_name":"keaukraine/bootstrap-fs-modal","owner":"keaukraine","description":"A simple way to improve Bootstrap modals UX on mobile phones.","archived":false,"fork":false,"pushed_at":"2017-11-10T14:04:05.000Z","size":70,"stargazers_count":56,"open_issues_count":1,"forks_count":8,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-31T22:22:28.978Z","etag":null,"topics":["bootstrap","bootstrap-modal","bootstrap3","modal","responsive"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/keaukraine.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-07-04T14:07:02.000Z","updated_at":"2024-03-27T14:53:56.000Z","dependencies_parsed_at":"2023-07-16T05:16:03.200Z","dependency_job_id":null,"html_url":"https://github.com/keaukraine/bootstrap-fs-modal","commit_stats":{"total_commits":34,"total_committers":2,"mean_commits":17.0,"dds":"0.47058823529411764","last_synced_commit":"84f6ab562037d8c22587a97dce2374990d3b5d8b"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keaukraine%2Fbootstrap-fs-modal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keaukraine%2Fbootstrap-fs-modal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keaukraine%2Fbootstrap-fs-modal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keaukraine%2Fbootstrap-fs-modal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/keaukraine","download_url":"https://codeload.github.com/keaukraine/bootstrap-fs-modal/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238386104,"owners_count":19463299,"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","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":["bootstrap","bootstrap-modal","bootstrap3","modal","responsive"],"created_at":"2024-09-24T13:46:37.091Z","updated_at":"2025-10-26T18:31:41.804Z","avatar_url":"https://github.com/keaukraine.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bootstrap Mobile FullScreen Modal\nA simple way to improve UX of Bootstrap 3 modals on mobile phones.\n\n***Note**: Bootstrap 4 version of this plugin is available here - https://github.com/keaukraine/bootstrap4-fs-modal*\n\nRegular Bootstrap 3 modals (with a lot of content) on mobile devices can cause additional scrolling to get to the bottom buttons of modal.\n\nFullscreen modal provides more native user experience on mobile phones, here is side-by-side comparison of regular and fullscreen modals:\n\n![Regular Bootstrap Modal on Phone](http://i.imgur.com/Calp2Rb.gif)\n![Fullscreen Bootstrap Modal on Phone](http://i.imgur.com/uIWVS1Q.gif)\n\nFullscreen modal does not affect modals in large viewports, and applies these styles only on mobile devices.\n\nLive demo page is here - https://keaukraine.github.io/bootstrap-fs-modal/\n\n## How to Use\n\nYou can obtain plugin either from GitHub or from npm, package name is `bootstrap-fs-modal`.\n\nFirst, include CSS and JS from `dist` folder:\n\n```html\n\u003clink href=\"dist/css/fs-modal.min.css\" rel=\"stylesheet\"\u003e\n...\n\u003cscript src=\"dist/js/fs-modal.min.js\"\u003e\u003c/script\u003e\n```\n\nThen, you have to add CSS class `modal-fullscreen` to modals which you want to work full-screen.\n\nPlugin can create either text or icon buttons.\nFor buttons to appear as icons, you will need to make a little modification of HTML. Plugin processes all buttons in footer except the ones with `data-dismiss=\"modal\"` attribute (close button, which will be always added automatically), and adds them either as text or as icon button. Icon for button can be either Glyphicon of Font Awesome icon and is set by `data-glyphicon` or `data-faicon` attribute. If one of these attributes is set, it will add button with provided icon. If icon attribute is not set or empty, it will create text button instead. Plugin will try to apply short text by looking for short button text in `data-mobile-text` attribute and falling back to button text if attribute is not set.\n\nExample:\n\n```html\n\u003cdiv class=\"modal fade modal-fullscreen\" id=\"modal\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"modalLabel\"\u003e\n...\n\u003cdiv class=\"modal-footer\"\u003e\n  \u003cbutton type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\"\u003eCancel\u003c/button\u003e \u003c!-- will be skipped --\u003e\n  \u003cbutton type=\"button\" class=\"btn btn-default\" data-glyphicon=\"glyphicon-refresh\"\u003eReload Data\u003c/button\u003e \u003c!-- Glyphicon button --\u003e\n  \u003cbutton type=\"button\" id=\"btnTestSettingsFAButtons\" class=\"btn btn-default\" data-faicon=\"fa-cog\"\u003eSettings\u003c/button\u003e \u003c!-- Font Awesome icon button --\u003e\n  \u003cbutton type=\"button\" id=\"btnTestRefreshTextButtons\" class=\"btn btn-default\" data-mobile-text=\"Reload\"\u003eReload Data\u003c/button\u003e \u003c!-- text button with short text --\u003e\n  \u003cbutton type=\"button\" id=\"btnTestSaveTextButtons\" class=\"btn btn-default btn-primary\"\u003eSave\u003c/button\u003e \u003c!-- text button with default text --\u003e\n\u003c/div\u003e\n```\n\nThat's all you need. JS automatically tracks `show.bs.modal` events and duplicates all buttons to modal header, wiring `click` events to original buttons.\n\n\n## Used Libraries\n* Twitter Bootstrap used under the MIT License https://github.com/twbs/bootstrap/blob/master/LICENSE\n* jQuery used under the MIT license https://jquery.org/license/\n\n\n## License\n\n**The MIT License**\n\nCopyright (c) 2017 Oleksandr Popov\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeaukraine%2Fbootstrap-fs-modal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkeaukraine%2Fbootstrap-fs-modal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeaukraine%2Fbootstrap-fs-modal/lists"}