From f17a230ebe346e14ed9e41993db91473423a8f55 Mon Sep 17 00:00:00 2001 From: 1bl4z3r <34515568+1bl4z3r@users.noreply.github.com> Date: Tue, 14 May 2024 21:36:21 +0530 Subject: [PATCH] Action deployment --- .github/workflows/deployment.yml | 45 +++++++ .../android-chrome-144x144.png | Bin .../android-chrome-192x192.png | Bin .../android-chrome-256x256.png | Bin .../android-chrome-36x36.png | Bin .../android-chrome-48x48.png | Bin .../android-chrome-72x72.png | Bin .../android-chrome-96x96.png | Bin .../apple-touch-icon-120x120-precomposed.png | Bin .../apple-touch-icon-120x120.png | Bin .../apple-touch-icon-152x152-precomposed.png | Bin .../apple-touch-icon-152x152.png | Bin .../apple-touch-icon-180x180-precomposed.png | Bin .../apple-touch-icon-180x180.png | Bin .../apple-touch-icon-60x60-precomposed.png | Bin .../apple-touch-icon-60x60.png | Bin .../apple-touch-icon-76x76-precomposed.png | Bin .../apple-touch-icon-76x76.png | Bin .../apple-touch-icon-precomposed.png | Bin .../apple-touch-icon.png | Bin {site/identity => identity}/browserconfig.xml | 0 {site/identity => identity}/favicon-16x16.png | Bin {site/identity => identity}/favicon-32x32.png | Bin {site/identity => identity}/favicon.ico | Bin {site/identity => identity}/favicon.png | Bin {site/identity => identity}/favicon.svg | 0 .../identity => identity}/mstile-150x150.png | Bin .../identity => identity}/mstile-310x150.png | Bin .../identity => identity}/mstile-310x310.png | Bin {site/identity => identity}/mstile-70x70.png | Bin .../safari-pinned-tab.svg | 0 {site/identity => identity}/site.webmanifest | 0 site/CountryCodes.json | 1 - site/index.css | 1 - site/index.html | 1 - site/index.js | 122 ------------------ 36 files changed, 45 insertions(+), 125 deletions(-) create mode 100644 .github/workflows/deployment.yml rename {site/identity => identity}/android-chrome-144x144.png (100%) rename {site/identity => identity}/android-chrome-192x192.png (100%) rename {site/identity => identity}/android-chrome-256x256.png (100%) rename {site/identity => identity}/android-chrome-36x36.png (100%) rename {site/identity => identity}/android-chrome-48x48.png (100%) rename {site/identity => identity}/android-chrome-72x72.png (100%) rename {site/identity => identity}/android-chrome-96x96.png (100%) rename {site/identity => identity}/apple-touch-icon-120x120-precomposed.png (100%) rename {site/identity => identity}/apple-touch-icon-120x120.png (100%) rename {site/identity => identity}/apple-touch-icon-152x152-precomposed.png (100%) rename {site/identity => identity}/apple-touch-icon-152x152.png (100%) rename {site/identity => identity}/apple-touch-icon-180x180-precomposed.png (100%) rename {site/identity => identity}/apple-touch-icon-180x180.png (100%) rename {site/identity => identity}/apple-touch-icon-60x60-precomposed.png (100%) rename {site/identity => identity}/apple-touch-icon-60x60.png (100%) rename {site/identity => identity}/apple-touch-icon-76x76-precomposed.png (100%) rename {site/identity => identity}/apple-touch-icon-76x76.png (100%) rename {site/identity => identity}/apple-touch-icon-precomposed.png (100%) rename {site/identity => identity}/apple-touch-icon.png (100%) rename {site/identity => identity}/browserconfig.xml (100%) rename {site/identity => identity}/favicon-16x16.png (100%) rename {site/identity => identity}/favicon-32x32.png (100%) rename {site/identity => identity}/favicon.ico (100%) rename {site/identity => identity}/favicon.png (100%) rename {site/identity => identity}/favicon.svg (100%) rename {site/identity => identity}/mstile-150x150.png (100%) rename {site/identity => identity}/mstile-310x150.png (100%) rename {site/identity => identity}/mstile-310x310.png (100%) rename {site/identity => identity}/mstile-70x70.png (100%) rename {site/identity => identity}/safari-pinned-tab.svg (100%) rename {site/identity => identity}/site.webmanifest (100%) delete mode 100644 site/CountryCodes.json delete mode 100644 site/index.css delete mode 100644 site/index.html delete mode 100644 site/index.js diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml new file mode 100644 index 0000000..2954df3 --- /dev/null +++ b/.github/workflows/deployment.yml @@ -0,0 +1,45 @@ +# Simple workflow for deploying static content to GitHub Pages +name: Deploy static content to Pages + +on: + # Runs on pushes targeting the default branch + push: + branches: ["main"] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. +# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. +concurrency: + group: "pages" + cancel-in-progress: false + +jobs: + # Single deploy job since we're just deploying + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Minify Action + uses: dra1ex/minify-action@v1.0.3 + - name: Setup Pages + uses: actions/configure-pages@v5 + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + name: html-site + path: '.' + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 diff --git a/site/identity/android-chrome-144x144.png b/identity/android-chrome-144x144.png similarity index 100% rename from site/identity/android-chrome-144x144.png rename to identity/android-chrome-144x144.png diff --git a/site/identity/android-chrome-192x192.png b/identity/android-chrome-192x192.png similarity index 100% rename from site/identity/android-chrome-192x192.png rename to identity/android-chrome-192x192.png diff --git a/site/identity/android-chrome-256x256.png b/identity/android-chrome-256x256.png similarity index 100% rename from site/identity/android-chrome-256x256.png rename to identity/android-chrome-256x256.png diff --git a/site/identity/android-chrome-36x36.png b/identity/android-chrome-36x36.png similarity index 100% rename from site/identity/android-chrome-36x36.png rename to identity/android-chrome-36x36.png diff --git a/site/identity/android-chrome-48x48.png b/identity/android-chrome-48x48.png similarity index 100% rename from site/identity/android-chrome-48x48.png rename to identity/android-chrome-48x48.png diff --git a/site/identity/android-chrome-72x72.png b/identity/android-chrome-72x72.png similarity index 100% rename from site/identity/android-chrome-72x72.png rename to identity/android-chrome-72x72.png diff --git a/site/identity/android-chrome-96x96.png b/identity/android-chrome-96x96.png similarity index 100% rename from site/identity/android-chrome-96x96.png rename to identity/android-chrome-96x96.png diff --git a/site/identity/apple-touch-icon-120x120-precomposed.png b/identity/apple-touch-icon-120x120-precomposed.png similarity index 100% rename from site/identity/apple-touch-icon-120x120-precomposed.png rename to identity/apple-touch-icon-120x120-precomposed.png diff --git a/site/identity/apple-touch-icon-120x120.png b/identity/apple-touch-icon-120x120.png similarity index 100% rename from site/identity/apple-touch-icon-120x120.png rename to identity/apple-touch-icon-120x120.png diff --git a/site/identity/apple-touch-icon-152x152-precomposed.png b/identity/apple-touch-icon-152x152-precomposed.png similarity index 100% rename from site/identity/apple-touch-icon-152x152-precomposed.png rename to identity/apple-touch-icon-152x152-precomposed.png diff --git a/site/identity/apple-touch-icon-152x152.png b/identity/apple-touch-icon-152x152.png similarity index 100% rename from site/identity/apple-touch-icon-152x152.png rename to identity/apple-touch-icon-152x152.png diff --git a/site/identity/apple-touch-icon-180x180-precomposed.png b/identity/apple-touch-icon-180x180-precomposed.png similarity index 100% rename from site/identity/apple-touch-icon-180x180-precomposed.png rename to identity/apple-touch-icon-180x180-precomposed.png diff --git a/site/identity/apple-touch-icon-180x180.png b/identity/apple-touch-icon-180x180.png similarity index 100% rename from site/identity/apple-touch-icon-180x180.png rename to identity/apple-touch-icon-180x180.png diff --git a/site/identity/apple-touch-icon-60x60-precomposed.png b/identity/apple-touch-icon-60x60-precomposed.png similarity index 100% rename from site/identity/apple-touch-icon-60x60-precomposed.png rename to identity/apple-touch-icon-60x60-precomposed.png diff --git a/site/identity/apple-touch-icon-60x60.png b/identity/apple-touch-icon-60x60.png similarity index 100% rename from site/identity/apple-touch-icon-60x60.png rename to identity/apple-touch-icon-60x60.png diff --git a/site/identity/apple-touch-icon-76x76-precomposed.png b/identity/apple-touch-icon-76x76-precomposed.png similarity index 100% rename from site/identity/apple-touch-icon-76x76-precomposed.png rename to identity/apple-touch-icon-76x76-precomposed.png diff --git a/site/identity/apple-touch-icon-76x76.png b/identity/apple-touch-icon-76x76.png similarity index 100% rename from site/identity/apple-touch-icon-76x76.png rename to identity/apple-touch-icon-76x76.png diff --git a/site/identity/apple-touch-icon-precomposed.png b/identity/apple-touch-icon-precomposed.png similarity index 100% rename from site/identity/apple-touch-icon-precomposed.png rename to identity/apple-touch-icon-precomposed.png diff --git a/site/identity/apple-touch-icon.png b/identity/apple-touch-icon.png similarity index 100% rename from site/identity/apple-touch-icon.png rename to identity/apple-touch-icon.png diff --git a/site/identity/browserconfig.xml b/identity/browserconfig.xml similarity index 100% rename from site/identity/browserconfig.xml rename to identity/browserconfig.xml diff --git a/site/identity/favicon-16x16.png b/identity/favicon-16x16.png similarity index 100% rename from site/identity/favicon-16x16.png rename to identity/favicon-16x16.png diff --git a/site/identity/favicon-32x32.png b/identity/favicon-32x32.png similarity index 100% rename from site/identity/favicon-32x32.png rename to identity/favicon-32x32.png diff --git a/site/identity/favicon.ico b/identity/favicon.ico similarity index 100% rename from site/identity/favicon.ico rename to identity/favicon.ico diff --git a/site/identity/favicon.png b/identity/favicon.png similarity index 100% rename from site/identity/favicon.png rename to identity/favicon.png diff --git a/site/identity/favicon.svg b/identity/favicon.svg similarity index 100% rename from site/identity/favicon.svg rename to identity/favicon.svg diff --git a/site/identity/mstile-150x150.png b/identity/mstile-150x150.png similarity index 100% rename from site/identity/mstile-150x150.png rename to identity/mstile-150x150.png diff --git a/site/identity/mstile-310x150.png b/identity/mstile-310x150.png similarity index 100% rename from site/identity/mstile-310x150.png rename to identity/mstile-310x150.png diff --git a/site/identity/mstile-310x310.png b/identity/mstile-310x310.png similarity index 100% rename from site/identity/mstile-310x310.png rename to identity/mstile-310x310.png diff --git a/site/identity/mstile-70x70.png b/identity/mstile-70x70.png similarity index 100% rename from site/identity/mstile-70x70.png rename to identity/mstile-70x70.png diff --git a/site/identity/safari-pinned-tab.svg b/identity/safari-pinned-tab.svg similarity index 100% rename from site/identity/safari-pinned-tab.svg rename to identity/safari-pinned-tab.svg diff --git a/site/identity/site.webmanifest b/identity/site.webmanifest similarity index 100% rename from site/identity/site.webmanifest rename to identity/site.webmanifest diff --git a/site/CountryCodes.json b/site/CountryCodes.json deleted file mode 100644 index 5ac77cb..0000000 --- a/site/CountryCodes.json +++ /dev/null @@ -1 +0,0 @@ -[{"country":"Afghanistan","code":"+93","iso":"AF"},{"country":"Albania","code":"+355","iso":"AL"},{"country":"Algeria","code":"+213","iso":"DZ"},{"country":"American Samoa","code":"+1-684","iso":"AS"},{"country":"Andorra","code":"+376","iso":"AD"},{"country":"Angola","code":"+244","iso":"AO"},{"country":"Anguilla","code":"+1-264","iso":"AI"},{"country":"Antarctica","code":"+672","iso":"AQ"},{"country":"Antigua and Barbuda","code":"+1-268","iso":"AG"},{"country":"Argentina","code":"+54","iso":"AR"},{"country":"Armenia","code":"+374","iso":"AM"},{"country":"Aruba","code":"+297","iso":"AW"},{"country":"Australia","code":"+61","iso":"AU"},{"country":"Austria","code":"+43","iso":"AT"},{"country":"Azerbaijan","code":"+994","iso":"AZ"},{"country":"Bahamas","code":"+1-242","iso":"BS"},{"country":"Bahrain","code":"+973","iso":"BH"},{"country":"Bangladesh","code":"+880","iso":"BD"},{"country":"Barbados","code":"+1-246","iso":"BB"},{"country":"Belarus","code":"+375","iso":"BY"},{"country":"Belgium","code":"+32","iso":"BE"},{"country":"Belize","code":"+501","iso":"BZ"},{"country":"Benin","code":"+229","iso":"BJ"},{"country":"Bermuda","code":"+1-441","iso":"BM"},{"country":"Bhutan","code":"+975","iso":"BT"},{"country":"Bolivia","code":"+591","iso":"BO"},{"country":"Bosnia and Herzegovina","code":"+387","iso":"BA"},{"country":"Botswana","code":"+267","iso":"BW"},{"country":"Brazil","code":"+55","iso":"BR"},{"country":"British Indian Ocean Territory","code":"+246","iso":"IO"},{"country":"British Virgin Islands","code":"+1-284","iso":"VG"},{"country":"Brunei","code":"+673","iso":"BN"},{"country":"Bulgaria","code":"+359","iso":"BG"},{"country":"Burkina Faso","code":"+226","iso":"BF"},{"country":"Burundi","code":"+257","iso":"BI"},{"country":"Cambodia","code":"+855","iso":"KH"},{"country":"Cameroon","code":"+237","iso":"CM"},{"country":"Canada","code":"+1","iso":"CA"},{"country":"Cape Verde","code":"+238","iso":"CV"},{"country":"Cayman Islands","code":"+1-345","iso":"KY"},{"country":"Central African Republic","code":"+236","iso":"CF"},{"country":"Chad","code":"+235","iso":"TD"},{"country":"Chile","code":"+56","iso":"CL"},{"country":"China","code":"+86","iso":"CN"},{"country":"Christmas Island","code":"+61","iso":"CX"},{"country":"Cocos Islands","code":"+61","iso":"CC"},{"country":"Colombia","code":"+57","iso":"CO"},{"country":"Comoros","code":"+269","iso":"KM"},{"country":"Cook Islands","code":"+682","iso":"CK"},{"country":"Costa Rica","code":"+506","iso":"CR"},{"country":"Croatia","code":"+385","iso":"HR"},{"country":"Cuba","code":"+53","iso":"CU"},{"country":"Curacao","code":"+599","iso":"CW"},{"country":"Cyprus","code":"+357","iso":"CY"},{"country":"Czech Republic","code":"+420","iso":"CZ"},{"country":"Democratic Republic of the Congo","code":"+243","iso":"CD"},{"country":"Denmark","code":"+45","iso":"DK"},{"country":"Djibouti","code":"+253","iso":"DJ"},{"country":"Dominica","code":"+1-767","iso":"DM"},{"country":"Dominican Republic","code":"+1-809, 1-829, 1-849","iso":"DO"},{"country":"East Timor","code":"+670","iso":"TL"},{"country":"Ecuador","code":"+593","iso":"EC"},{"country":"Egypt","code":"+20","iso":"EG"},{"country":"El Salvador","code":"+503","iso":"SV"},{"country":"Equatorial Guinea","code":"+240","iso":"GQ"},{"country":"Eritrea","code":"+291","iso":"ER"},{"country":"Estonia","code":"+372","iso":"EE"},{"country":"Ethiopia","code":"+251","iso":"ET"},{"country":"Falkland Islands","code":"+500","iso":"FK"},{"country":"Faroe Islands","code":"+298","iso":"FO"},{"country":"Fiji","code":"+679","iso":"FJ"},{"country":"Finland","code":"+358","iso":"FI"},{"country":"France","code":"+33","iso":"FR"},{"country":"French Polynesia","code":"+689","iso":"PF"},{"country":"Gabon","code":"+241","iso":"GA"},{"country":"Gambia","code":"+220","iso":"GM"},{"country":"Georgia","code":"+995","iso":"GE"},{"country":"Germany","code":"+49","iso":"DE"},{"country":"Ghana","code":"+233","iso":"GH"},{"country":"Gibraltar","code":"+350","iso":"GI"},{"country":"Greece","code":"+30","iso":"GR"},{"country":"Greenland","code":"+299","iso":"GL"},{"country":"Grenada","code":"+1-473","iso":"GD"},{"country":"Guam","code":"+1-671","iso":"GU"},{"country":"Guatemala","code":"+502","iso":"GT"},{"country":"Guernsey","code":"+44-1481","iso":"GG"},{"country":"Guinea","code":"+224","iso":"GN"},{"country":"Guinea-Bissau","code":"+245","iso":"GW"},{"country":"Guyana","code":"+592","iso":"GY"},{"country":"Haiti","code":"+509","iso":"HT"},{"country":"Honduras","code":"+504","iso":"HN"},{"country":"Hong Kong","code":"+852","iso":"HK"},{"country":"Hungary","code":"+36","iso":"HU"},{"country":"Iceland","code":"+354","iso":"IS"},{"country":"India","code":"+91","iso":"IN"},{"country":"Indonesia","code":"+62","iso":"ID"},{"country":"Iran","code":"+98","iso":"IR"},{"country":"Iraq","code":"+964","iso":"IQ"},{"country":"Ireland","code":"+353","iso":"IE"},{"country":"Isle of Man","code":"+44-1624","iso":"IM"},{"country":"Israel","code":"+972","iso":"IL"},{"country":"Italy","code":"+39","iso":"IT"},{"country":"Ivory Coast","code":"+225","iso":"CI"},{"country":"Jamaica","code":"+1-876","iso":"JM"},{"country":"Japan","code":"+81","iso":"JP"},{"country":"Jersey","code":"+44-1534","iso":"JE"},{"country":"Jordan","code":"+962","iso":"JO"},{"country":"Kazakhstan","code":"+7","iso":"KZ"},{"country":"Kenya","code":"+254","iso":"KE"},{"country":"Kiribati","code":"+686","iso":"KI"},{"country":"Kosovo","code":"+383","iso":"XK"},{"country":"Kuwait","code":"+965","iso":"KW"},{"country":"Kyrgyzstan","code":"+996","iso":"KG"},{"country":"Laos","code":"+856","iso":"LA"},{"country":"Latvia","code":"+371","iso":"LV"},{"country":"Lebanon","code":"+961","iso":"LB"},{"country":"Lesotho","code":"+266","iso":"LS"},{"country":"Liberia","code":"+231","iso":"LR"},{"country":"Libya","code":"+218","iso":"LY"},{"country":"Liechtenstein","code":"+423","iso":"LI"},{"country":"Lithuania","code":"+370","iso":"LT"},{"country":"Luxembourg","code":"+352","iso":"LU"},{"country":"Macao","code":"+853","iso":"MO"},{"country":"Macedonia","code":"+389","iso":"MK"},{"country":"Madagascar","code":"+261","iso":"MG"},{"country":"Malawi","code":"+265","iso":"MW"},{"country":"Malaysia","code":"+60","iso":"MY"},{"country":"Maldives","code":"+960","iso":"MV"},{"country":"Mali","code":"+223","iso":"ML"},{"country":"Malta","code":"+356","iso":"MT"},{"country":"Marshall Islands","code":"+692","iso":"MH"},{"country":"Mauritania","code":"+222","iso":"MR"},{"country":"Mauritius","code":"+230","iso":"MU"},{"country":"Mayotte","code":"+262","iso":"YT"},{"country":"Mexico","code":"+52","iso":"MX"},{"country":"Micronesia","code":"+691","iso":"FM"},{"country":"Moldova","code":"+373","iso":"MD"},{"country":"Monaco","code":"+377","iso":"MC"},{"country":"Mongolia","code":"+976","iso":"MN"},{"country":"Montenegro","code":"+382","iso":"ME"},{"country":"Montserrat","code":"+1-664","iso":"MS"},{"country":"Morocco","code":"+212","iso":"MA"},{"country":"Mozambique","code":"+258","iso":"MZ"},{"country":"Myanmar","code":"+95","iso":"MM"},{"country":"Namibia","code":"+264","iso":"NA"},{"country":"Nauru","code":"+674","iso":"NR"},{"country":"Nepal","code":"+977","iso":"NP"},{"country":"Netherlands","code":"+31","iso":"NL"},{"country":"Netherlands Antilles","code":"+599","iso":"AN"},{"country":"New Caledonia","code":"+687","iso":"NC"},{"country":"New Zealand","code":"+64","iso":"NZ"},{"country":"Nicaragua","code":"+505","iso":"NI"},{"country":"Niger","code":"+227","iso":"NE"},{"country":"Nigeria","code":"+234","iso":"NG"},{"country":"Niue","code":"+683","iso":"NU"},{"country":"North Korea","code":"+850","iso":"KP"},{"country":"Northern Mariana Islands","code":"+1-670","iso":"MP"},{"country":"Norway","code":"+47","iso":"NO"},{"country":"Oman","code":"+968","iso":"OM"},{"country":"Pakistan","code":"+92","iso":"PK"},{"country":"Palau","code":"+680","iso":"PW"},{"country":"Palestine","code":"+970","iso":"PS"},{"country":"Panama","code":"+507","iso":"PA"},{"country":"Papua New Guinea","code":"+675","iso":"PG"},{"country":"Paraguay","code":"+595","iso":"PY"},{"country":"Peru","code":"+51","iso":"PE"},{"country":"Philippines","code":"+63","iso":"PH"},{"country":"Pitcairn","code":"+64","iso":"PN"},{"country":"Poland","code":"+48","iso":"PL"},{"country":"Portugal","code":"+351","iso":"PT"},{"country":"Puerto Rico","code":"+1-787, 1-939","iso":"PR"},{"country":"Qatar","code":"+974","iso":"QA"},{"country":"Republic of the Congo","code":"+242","iso":"CG"},{"country":"Reunion","code":"+262","iso":"RE"},{"country":"Romania","code":"+40","iso":"RO"},{"country":"Russia","code":"+7","iso":"RU"},{"country":"Rwanda","code":"+250","iso":"RW"},{"country":"Saint Barthelemy","code":"+590","iso":"BL"},{"country":"Saint Helena","code":"+290","iso":"SH"},{"country":"Saint Kitts and Nevis","code":"+1-869","iso":"KN"},{"country":"Saint Lucia","code":"+1-758","iso":"LC"},{"country":"Saint Martin","code":"+590","iso":"MF"},{"country":"Saint Pierre and Miquelon","code":"+508","iso":"PM"},{"country":"Saint Vincent and the Grenadines","code":"+1-784","iso":"VC"},{"country":"Samoa","code":"+685","iso":"WS"},{"country":"San Marino","code":"+378","iso":"SM"},{"country":"Sao Tome and Principe","code":"+239","iso":"ST"},{"country":"Saudi Arabia","code":"+966","iso":"SA"},{"country":"Senegal","code":"+221","iso":"SN"},{"country":"Serbia","code":"+381","iso":"RS"},{"country":"Seychelles","code":"+248","iso":"SC"},{"country":"Sierra Leone","code":"+232","iso":"SL"},{"country":"Singapore","code":"+65","iso":"SG"},{"country":"Sint Maarten","code":"+1-721","iso":"SX"},{"country":"Slovakia","code":"+421","iso":"SK"},{"country":"Slovenia","code":"+386","iso":"SI"},{"country":"Solomon Islands","code":"+677","iso":"SB"},{"country":"Somalia","code":"+252","iso":"SO"},{"country":"South Africa","code":"+27","iso":"ZA"},{"country":"South Korea","code":"+82","iso":"KR"},{"country":"South Sudan","code":"+211","iso":"SS"},{"country":"Spain","code":"+34","iso":"ES"},{"country":"Sri Lanka","code":"+94","iso":"LK"},{"country":"Sudan","code":"+249","iso":"SD"},{"country":"Suriname","code":"+597","iso":"SR"},{"country":"Svalbard and Jan Mayen","code":"+47","iso":"SJ"},{"country":"Swaziland","code":"+268","iso":"SZ"},{"country":"Sweden","code":"+46","iso":"SE"},{"country":"Switzerland","code":"+41","iso":"CH"},{"country":"Syria","code":"+963","iso":"SY"},{"country":"Taiwan","code":"+886","iso":"TW"},{"country":"Tajikistan","code":"+992","iso":"TJ"},{"country":"Tanzania","code":"+255","iso":"TZ"},{"country":"Thailand","code":"+66","iso":"TH"},{"country":"Togo","code":"+228","iso":"TG"},{"country":"Tokelau","code":"+690","iso":"TK"},{"country":"Tonga","code":"+676","iso":"TO"},{"country":"Trinidad and Tobago","code":"+1-868","iso":"TT"},{"country":"Tunisia","code":"+216","iso":"TN"},{"country":"Turkey","code":"+90","iso":"TR"},{"country":"Turkmenistan","code":"+993","iso":"TM"},{"country":"Turks and Caicos Islands","code":"+1-649","iso":"TC"},{"country":"Tuvalu","code":"+688","iso":"TV"},{"country":"U.S. Virgin Islands","code":"+1-340","iso":"VI"},{"country":"Uganda","code":"+256","iso":"UG"},{"country":"Ukraine","code":"+380","iso":"UA"},{"country":"United Arab Emirates","code":"+971","iso":"AE"},{"country":"United Kingdom","code":"+44","iso":"GB"},{"country":"United States","code":"+1","iso":"US"},{"country":"Uruguay","code":"+598","iso":"UY"},{"country":"Uzbekistan","code":"+998","iso":"UZ"},{"country":"Vanuatu","code":"+678","iso":"VU"},{"country":"Vatican","code":"+379","iso":"VA"},{"country":"Venezuela","code":"+58","iso":"VE"},{"country":"Vietnam","code":"+84","iso":"VN"},{"country":"Wallis and Futuna","code":"+681","iso":"WF"},{"country":"Western Sahara","code":"+212","iso":"EH"},{"country":"Yemen","code":"+967","iso":"YE"},{"country":"Zambia","code":"+260","iso":"ZM"},{"country":"Zimbabwe","code":"+263","iso":"ZW"}] \ No newline at end of file diff --git a/site/index.css b/site/index.css deleted file mode 100644 index 710ae8b..0000000 --- a/site/index.css +++ /dev/null @@ -1 +0,0 @@ -:root{--whatsapp:#25d366;--telegram:#24A1DE;--signal:#3A76F0;--errorborder:#ff6550;--errorbody:#ffbcbc;--mobilefont:15px;--tabletfont:20px;--desktopfont:25px;--darkhovercolor:white;--lghthovercolor:#2e2e2e;--mobilepadding:50px;--tabletpadding:10vw;--desktoppadding:15vw;}body,html{margin:0;background-color:#000;color:#fff;height:100%;margin:0;font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Open Sans','Helvetica Neue',sans-serif;}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}input[type=number]{-moz-appearance:textfield;appearance:textfield;}select,input{background-color:transparent;color:#fff;border:1px solid #373737;border-radius:5px;font-size:var(--mobilefont);}select:focus,select:focus-visible,input:focus,input:focus-visible{color:#fff;border:1px solid #c06300;outline:none;}.jsbanner{margin:0;background-color:rgb(210,30,30);border:3px solid #ff5050;padding:10px;}.jsbanner>a{text-decoration:none;}.topbar{background:hsla(30,78%,47%,1);background:linear-gradient(45deg,hsla(30,78%,47%,1) 0%,hsla(326,52%,44%,1) 100%);background:-moz-linear-gradient(45deg,hsla(30,78%,47%,1) 0%,hsla(326,52%,44%,1) 100%);background:-webkit-linear-gradient(45deg,hsla(30,78%,47%,1) 0%,hsla(326,52%,44%,1) 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#D4781A",endColorstr="#AA3678",GradientType=1);height:fit-content;}.topbarp{margin:auto;text-align:justify;padding:25px var(--mobilepadding);font-family:"Lucida Console",Monaco,monospace;font-size:3.5vw;font-weight:700;.click{background:#C9DEF4;background:linear-gradient(to right,#C9DEF4 0%,#F5CCD4 50%,#B8A4C9 100%);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent}}.radio-select>ul{align-items:center;justify-items:center;display:grid;padding-left:10px;grid-template-columns:repeat(3,1fr);grid-gap:5px;}.radio-select>ul>li{list-style:none;justify-self:center;align-self:center;width:90%;}.radio-select>ul>li>button{width:90%;}.whatsapp{color:var(--whatsapp);}.w>button{border:solid var(--whatsapp) 2px;background:linear-gradient(to right,var(--whatsapp) 50%,rgb(0,0,0,0) 50%);background-size:260% 100%;background-position:right bottom;}.telegram{color:var(--telegram);}.t>button{border:solid var(--telegram) 2px;background:linear-gradient(to right,var(--telegram) 50%,rgb(0,0,0,0) 50%);background-size:260% 100%;background-position:right bottom;}.signal{color:var(--signal);}.s>button{border:solid var(--signal) 2px;background:linear-gradient(to right,var(--signal) 50%,rgb(0,0,0,0) 50%);background-size:260% 100%;background-position:right bottom;}.drop-text{display:grid;grid-template-rows:repeat(2,1fr);grid-template-columns:1fr;gap:5px 0;font-size:var(--mobilefont);}.drop-text>div{justify-self:center;align-self:center;padding:15px 0 15px 0;}.drop-text>div>label{margin-right:10px;}.drop-text>div>svg{width:24px;height:15px;}.error{padding:15px 5px 15px 5px;border-top:5px dashed var(--errorborder);border-right:1px solid var(--errorborder);border-bottom:5px dashed var(--errorborder);border-left:1px solid var(--errorborder);}.hide{display:none;}.btn{-webkit-border-radius:10;-moz-border-radius:10;border-radius:10px;font-family:Arial;padding:10px;text-decoration:none;transition:all .5s ease-out;}.btn::target-text{transition:all .6s ease-out;}.btn:hover,.btn:focus{text-decoration:none;background-position:left bottom;color:var(--darkhovercolor);}.btn svg{width:var(--mobilefont);height:var(--mobilefont);}.footer{position:fixed;left:0;bottom:0;width:100%;background-color:#343434;color:#dddddd;text-align:center;}.footer svg{width:14px;height:14px;fill:#dddddd;}.footer a{color:#dddddd;text-decoration:none;}.footer a:hover,a:focus{color:rgba(21,255,0,.55);}@media only screen and (min-width:600px){.topbarp{padding:25px var(--tabletpadding);font-size:2.5vw}select,input{font-size:var(--tabletfont)}.drop-text{font-size:var(--tabletfont)}.btn{font-size:var(--tabletfont)}.btn svg{width:var(--tabletfont);height:var(--tabletfont)}}@media only screen and (min-width:850px){.topbarp{padding:25px var(--desktoppadding);font-size:2.5vw}select,input{font-size:var(--desktopfont)}.drop-text{display:grid;grid-template-columns:repeat(2,1fr);grid-template-rows:1fr;gap:0 5px;font-size:var(--desktopfont);margin:20px 0}.btn{font-size:var(--desktopfont)}.btn svg{width:var(--desktopfont);height:var(--desktopfont)}}@media (prefers-color-scheme:light){body,html{background-color:#d7d7d7;color:#2e2e2e}select,input{background-color:#d6d6d6;color:#2f2f2f;border:1px solid #373737}select:focus,select:focus-visible,input:focus,input:focus-visible{color:#000000;border:1px solid #37006b;outline:none}.btn:hover,.btn:focus{color:var(--lghthovercolor)}.footer{color:#000;background-color:#fff}.footer svg{fill:#222222}} \ No newline at end of file diff --git a/site/index.html b/site/index.html deleted file mode 100644 index b29b2c8..0000000 --- a/site/index.html +++ /dev/null @@ -1 +0,0 @@ -ClickToChat

Loading...

Generate custom chat links for WhatsApp, Telegramand Signalwith a single click...

Paste Phone Number

\ No newline at end of file diff --git a/site/index.js b/site/index.js deleted file mode 100644 index 591bf27..0000000 --- a/site/index.js +++ /dev/null @@ -1,122 +0,0 @@ -let textbox = document.getElementById("phoneno"); -let dropdown = document.getElementById("dropdown"); -let whtspp = document.getElementById("whatsapp"); -let telgrm = document.getElementById("telegram"); -let signal = document.getElementById("signal"); -let errord = document.getElementById("error"); -let errorh = document.getElementById("error-h4"); -let errorp = document.getElementById("error-body"); -let pasteph = document.getElementById("pasteph"); -const pattern = /^\d{6,15}$/; -let countryCodeList = []; - -function extFinder(extNum) { - if (extNum.match(/\d/g) === null) { - return; - } - extNum = "+" + extNum.match(/\d/g).join(""); - let selectIndex = 0; - let index = (extNum < 5) ? 5 : extNum.length; - for (index; index >= 2; index--) { - let r = `^\\${extNum.substring(0, index)}$`; - if (countryCodeList.findIndex(_strCheck) === -1) { selectIndex = 0; continue; } - else { - selectIndex = countryCodeList.findIndex(_strCheck) + 1; - break; - } - function _strCheck(el) { - - return el.match(r); - } - } - dropdown.selectedIndex = selectIndex; -} - -function dropdownMake() { - fetch("./CountryCodes.json") - .then((res) => res.json()) - .then((data) => { - // do stuff with the data - var CountryCodes = JSON.parse(JSON.stringify(data)) - let text = "" - for (let index in CountryCodes) { - text += ""; - countryCodeList.push(CountryCodes[index].code.replace("-", "")) - } - dropdown.innerHTML = text; - document.getElementById("loader").style.display = "none"; - }); -} -function dropdownSelect() { - var value = dropdown.value; - textbox.value = (value === "") ? "" : value.slice(1); -} -function handleLink(s) { - errord.classList.add("hide"); - if (textbox.value === "") { - errorh.innerHTML = "EMPTY FIELD"; - errorp.innerHTML = "No phone number was entered. Please enter one"; - errord.classList.remove("hide"); - } - else if (textbox.value.match(/\d/g).join("").length < 8) { - errorh.innerHTML = "INVALID PHONE NUMBER"; - errorp.innerHTML = "Phone number received is less than 8 characters, which is invalid"; - errord.classList.remove("hide"); - } - else if (dropdown.options[dropdown.selectedIndex].text === "----Select your country----") { - errorh.innerHTML = "INVALID PHONE NUMBER"; - errorp.innerHTML = "Phone number received has no country code. Enter a valid country code"; - errord.classList.remove("hide"); - } - else { - let ph = "+" + textbox.value.match(/\d/g).join(""); - if (s === "w") { - if (window.confirm("Redirect to WhatsApp?")) { - window.open("https://wa.me/" + ph, "_blank", "noopener"); - } - } - else if (s === "t") { - if (window.confirm("Redirect to Telegram?")) { - window.open("https://t.me/" + ph, "_blank", "noopener"); - } - } - else if (s === "s") { - if (window.confirm("Redirect to Signal?")) { - window.open("https://signal.me/#p/" + ph, "_blank", "noopener"); - } - } - else { console.log("NONE") } - } -} -window.addEventListener("load", (e1) => { - dropdownMake(); - textbox.addEventListener("paste", (e2) => { - e2.preventDefault(); - errord.classList.add("hide"); - let paste = (e2.clipboardData || window.clipboardData).getData("text"); - textbox.value = paste.match(/\d/g).join(""); - extFinder(paste); - }); - pasteph.addEventListener("click", async function (e3) { - e3.preventDefault(); - errord.classList.add("hide"); - let clipboardRead = await navigator.clipboard.readText(); - textbox.value = clipboardRead.match(/\d/g).join(""); - extFinder(clipboardRead); - }) - textbox.addEventListener("input", (e3) => { - e3.preventDefault(); - errord.classList.add("hide"); - if ((textbox.value !== "") && (textbox.value.match(/\d/g).join("").length > 2) && (textbox.value.match(/\d/g).join("").length < 15)) { - console.log(textbox.value.substring(0, 6)) - extFinder(textbox.value); - } - else if (textbox.value === "") { - dropdown.selectedIndex = 0; - } - }); - dropdown.addEventListener("change", dropdownSelect); - telgrm.addEventListener("click", () => { setTimeout(handleLink, 1000, "t") }, false); - signal.addEventListener("click", () => { setTimeout(handleLink, 1000, "s") }, false); - whtspp.addEventListener("click", () => { setTimeout(handleLink, 1000, "w") }, false); -});