{"id":16416630,"url":"https://github.com/angeal185/jquery-prompt","last_synced_at":"2026-05-05T01:40:55.646Z","repository":{"id":57282288,"uuid":"182357220","full_name":"angeal185/jquery-prompt","owner":"angeal185","description":"jquery prompt plugin for electron and the browser","archived":false,"fork":false,"pushed_at":"2020-05-11T00:58:17.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-07T10:08:14.161Z","etag":null,"topics":["browser","electron","jquery","plugin","prompt"],"latest_commit_sha":null,"homepage":"https://angeal185.github.io/jquery-prompt/","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/angeal185.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":"2019-04-20T03:54:54.000Z","updated_at":"2020-05-11T00:58:12.000Z","dependencies_parsed_at":"2022-09-12T21:21:51.320Z","dependency_job_id":null,"html_url":"https://github.com/angeal185/jquery-prompt","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angeal185%2Fjquery-prompt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angeal185%2Fjquery-prompt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angeal185%2Fjquery-prompt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angeal185%2Fjquery-prompt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/angeal185","download_url":"https://codeload.github.com/angeal185/jquery-prompt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240466791,"owners_count":19805862,"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":["browser","electron","jquery","plugin","prompt"],"created_at":"2024-10-11T07:09:42.927Z","updated_at":"2026-05-05T01:40:50.607Z","avatar_url":"https://github.com/angeal185.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jquery-prompt\njquery prompt plugin for electron and the browser.\n\ndemo: https://angeal185.github.io/jquery-prompt/\n\n### Installation\n\nnpm\n\n```sh\n$ npm install jquery-prompt\n```\n\n#### electron\nensure jquery is installed.\n```js\nrequire('jquery-prompt');\n```\n```html\n\u003clink rel=\"stylesheet\" href=\"./dist/css/jq-prompt.min.css\"\u003e\n```\n\n#### browser\n\n```html\n\u003clink rel=\"stylesheet\" href=\"./dist/css/jq-prompt.min.css\"\u003e\n\u003cscript src=\"./dist/js/jq-prompt.min.js\"\u003e\n```\n\n### info\n\n\n```js\n// prompt string defaults\n{\n  header: 'prompt', //header text\n  type: 'text', //input type\n  speed: 'fast', //animation speed\n  placeholder: 'cannot be empty', //placeholder text\n  cBtn: 'Cancel', //cancel button text\n  sBtn: 'Submit', //submit button text\n  error: 'cannot be empty' //error msg text\n}\n\n// prompt boolean defaults\n{\n    header: 'prompt', //header text\n    speed: 'fast', //animation speed\n    cBtn: 'Cancel', //cancel button text\n    sBtn: 'Submit' //submit button text\n}\n//demo\n\n// set global prompt string defaults\n$.xPrompt.defaults = {\n  placeholder: \"test\",\n  error: \"error\"\n};\n\n// set global prompt boolean defaults\n$.xPromptQ.defaults = {\n  speed: 'slow'\n};\n\n//prompt string demo\n//$.xPrompt(options,callback)\n\n$('.ptest').on('click', function(){\n  $.xPrompt({header: 'header', placeholder: 'enter text'}, function(i){\n    // do something with string\n    console.log(i)\n  })\n})\n\n//prompt boolean demo\n//$.xPromptQ(options,callback)\n\n$('.ptestQ').on('click', function(){\n  $.xPromptQ({header: 'are you sure'}, function(i){\n    // do something with boolean\n    console.log(i)\n  })\n})\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fangeal185%2Fjquery-prompt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fangeal185%2Fjquery-prompt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fangeal185%2Fjquery-prompt/lists"}