From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: *** X-Spam-Status: No, score=3.2 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, HTML_OFF_PAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,WEIRD_QUOTING autolearn=no autolearn_force=no version=3.4.6 Received: from mail-pf1-f179.google.com (mail-pf1-f179.google.com [209.85.210.179]) by gnuweeb.org (Postfix) with ESMTPS id 9602B817B2 for ; Sun, 27 Nov 2022 20:32:37 +0000 (UTC) Received: by mail-pf1-f179.google.com with SMTP id q12so4561604pfn.10 for ; Sun, 27 Nov 2022 12:32:37 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=KmYLmejQzPl97kn0h6hzLoYs33mzvFL28wQyvu1k3ME=; b=Mew2suafxUlHwUfoPJT0TiLBkAkxyjqIRcE7NE7rHoD/WX7lEDYHPuxjhPDlbMtr4T uGmwid+j7JO5oxLbxqcxc+pdLjMaZiKNKRpqKgijt9TSZV1kYIj0/T8u0jZrRQ7hRV6r 7rmW2JeFt3u2Xm81xNNqrvdlHtneSDzcYlCOV7Jyj+NuiVMUx8qqOOrUviDoyq3p6cER i8ZjCWTpCUweADpr9ZIUpyjNYNawNTk0IoT0dDV/bMRebRnCu+MCod4vZryu5T6E+0rK BO01amLr3LXF5V4riJtd60mbNG7QjM1I0eEOV3o78si1T6KZsIReV8WQJb1mtSBVKzi/ riuA== X-Gm-Message-State: ANoB5pks6mjv3d75NOMc0yQsUhyJTKoHsJzxR6Pajz1zurmgu7O+UUfL cX5NKVBqsiIt2KWqIOauTVo= X-Google-Smtp-Source: AA0mqf7w9pFoIFfEwxdCzzZu4nyX2C+0gep6sDS5tuwxMgT1CD092QIB2rSGMvuPpmnxEFDOZbLOZQ== X-Received: by 2002:a62:3306:0:b0:56b:8181:fe3e with SMTP id z6-20020a623306000000b0056b8181fe3emr50453124pfz.57.1669581156656; Sun, 27 Nov 2022 12:32:36 -0800 (PST) Received: from localhost.localdomain ([2404:8000:1021:2a9:da99:231d:4dfa:7f54]) by smtp.gmail.com with ESMTPSA id ij13-20020a170902ab4d00b0018685257c0dsm7234904plb.58.2022.11.27.12.32.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Nov 2022 12:32:36 -0800 (PST) From: Ammar Faizi To: Gilang Fachrezy Cc: Ammar Faizi , Taufiq Pohan , Aldy Prastyo , Muhammad Fitrah Pandjalu , Nauvalsa Yanandana , GNU/Weeb Mailing List , VNLX Kernel Department Subject: [PATCH v1 03/13] index: Integrate city data with the form Date: Mon, 28 Nov 2022 03:32:06 +0700 Message-Id: <20221127203216.408808-4-ammarfaizi2@gnuweeb.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221127203216.408808-1-ammarfaizi2@gnuweeb.org> References: <20221127203216.408808-1-ammarfaizi2@gnuweeb.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable List-Id: This allows the user to choose the city via select input with search feature. Co-authored-by: Muhammad Fitrah Pandjalu Signed-off-by: Muhammad Fitrah Pandjalu Co-authored-by: Taufiq Pohan Signed-off-by: Taufiq Pohan Co-authored-by: Nauvalsa Yanandana Signed-off-by: Nauvalsa Yanandana Signed-off-by: Ammar Faizi --- public/assets/js/jquery-3.6.1.min.js | 2 + public/assets/regions.json | 2946 +++++++++++++++++++------- public/index.php | 23 +- 3 files changed, 2250 insertions(+), 721 deletions(-) create mode 100644 public/assets/js/jquery-3.6.1.min.js diff --git a/public/assets/js/jquery-3.6.1.min.js b/public/assets/js/jquery= -3.6.1.min.js new file mode 100644 index 0000000..2c69bc9 --- /dev/null +++ b/public/assets/js/jquery-3.6.1.min.js @@ -0,0 +1,2 @@ +/*! jQuery v3.6.1 | (c) OpenJS Foundation and other contributors | jquery.= org/license */ +!function(e,t){"use strict";"object"=3D=3Dtypeof module&&"object"=3D=3Dtyp= eof module.exports?module.exports=3De.document?t(e,!0):function(e){if(!e.do= cument)throw new Error("jQuery requires a window with a document");return t= (e)}:t(e)}("undefined"!=3Dtypeof window?window:this,function(C,e){"use stri= ct";var t=3D[],r=3DObject.getPrototypeOf,s=3Dt.slice,g=3Dt.flat?function(e)= {return t.flat.call(e)}:function(e){return t.concat.apply([],e)},u=3Dt.push= ,i=3Dt.indexOf,n=3D{},o=3Dn.toString,y=3Dn.hasOwnProperty,a=3Dy.toString,l= =3Da.call(Object),v=3D{},m=3Dfunction(e){return"function"=3D=3Dtypeof e&&"n= umber"!=3Dtypeof e.nodeType&&"function"!=3Dtypeof e.item},x=3Dfunction(e){r= eturn null!=3De&&e=3D=3D=3De.window},E=3DC.document,c=3D{type:!0,src:!0,non= ce:!0,noModule:!0};function b(e,t,n){var r,i,o=3D(n=3Dn||E).createElement("= script");if(o.text=3De,t)for(r in c)(i=3Dt[r]||t.getAttribute&&t.getAttribu= te(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)= }function w(e){return null=3D=3De?e+"":"object"=3D=3Dtypeof e||"function"= =3D=3Dtypeof e?n[o.call(e)]||"object":typeof e}var f=3D"3.6.1",S=3Dfunction= (e,t){return new S.fn.init(e,t)};function p(e){var t=3D!!e&&"length"in e&&e= .length,n=3Dw(e);return!m(e)&&!x(e)&&("array"=3D=3D=3Dn||0=3D=3D=3Dt||"numb= er"=3D=3Dtypeof t&&0+~]|"+M+")"+M+"*"),U=3Dnew RegExp(M+"|>"),X=3Dnew RegExp(F= ),V=3Dnew RegExp("^"+I+"$"),G=3D{ID:new RegExp("^#("+I+")"),CLASS:new RegEx= p("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEU= DO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(ch= ild|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\= \d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:ne= w RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-= \\d)?\\d*)"+M+"*\\)|)(?=3D[^-]|$)","i")},Y=3D/HTML$/i,Q=3D/^(?:input|select= |textarea|button)$/i,J=3D/^h\d$/i,K=3D/^[^{]+\{\s*\[native \w/,Z=3D/^(?:#([= \w-]+)|(\w+)|\.([\w-]+))$/,ee=3D/[+~]/,te=3Dnew RegExp("\\\\[\\da-fA-F]{1,6= }"+M+"?|\\\\([^\\r\\n\\f])","g"),ne=3Dfunction(e,t){var n=3D"0x"+e.slice(1)= -65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>1= 0|55296,1023&n|56320))},re=3D/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFF= F\w-]/g,ie=3Dfunction(e,t){return t?"\0"=3D=3D=3De?"\ufffd":e.slice(0,-1)+"= \\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=3Dfunction(){T()},= ae=3Dbe(function(e){return!0=3D=3D=3De.disabled&&"fieldset"=3D=3D=3De.nodeN= ame.toLowerCase()},{dir:"parentNode",next:"legend"});try{H.apply(t=3DO.call= (p.childNodes),p.childNodes),t[p.childNodes.length].nodeType}catch(e){H=3D{= apply:t.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){var n=3De.= length,r=3D0;while(e[n++]=3Dt[r++]);e.length=3Dn-1}}}function se(t,e,n,r){v= ar i,o,a,s,u,l,c,f=3De&&e.ownerDocument,p=3De?e.nodeType:9;if(n=3Dn||[],"st= ring"!=3Dtypeof t||!t||1!=3D=3Dp&&9!=3D=3Dp&&11!=3D=3Dp)return n;if(!r&&(T(= e),e=3De||C,E)){if(11!=3D=3Dp&&(u=3DZ.exec(t)))if(i=3Du[1]){if(9=3D=3D=3Dp)= {if(!(a=3De.getElementById(i)))return n;if(a.id=3D=3D=3Di)return n.push(a),= n}else if(f&&(a=3Df.getElementById(i))&&v(e,a)&&a.id=3D=3D=3Di)return n.pus= h(a),n}else{if(u[2])return H.apply(n,e.getElementsByTagName(t)),n;if((i=3Du= [3])&&d.getElementsByClassName&&e.getElementsByClassName)return H.apply(n,e= .getElementsByClassName(i)),n}if(d.qsa&&!N[t+" "]&&(!y||!y.test(t))&&(1!=3D= =3Dp||"object"!=3D=3De.nodeName.toLowerCase())){if(c=3Dt,f=3De,1=3D=3D=3Dp&= &(U.test(t)||z.test(t))){(f=3Dee.test(t)&&ve(e.parentNode)||e)=3D=3D=3De&&d= .scope||((s=3De.getAttribute("id"))?s=3Ds.replace(re,ie):e.setAttribute("id= ",s=3DS)),o=3D(l=3Dh(t)).length;while(o--)l[o]=3D(s?"#"+s:":scope")+" "+xe(= l[o]);c=3Dl.join(",")}try{return H.apply(n,f.querySelectorAll(c)),n}catch(e= ){N(t,!0)}finally{s=3D=3D=3DS&&e.removeAttribute("id")}}}return g(t.replace= (B,"$1"),e,n,r)}function ue(){var r=3D[];return function e(t,n){return r.pu= sh(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=3Dn}}function le(e){r= eturn e[S]=3D!0,e}function ce(e){var t=3DC.createElement("fieldset");try{re= turn!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild= (t),t=3Dnull}}function fe(e,t){var n=3De.split("|"),r=3Dn.length;while(r--)= b.attrHandle[n[r]]=3Dt}function pe(e,t){var n=3Dt&&e,r=3Dn&&1=3D=3D=3De.nod= eType&&1=3D=3D=3Dt.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n= )while(n=3Dn.nextSibling)if(n=3D=3D=3Dt)return-1;return e?1:-1}function de(= t){return function(e){return"input"=3D=3D=3De.nodeName.toLowerCase()&&e.typ= e=3D=3D=3Dt}}function he(n){return function(e){var t=3De.nodeName.toLowerCa= se();return("input"=3D=3D=3Dt||"button"=3D=3D=3Dt)&&e.type=3D=3D=3Dn}}funct= ion ge(t){return function(e){return"form"in e?e.parentNode&&!1=3D=3D=3De.di= sabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled=3D=3D=3Dt:e= .disabled=3D=3D=3Dt:e.isDisabled=3D=3D=3Dt||e.isDisabled!=3D=3D!t&&ae(e)=3D= =3D=3Dt:e.disabled=3D=3D=3Dt:"label"in e&&e.disabled=3D=3D=3Dt}}function ye= (a){return le(function(o){return o=3D+o,le(function(e,t){var n,r=3Da([],e.l= ength,o),i=3Dr.length;while(i--)e[n=3Dr[i]]&&(e[n]=3D!(t[n]=3De[n]))})})}fu= nction ve(e){return e&&"undefined"!=3Dtypeof e.getElementsByTagName&&e}for(= e in d=3Dse.support=3D{},i=3Dse.isXML=3Dfunction(e){var t=3De&&e.namespaceU= RI,n=3De&&(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeNa= me||"HTML")},T=3Dse.setDocument=3Dfunction(e){var t,n,r=3De?e.ownerDocument= ||e:p;return r!=3DC&&9=3D=3D=3Dr.nodeType&&r.documentElement&&(a=3D(C=3Dr).= documentElement,E=3D!i(C),p!=3DC&&(n=3DC.defaultView)&&n.top!=3D=3Dn&&(n.ad= dEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEv= ent("onunload",oe)),d.scope=3Dce(function(e){return a.appendChild(e).append= Child(C.createElement("div")),"undefined"!=3Dtypeof e.querySelectorAll&&!e.= querySelectorAll(":scope fieldset div").length}),d.attributes=3Dce(function= (e){return e.className=3D"i",!e.getAttribute("className")}),d.getElementsBy= TagName=3Dce(function(e){return e.appendChild(C.createComment("")),!e.getEl= ementsByTagName("*").length}),d.getElementsByClassName=3DK.test(C.getElemen= tsByClassName),d.getById=3Dce(function(e){return a.appendChild(e).id=3DS,!C= .getElementsByName||!C.getElementsByName(S).length}),d.getById?(b.filter.ID= =3Dfunction(e){var t=3De.replace(te,ne);return function(e){return e.getAttr= ibute("id")=3D=3D=3Dt}},b.find.ID=3Dfunction(e,t){if("undefined"!=3Dtypeof = t.getElementById&&E){var n=3Dt.getElementById(e);return n?[n]:[]}}):(b.filt= er.ID=3Dfunction(e){var n=3De.replace(te,ne);return function(e){var t=3D"un= defined"!=3Dtypeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t= .value=3D=3D=3Dn}},b.find.ID=3Dfunction(e,t){if("undefined"!=3Dtypeof t.get= ElementById&&E){var n,r,i,o=3Dt.getElementById(e);if(o){if((n=3Do.getAttrib= uteNode("id"))&&n.value=3D=3D=3De)return[o];i=3Dt.getElementsByName(e),r=3D= 0;while(o=3Di[r++])if((n=3Do.getAttributeNode("id"))&&n.value=3D=3D=3De)ret= urn[o]}return[]}}),b.find.TAG=3Dd.getElementsByTagName?function(e,t){return= "undefined"!=3Dtypeof t.getElementsByTagName?t.getElementsByTagName(e):d.qs= a?t.querySelectorAll(e):void 0}:function(e,t){var n,r=3D[],i=3D0,o=3Dt.getE= lementsByTagName(e);if("*"=3D=3D=3De){while(n=3Do[i++])1=3D=3D=3Dn.nodeType= &&r.push(n);return r}return o},b.find.CLASS=3Dd.getElementsByClassName&&fun= ction(e,t){if("undefined"!=3Dtypeof t.getElementsByClassName&&E)return t.ge= tElementsByClassName(e)},s=3D[],y=3D[],(d.qsa=3DK.test(C.querySelectorAll))= &&(ce(function(e){var t;a.appendChild(e).innerHTML=3D"<= select id=3D'"+S+"-\r\\' msallowcapture=3D''>