This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
2022-01-19 12:40:40 +00:00
|
|
|
$(document).ready(function() {
|
|
|
|
$("#type").on("change", deviceInputs);
|
2022-01-24 12:48:16 +00:00
|
|
|
deviceInputs();
|
2022-01-19 12:40:40 +00:00
|
|
|
})
|
|
|
|
|
|
|
|
function deviceInputs() {
|
|
|
|
if ($("#type").val() == 'Monitor') {
|
|
|
|
$("#screen").show();
|
|
|
|
$("#resolution").show();
|
|
|
|
$("#imei").hide();
|
|
|
|
$("#meid").hide();
|
|
|
|
} else if (['Smartphone', 'Cellphone', 'Tablet'].includes($("#type").val())) {
|
|
|
|
$("#screen").hide();
|
|
|
|
$("#resolution").hide();
|
|
|
|
$("#imei").show();
|
|
|
|
$("#meid").show();
|
|
|
|
} else {
|
|
|
|
$("#screen").hide();
|
|
|
|
$("#resolution").hide();
|
|
|
|
$("#imei").hide();
|
|
|
|
$("#meid").hide();
|
|
|
|
}
|
|
|
|
}
|