{"id":18678104,"url":"https://github.com/lovemo/smkpopdialog","last_synced_at":"2025-08-10T13:09:32.880Z","repository":{"id":86580365,"uuid":"148458284","full_name":"lovemo/SMKPopDialog","owner":"lovemo","description":"a awesome coustom js pop dialog；自适应屏幕通用活动弹框","archived":false,"fork":false,"pushed_at":"2018-09-12T10:30:43.000Z","size":235,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-18T13:49:55.527Z","etag":null,"topics":["alert","dialog","html5","jquery-plugin","jquery-ui","pop","popup-window","tip"],"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/lovemo.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-12T09:49:33.000Z","updated_at":"2018-09-12T10:41:05.000Z","dependencies_parsed_at":"2023-03-02T21:30:29.007Z","dependency_job_id":null,"html_url":"https://github.com/lovemo/SMKPopDialog","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lovemo/SMKPopDialog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovemo%2FSMKPopDialog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovemo%2FSMKPopDialog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovemo%2FSMKPopDialog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovemo%2FSMKPopDialog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lovemo","download_url":"https://codeload.github.com/lovemo/SMKPopDialog/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovemo%2FSMKPopDialog/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269728169,"owners_count":24465596,"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-08-10T02:00:08.965Z","response_time":71,"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":["alert","dialog","html5","jquery-plugin","jquery-ui","pop","popup-window","tip"],"created_at":"2024-11-07T09:36:01.168Z","updated_at":"2025-08-10T13:09:32.847Z","avatar_url":"https://github.com/lovemo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SMKPopDialog\na awesome coustom js pop dialog\n\n---\n\n![image](https://github.com/lovemo/SMKPopDialog/raw/master/demo.gif)\n\n### usage\n\n```js\n    /**\n     * 初始化\n     * options.bgColor 背景色\n     * options.width   宽度\n     * options.height  高度\n     * options.bgImage 背景图片\n     * options.bgClick 背景点击\n     * options.msg.text 弹框文字\n     * options.msg.fontSize 弹框文字大小\n     * options.msg.color    弹框文字颜色\n     * options.close.width  关闭宽度\n     * options.close.height 关闭高度\n     * options.close.image  关闭图片\n     * options.close.offset 关闭位置 lt:左上 lb:左下 rt:右上 rb:右下 tc:上中 bc:底中  l+/-x,t+/-x偏移位置\n     */\n    var pop = SMKPopDialog.init({\n        bgImage: './images/share.png',\n        bgClick: function() {\n            console.log('bg click ...')\n        },\n        msg: {\n            text   : '标题标题标题标题标题标题',\n            offest : 60,\n            fontSize: 15,\n            color: 'red'\n        },\n        container: {\n            html: '\u003cbutton class=\"pop-dialog-bottom-button pop-dialog-bottom-button—left\"\u003e确定\u003c/button\u003e' + \n                  '\u003cbutton class=\"pop-dialog-bottom-button pop-dialog-bottom-button—right\"\u003e取消\u003c/button\u003e'\n        },\n        close: {\n            offset: 'b-100,c',\n            image: './images/close.png',\n            width: 50,\n            callback: function() {\n                console.log('close ...')\n            }\n        }\n      \n    })\n\n    $('button').click(function() {\n        pop.show()\n    })\n\n    $('.pop-dialog-bottom-button—left').click(function() {\n        console.log('click left button')\n    })\n\n    $('.pop-dialog-bottom-button—right').click(function() {\n        console.log('click right button')\n    })\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flovemo%2Fsmkpopdialog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flovemo%2Fsmkpopdialog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flovemo%2Fsmkpopdialog/lists"}