Pretty Code

This commit is contained in:
HB9HIL
2023-10-14 20:16:44 +02:00
parent 2fe5720da9
commit 262c0ea888

View File

@@ -62,20 +62,20 @@
</div>
<!-- DXCC Deleted Warning -->
<script>
var lang_station_location_dxcc_warning = '<?php echo lang('station_location_dxcc_warning'); ?>';
</script>
<script>
document.getElementById('dxcc_select').addEventListener('change', function() {
var selectedOption = this.options[this.selectedIndex];
var isDeleted = selectedOption.textContent.includes('<?php echo lang('gen_hamradio_deleted_dxcc'); ?>');
var lang_station_location_dxcc_warning = '<?php echo lang('station_location_dxcc_warning'); ?>';
</script>
<script>
document.getElementById('dxcc_select').addEventListener('change', function() {
var selectedOption = this.options[this.selectedIndex];
var isDeleted = selectedOption.textContent.includes('<?php echo lang('gen_hamradio_deleted_dxcc'); ?>');
if (isDeleted) {
this.style.border = '2px solid red';
warningMessage.innerText = lang_station_location_dxcc_warning;
} else {
this.style.border = '';
warningMessage.innerText = "";
}
if (isDeleted) {
this.style.border = '2px solid red';
warningMessage.innerText = lang_station_location_dxcc_warning;
} else {
this.style.border = '';
warningMessage.innerText = "";
}
});
</script>