remove CDN

This commit is contained in:
Daeng Deni Mardaeni
2024-10-13 06:45:44 +07:00
parent cb540a52d5
commit e02cfe023d

View File

@@ -1,5 +1,3 @@
<script type="module" src="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<script tipe="module"> <script tipe="module">
function removeErrorCssMsg() { function removeErrorCssMsg() {
$(".inputku").removeClass("border-danger"); $(".inputku").removeClass("border-danger");
@@ -9,14 +7,14 @@ function removeErrorCssMsg() {
function tandaPemisahTitik(b){ function tandaPemisahTitik(b){
var _minus = false; var _minus = false;
if (b<0) _minus = true; if (b<0) _minus = true;
b = b.toString(); b = b.toString();
b=b.replace(".",""); b=b.replace(".","");
b=b.replace("-",""); b=b.replace("-","");
c = ""; c = "";
panjang = b.length; panjang = b.length;
j = 0; j = 0;
for (i = panjang; i > 0; i--){ for (i = panjang; i > 0; i--){
j = j + 1; j = j + 1;
if (((j % 3) == 1) && (j != 1)){ if (((j % 3) == 1) && (j != 1)){
@@ -25,15 +23,15 @@ function tandaPemisahTitik(b){
c = b.substr(i-1,1) + c; c = b.substr(i-1,1) + c;
} }
} }
if (_minus) c = "-" + c ; if (_minus) c = "-" + c ;
return c; return c;
} }
function numbersonly(ini, e){ function numbersonly(ini, e){
if (e.keyCode>=49){ if (e.keyCode>=49){
if(e.keyCode<=57){ if(e.keyCode<=57){
a = ini.value.toString().replace(".",""); a = ini.value.toString().replace(".","");
b = a.replace(/[^\d]/g,""); b = a.replace(/[^\d]/g,"");
@@ -56,7 +54,7 @@ function numbersonly(ini, e){
} }
} }
else { else {
return false; return false;
} }
}else if (e.keyCode==48){ }else if (e.keyCode==48){
a = ini.value.replace(".","") + String.fromCharCode(e.keyCode); a = ini.value.replace(".","") + String.fromCharCode(e.keyCode);
@@ -83,7 +81,7 @@ function numbersonly(ini, e){
a = ini.value.replace(".",""); a = ini.value.replace(".","");
b = a.replace(/[^\d]/g,""); b = a.replace(/[^\d]/g,"");
b = b.substr(0,b.length -1); b = b.substr(0,b.length -1);
if (tandaPemisahTitik(b)!=""){ if (tandaPemisahTitik(b)!=""){
ini.value = tandaPemisahTitik(b); ini.value = tandaPemisahTitik(b);
} else { } else {
@@ -101,4 +99,4 @@ function numbersonly(ini, e){
} }
} }
</script> </script>