{"id":15801587,"url":"https://github.com/garrettmac/ionic-super-popup","last_synced_at":"2026-04-06T04:31:49.224Z","repository":{"id":58230154,"uuid":"66887888","full_name":"garrettmac/ionic-super-popup","owner":"garrettmac","description":null,"archived":false,"fork":false,"pushed_at":"2018-12-09T01:19:28.000Z","size":1732,"stargazers_count":3,"open_issues_count":2,"forks_count":4,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-02-01T12:29:17.818Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CSS","has_issues":true,"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/garrettmac.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-08-29T23:18:19.000Z","updated_at":"2018-12-09T01:19:30.000Z","dependencies_parsed_at":"2022-08-31T09:21:55.843Z","dependency_job_id":null,"html_url":"https://github.com/garrettmac/ionic-super-popup","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/garrettmac/ionic-super-popup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garrettmac%2Fionic-super-popup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garrettmac%2Fionic-super-popup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garrettmac%2Fionic-super-popup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garrettmac%2Fionic-super-popup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/garrettmac","download_url":"https://codeload.github.com/garrettmac/ionic-super-popup/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garrettmac%2Fionic-super-popup/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31268586,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T05:46:55.838Z","status":"ssl_error","status_checked_at":"2026-04-01T05:46:47.827Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-05T01:23:14.487Z","updated_at":"2026-04-06T04:31:49.210Z","avatar_url":"https://github.com/garrettmac.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ionic Super Popup\n\nA stylized alternative to using $ionicPopup with three themes: Twitter, Facebook, Google and The default Ionic Super Theme.\n\n## Demo\nSee Demo with Ionic view app id: af790a5d\n\n\nOr an youtube clip can be seen here: http://imgur.com/a/y3r2H\n\n\n\n## Add to Project\n1. Add ionic-super-popup folder to your `lib/` folder\n\n2. In your `index.html` add:\n\n        \u003cscript src=\"lib/ionic-super-popup/dist/ionic-super-popup.js\"\u003e\u003c/script\u003e\n        \u003clink href=\"lib/ionic-super-popup/dist/ionic-super-popup.css\" rel=\"stylesheet\"\u003e\n     \n\n\n\n3. In your `app.js` add `'cera.ionicSuperPopup'`:\n\n        angular.module('starter', ['ionic','cera.ionicSuperPopup'])\n        \n\n\n\n## How to use Twitter, Facebook or Google Theme\n\nInport the desired `.css` theme below your `ionic-super-popup.css` theme.\n\n\t   \u003cscript src=\"lib/ionic-super-popup/ionic-super-popup.js\"\u003e\u003c/script\u003e\n       \u003clink href=\"lib/ionic-super-popup/ionic-super-popup.css\" rel=\"stylesheet\"\u003e\n       \n       \u003c!-- ADD HERE --\u003e\n       \u003clink href=\"lib/ionic-super-popup/addon-theme/twitter/twitter.css\" rel=\"stylesheet\"\u003e\n    \u003c!-- \u003clink href=\"lib/ionic-super-popup/addon-theme/facebook/facebook.css\" rel=\"stylesheet\"\u003e --\u003e\n    \u003c!-- \u003clink href=\"lib/ionic-super-popup/addon-theme/google/google.css\" rel=\"stylesheet\"\u003e --\u003e\n\n## How to use Popups\n\n\n#### In your Controller inject `ionicSuperPopup`:\n              \n    .controller('PopupCtrl', function($scope,ionicSuperPopup) { \n\n\t\t$scope.showIonicSuperPopup=function(){\n\t\t\t\t\tionicSuperPopup.show(....);\n\t\t};\n\t\n\t})\n\n\n#### Basic Ionic Super Popup\n\nWith Header\n  \n\t\tionicSuperPopup.show(\"Basic Super Popup!\");\nWith Header and Text\n\t\t\n\t\tionicSuperPopup.show(\"Basic Super Popup!\", \"With some text here\");\n\n\n\n#### Ionic Super Popup Types\n\nSuccess:\n\n\t\tionicSuperPopup.show(\"Success!\", \"You have successfully did something!\", \"success\");\nWarning:\n\n\t\tionicSuperPopup.show(\"Warning!\", \"Now I'm warning you son!\", \"warning\");\n\nError:\n\t\t\n\t\tionicSuperPopup.show(\"Error!\", \"That was a bad thing you just did!\", \"error\");\n\n\n\n\n#### Ionic Super Popup Confirmarions\nw/ Success Popup:\n\n\tionicSuperPopup.show({\n      title: \"Are you sure?\",\n      text: \"This will do something!\",\n      type: \"warning\",\n      showCancelButton: true,\n      confirmButtonColor: \"#DD6B55\",\n      confirmButtonText: \"Yes, do that thing!\",\n      closeOnConfirm: false},\n      function(){\n          ionicSuperPopup.show(\"Nice Work!\", \"You totally just did something!\", \"success\");\n      });\n\n\nW/ Success \u0026 Cancel:\n\n \t ionicSuperPopup.show({\n      title: \"Are you sure?\",\n      text: \"This will do something again!\",\n      type: \"warning\",\n      showCancelButton: true,\n      confirmButtonColor: \"#DD6B55\",confirmButtonText: \"Yes, do that thing!\",\n      cancelButtonText: \"No, don't!\",\n      closeOnConfirm: false,\n      closeOnCancel: false },\n      function(isConfirm){\n        if (isConfirm) {\n          ionicSuperPopup.show(\"You did it!\", \"You totally just did something!\", \"success\");\n        } else {\n          ionicSuperPopup.show(\"Cancelled\", \"Pew, you totally didn't do anything!\", \"error\");\n        }\n   });\n  \n  Use custom image or gif:\n  \n    ionicSuperPopup.show({\n     title: \"Custom Super Popup!\",\n     text: \"OMG, I can do custom gifs?\",\n     imageUrl: \"http://i.imgur.com/NUyttbn.gif\" \n     });\n     \n#### Using inside nested modals (BUG IN Ionic versions 1.0.0-1.2.4)\nThere seems to be a bug in ionic versions 1.0.0-1.2.4 where any third party popups or modals you use that sit inside a nested ionic modal will be unresponsive. As Ionic is now working on Ionic V2 there will likley not be a fix for this. Instead I found a workaround. I just open and close a hidden modal before any third party modals or popups are used like so with an empty html page\n\n\n\n\t\t\t\n\t\t\n    $scope.showIonicSuperPopup=function(){\n     \n     //ADD THIS BEFORE\n     $ionicModal.fromTemplateUrl('workaround-modal.html', {\n       scope: $scope\n       }).then(function(modal) {\n       $scope.workaroundModal = modal;\n       $scope.workaroundModal.show();\n       $scope.workaroundModal.hide();\n    });\n\n\t\tionicSuperPopup.show(....);\n    };\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgarrettmac%2Fionic-super-popup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgarrettmac%2Fionic-super-popup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgarrettmac%2Fionic-super-popup/lists"}