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">
function removeErrorCssMsg() {
$(".inputku").removeClass("border-danger");
@@ -9,14 +7,14 @@ function removeErrorCssMsg() {
function tandaPemisahTitik(b){
var _minus = false;
if (b<0) _minus = true;
b = b.toString();
b=b.replace(".","");
b=b.replace("-","");
c = "";
panjang = b.length;
j = 0;
for (i = panjang; i > 0; i--){
j = j + 1;
if (((j % 3) == 1) && (j != 1)){
@@ -25,15 +23,15 @@ function tandaPemisahTitik(b){
c = b.substr(i-1,1) + c;
}
}
if (_minus) c = "-" + c ;
return c;
}
function numbersonly(ini, e){
if (e.keyCode>=49){
if(e.keyCode<=57){
a = ini.value.toString().replace(".","");
b = a.replace(/[^\d]/g,"");
@@ -56,7 +54,7 @@ function numbersonly(ini, e){
}
}
else {
return false;
return false;
}
}else if (e.keyCode==48){
a = ini.value.replace(".","") + String.fromCharCode(e.keyCode);
@@ -83,7 +81,7 @@ function numbersonly(ini, e){
a = ini.value.replace(".","");
b = a.replace(/[^\d]/g,"");
b = b.substr(0,b.length -1);
if (tandaPemisahTitik(b)!=""){
ini.value = tandaPemisahTitik(b);
} else {
@@ -101,4 +99,4 @@ function numbersonly(ini, e){
}
}
</script>
</script>