| 
									
										
										
										
											2023-10-23 03:23:51 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <style> | 
					
						
							|  |  |  | /*Legend specific*/ | 
					
						
							|  |  |  | .legend { | 
					
						
							|  |  |  |   padding: 10px 10px 10px 10px; | 
					
						
							|  |  |  |   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"> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	<br> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-23 17:06:34 +08:00
										 |  |  | 	      <!-- Award Info Box --> | 
					
						
							|  |  |  |   <br> | 
					
						
							|  |  |  |         <div id="awardInfoButton"> | 
					
						
							|  |  |  |             <script> | 
					
						
							|  |  |  |             var lang_awards_info_button = "<?php echo lang('awards_info_button'); ?>"; | 
					
						
							| 
									
										
										
										
											2023-10-23 17:13:09 +08:00
										 |  |  |             var lang_award_info_ln1 = "<?php echo lang('awards_ja_gridmaster_description_ln1'); ?>"; | 
					
						
							|  |  |  |             var lang_award_info_ln2 = "<?php echo lang('awards_ja_gridmaster_description_ln2'); ?>"; | 
					
						
							|  |  |  |             var lang_award_info_ln3 = "<?php echo lang('awards_ja_gridmaster_description_ln3'); ?>"; | 
					
						
							|  |  |  |             var lang_award_info_ln4 = "<?php echo lang('awards_ja_gridmaster_description_ln4'); ?>"; | 
					
						
							| 
									
										
										
										
											2023-10-23 17:06:34 +08:00
										 |  |  |             </script> | 
					
						
							|  |  |  |             <h2><?php echo $page_title; ?></h2>
 | 
					
						
							| 
									
										
										
										
											2023-11-14 20:35:53 +08:00
										 |  |  |             <button type="button" class="btn btn-sm btn-primary me-1" id="displayAwardInfo"><?php echo lang('awards_info_button'); ?></button>
 | 
					
						
							| 
									
										
										
										
											2023-10-23 17:06:34 +08:00
										 |  |  |         </div> | 
					
						
							|  |  |  |         <!-- End of Award Info Box --> | 
					
						
							| 
									
										
										
										
											2023-10-23 03:23:51 +08: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> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <div id="gridmapcontainer"> | 
					
						
							|  |  |  | 	<div id="gridsquare_map" style="width: 100%; height: 800px"></div> | 
					
						
							|  |  |  | </div> | 
					
						
							|  |  |  | <div class="coordinates d-flex"> | 
					
						
							| 
									
										
										
										
											2023-11-05 22:31:16 +08:00
										 |  |  |         <div class="cohidden"><?php echo lang('gen_hamradio_latitude')?>: </div>
 | 
					
						
							| 
									
										
										
										
											2023-11-14 20:35:53 +08:00
										 |  |  |         <div class="cohidden col-auto text-success fw-bold" id="latDeg"></div> | 
					
						
							| 
									
										
										
										
											2023-11-05 22:31:16 +08:00
										 |  |  |         <div class="cohidden"><?php echo lang('gen_hamradio_longitude')?>: </div>
 | 
					
						
							| 
									
										
										
										
											2023-11-14 20:35:53 +08:00
										 |  |  |         <div class="cohidden col-auto text-success fw-bold" id="lngDeg"></div> | 
					
						
							| 
									
										
										
										
											2023-11-05 22:31:16 +08:00
										 |  |  |         <div class="cohidden"><?php echo lang('gen_hamradio_gridsquare')?>: </div>
 | 
					
						
							| 
									
										
										
										
											2023-11-14 20:35:53 +08:00
										 |  |  |         <div class="cohidden col-auto text-success fw-bold" id="locator"></div> | 
					
						
							| 
									
										
										
										
											2023-11-05 22:31:16 +08:00
										 |  |  |         <div class="cohidden"><?php echo lang('gen_hamradio_distance')?>: </div>
 | 
					
						
							| 
									
										
										
										
											2023-11-14 20:35:53 +08:00
										 |  |  |         <div class="cohidden col-auto text-success fw-bold" id="distance"></div> | 
					
						
							| 
									
										
										
										
											2023-11-05 22:31:16 +08:00
										 |  |  |         <div class="cohidden"><?php echo lang('gen_hamradio_bearing')?>: </div>
 | 
					
						
							| 
									
										
										
										
											2023-11-14 20:35:53 +08:00
										 |  |  |         <div class="cohidden col-auto text-success fw-bold" id="bearing"></div> | 
					
						
							| 
									
										
										
										
											2023-10-23 03:23:51 +08:00
										 |  |  | </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 . '";'; | 
					
						
							|  |  |  |     echo 'var gridsquares_gridsquares_lotw = "' . $gridsquares_gridsquares_lotw . '";'; | 
					
						
							|  |  |  |     echo 'var gridsquares_gridsquares_paper = "' . $gridsquares_gridsquares_paper . '";'; | 
					
						
							|  |  |  | ?>
 | 
					
						
							|  |  |  | </script> |