2023-10-19 12:00:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
/*Legend specific*/
|
|
|
|
.legend {
|
2023-10-20 14:32:03 +00:00
|
|
|
padding: 10px 10px 10px 10px;
|
2023-10-19 12:00:20 +00:00
|
|
|
font: 14px Arial, Helvetica, sans-serif;
|
|
|
|
background: white;
|
|
|
|
line-height: 24px;
|
|
|
|
color: #555;
|
|
|
|
border-radius: 10px;
|
|
|
|
}
|
|
|
|
.legend h4 {
|
|
|
|
text-align: center;
|
|
|
|
font-size: 16px;
|
|
|
|
margin: 2px 12px 8px;
|
|
|
|
color: #777;
|
|
|
|
}
|
|
|
|
.legend span {
|
|
|
|
position: relative;
|
|
|
|
bottom: 3px;
|
|
|
|
}
|
|
|
|
.legend i {
|
|
|
|
width: 18px;
|
|
|
|
height: 18px;
|
|
|
|
float: left;
|
|
|
|
margin: 0 8px 0 0;
|
|
|
|
}
|
|
|
|
.coordinates {
|
|
|
|
justify-content: center;
|
|
|
|
align-items: stretch;
|
|
|
|
}
|
|
|
|
.cohidden {
|
|
|
|
display:none;
|
|
|
|
}
|
|
|
|
#latDeg, #lngDeg {
|
|
|
|
width: 170px;
|
|
|
|
}
|
|
|
|
#locator, #distance, #bearing {
|
|
|
|
width: 120px;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
<div class="container">
|
2023-10-20 21:45:10 +00:00
|
|
|
<!-- Award Info Box -->
|
|
|
|
<br>
|
|
|
|
<div id="awardInfoButton">
|
|
|
|
<script>
|
|
|
|
var lang_awards_info_button = "<?php echo lang('awards_info_button'); ?>";
|
2023-10-23 08:36:03 +00:00
|
|
|
var lang_award_info_ln1 = "<?php echo lang('awards_us_gridmaster_description_ln1'); ?>";
|
|
|
|
var lang_award_info_ln2 = "<?php echo lang('awards_us_gridmaster_description_ln2'); ?>";
|
|
|
|
var lang_award_info_ln3 = "<?php echo lang('awards_us_gridmaster_description_ln3'); ?>";
|
|
|
|
var lang_award_info_ln4 = "<?php echo lang('awards_us_gridmaster_description_ln4'); ?>";
|
2023-10-20 21:45:10 +00:00
|
|
|
</script>
|
|
|
|
<h2><?php echo $page_title; ?></h2>
|
|
|
|
<button type="button" class="btn btn-sm btn-primary mr-1" id="displayAwardInfo"><?php echo lang('awards_info_button'); ?></button>
|
|
|
|
</div>
|
|
|
|
<!-- End of Award Info Box -->
|
2023-10-19 12:00:20 +00:00
|
|
|
<?php if($this->session->flashdata('message')) { ?>
|
|
|
|
<!-- Display Message -->
|
|
|
|
<div class="alert-message error">
|
|
|
|
<p><?php echo $this->session->flashdata('message'); ?></p>
|
|
|
|
</div>
|
|
|
|
<?php } ?>
|
|
|
|
</div>
|
|
|
|
|
2023-10-20 10:30:07 +00:00
|
|
|
|
2023-10-19 12:00:20 +00:00
|
|
|
<div id="gridmapcontainer">
|
|
|
|
<div id="gridsquare_map" style="width: 100%; height: 800px"></div>
|
|
|
|
</div>
|
|
|
|
<div class="coordinates d-flex">
|
|
|
|
<div class="cohidden">Latitude: </div>
|
|
|
|
<div class="cohidden col-auto text-success font-weight-bold" id="latDeg"></div>
|
|
|
|
<div class="cohidden">Longitude: </div>
|
|
|
|
<div class="cohidden col-auto text-success font-weight-bold" id="lngDeg"></div>
|
|
|
|
<div class="cohidden">Gridsquare: </div>
|
|
|
|
<div class="cohidden col-auto text-success font-weight-bold" id="locator"></div>
|
|
|
|
<div class="cohidden">Distance: </div>
|
|
|
|
<div class="cohidden col-auto text-success font-weight-bold" id="distance"></div>
|
|
|
|
<div class="cohidden">Bearing: </div>
|
|
|
|
<div class="cohidden col-auto text-success font-weight-bold" id="bearing"></div>
|
|
|
|
</div>
|
|
|
|
<script>var gridsquaremap = true;
|
|
|
|
var type = "worked";
|
|
|
|
<?php
|
|
|
|
echo 'var jslayer ="' . $layer .'";';
|
|
|
|
echo "var jsattribution ='" . $attribution . "';";
|
|
|
|
echo "var homegrid ='" . strtoupper($homegrid[0]) . "';";
|
|
|
|
|
|
|
|
echo 'var gridsquares_gridsquares = "' . $gridsquares_gridsquares . '";';
|
|
|
|
echo 'var gridsquares_gridsquares_worked = "' . $gridsquares_gridsquares_worked . '";';
|
2023-10-19 16:12:52 +00:00
|
|
|
echo 'var gridsquares_gridsquares_lotw = "' . $gridsquares_gridsquares_lotw . '";';
|
|
|
|
echo 'var gridsquares_gridsquares_paper = "' . $gridsquares_gridsquares_paper . '";';
|
2023-10-19 12:00:20 +00:00
|
|
|
?>
|
|
|
|
</script>
|