Fix variables, files term
This commit is contained in:
Vendored
+2
-2
@@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
let button_check_mykad = document.getElementById("button_check_mykad");
|
let button_read_mykad = document.getElementById("button_read_mykad");
|
||||||
|
|
||||||
let getMyKadDetail = () => {
|
let getMyKadDetail = () => {
|
||||||
return fetch(mykad_reader_endpoint).then((response) => response.json());
|
return fetch(mykad_reader_endpoint).then((response) => response.json());
|
||||||
@@ -95,4 +95,4 @@ let populateDaftarPelangganModal = (data) => {
|
|||||||
$('#daftar_pelanggan').modal('show');
|
$('#daftar_pelanggan').modal('show');
|
||||||
};
|
};
|
||||||
|
|
||||||
button_check_mykad.addEventListener("click", handleMyKadReader);
|
button_read_mykad.addEventListener("click", handleMyKadReader);
|
||||||
|
|||||||
@@ -37,6 +37,7 @@
|
|||||||
<button class="btn btn-outline-primary" type="submit" id="button-addon2">Cari</button>
|
<button class="btn btn-outline-primary" type="submit" id="button-addon2">Cari</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<span class="btn btn-outline-primary" id="button_read_mykad">Baca MyKad</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
@@ -895,10 +896,10 @@
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<script>
|
<script>
|
||||||
// mycard-scanner endpoint initialization
|
// mycard-read endpoint initialization
|
||||||
let mykad_reader_endpoint = "{{ config('mykad-reader.endpoint') }}";
|
let mykad_reader_endpoint = "{{ config('mykad-reader.endpoint') }}";
|
||||||
let wakil_caricustomer_endpoint = "{{ route('wakil.caricustomer') }}";
|
let wakil_caricustomer_endpoint = "{{ route('wakil.caricustomer') }}";
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
<script src="{{ asset('js/mycard-reader.js') }}"></script>
|
<script src="{{ asset('js/mykad-reader.js') }}"></script>
|
||||||
@endsection
|
@endsection
|
||||||
|
|||||||
Reference in New Issue
Block a user