Add to activated grids and some minor beauty stuff
这个提交包含在:
		
							父节点
							
								
									43b2b51133
								
							
						
					
					
						当前提交
						4ab72e94c0
					
				
					共有  4 个文件被更改,包括 29 次插入 和 10 次删除
				
			
		|  | @ -25,13 +25,13 @@ | ||||||
| <div class="container"> | <div class="container"> | ||||||
| 	<?php if ($this->uri->segment(2) == "satellites") { ?>
 | 	<?php if ($this->uri->segment(2) == "satellites") { ?>
 | ||||||
| 		<div class="alert alert-success" role="alert"> | 		<div class="alert alert-success" role="alert"> | ||||||
| 			Confirmed is Green | Activated but not confirmed is Red | 			Confirmed is Green <span id="confirmed_grids"></span>| Activated but not confirmed is Red <span id="activated_grids"></span>| <span id="sum_grids"></span> | ||||||
| 		</div> | 		</div> | ||||||
| 	<?php } ?>
 | 	<?php } ?>
 | ||||||
| 
 | 
 | ||||||
| 	<?php if ($this->uri->segment(2) == "band") { ?>
 | 	<?php if ($this->uri->segment(2) == "band") { ?>
 | ||||||
| 		<div class="alert alert-success" role="alert"> | 		<div class="alert alert-success" role="alert"> | ||||||
| 			Confirmed is Green | Activated but not confirmed is Red <br> | 			Confirmed is Green <span id="confirmed_grids"></span>| Activated but not confirmed is Red <span id="worked_grids"></span>| <span id="sum_grids"></span><br> | ||||||
| 			[This map does not include satellite, internet or repeater QSOs] | 			[This map does not include satellite, internet or repeater QSOs] | ||||||
| 		</div> | 		</div> | ||||||
| 	<?php } ?>
 | 	<?php } ?>
 | ||||||
|  |  | ||||||
|  | @ -25,13 +25,13 @@ | ||||||
| <div class="container"> | <div class="container"> | ||||||
| 	<?php if ($this->uri->segment(2) == "satellites") { ?>
 | 	<?php if ($this->uri->segment(2) == "satellites") { ?>
 | ||||||
| 		<div class="alert alert-success" role="alert"> | 		<div class="alert alert-success" role="alert"> | ||||||
| 			Confirmed is Green <span id="confirmed_grids"></span> | Worked but not confirmed is Red <span id="worked_grids"></span> <span id="sum_grids"></span><br> | 			Confirmed is Green <span id="confirmed_grids"></span>| Worked but not confirmed is Red <span id="worked_grids"></span>|<span id="sum_grids"></span> | ||||||
| 		</div> | 		</div> | ||||||
| 	<?php } ?>
 | 	<?php } ?>
 | ||||||
| 
 | 
 | ||||||
| 	<?php if ($this->uri->segment(2) == "band") { ?>
 | 	<?php if ($this->uri->segment(2) == "band") { ?>
 | ||||||
| 		<div class="alert alert-success" role="alert"> | 		<div class="alert alert-success" role="alert"> | ||||||
| 			Confirmed is Green <span id="confirmed_grids"></span> | Worked but not confirmed is Red <span id="worked_grids"></span> <span id="sum_grids"></span><br> | 			Confirmed is Green <span id="confirmed_grids"></span>| Worked but not confirmed is Red <span id="worked_grids"></span>|<span id="sum_grids"></span><br> | ||||||
| 			[This map does not include satellite, internet or repeater QSOs] | 			[This map does not include satellite, internet or repeater QSOs] | ||||||
| 		</div> | 		</div> | ||||||
| 	<?php } ?>
 | 	<?php } ?>
 | ||||||
|  |  | ||||||
|  | @ -1270,14 +1270,14 @@ $(document).ready(function(){ | ||||||
| 
 | 
 | ||||||
|   if (grid_four_confirmed_count > 0) { |   if (grid_four_confirmed_count > 0) { | ||||||
|      var span = document.getElementById('confirmed_grids'); |      var span = document.getElementById('confirmed_grids'); | ||||||
|      span.innerText = span.textContent = '('+grid_four_confirmed_count+' grid squares)'; |      span.innerText = span.textContent = '('+grid_four_confirmed_count+' grid square'+(grid_four_confirmed_count != 1 ? 's' : '')+') '; | ||||||
|   } |   } | ||||||
|   if ((grid_four_count-grid_four_confirmed_count) > 0) { |   if ((grid_four_count-grid_four_confirmed_count) > 0) { | ||||||
|      var span = document.getElementById('worked_grids'); |      var span = document.getElementById('worked_grids'); | ||||||
|      span.innerText = span.textContent = '('+(grid_four_count-grid_four_confirmed_count)+' grid squares)'; |      span.innerText = span.textContent = '('+(grid_four_count-grid_four_confirmed_count)+' grid square'+(grid_four_count-grid_four_confirmed_count != 1 ? 's' : '')+') '; | ||||||
|   } |   } | ||||||
|   var span = document.getElementById('sum_grids'); |   var span = document.getElementById('sum_grids'); | ||||||
|   span.innerText = span.textContent = '| Total Count: '+grid_four_count+' grid squares'; |   span.innerText = span.textContent = ' Total Count: '+grid_four_count+' grid square'+(grid_four_count != 1 ? 's' : ''); | ||||||
| 
 | 
 | ||||||
|   var maidenhead = L.maidenhead().addTo(map); |   var maidenhead = L.maidenhead().addTo(map); | ||||||
| 
 | 
 | ||||||
|  | @ -1390,10 +1390,29 @@ $(document).ready(function(){ | ||||||
|   var grid_four = <?php echo $grid_4char; ?>;
 |   var grid_four = <?php echo $grid_4char; ?>;
 | ||||||
|   var grid_six = <?php echo $grid_6char; ?>;
 |   var grid_six = <?php echo $grid_6char; ?>;
 | ||||||
| 
 | 
 | ||||||
|  |   var grid_two_count = grid_two.length; | ||||||
|  |   var grid_four_count = grid_four.length; | ||||||
|  |   var grid_six_count = grid_six.length; | ||||||
|  | 
 | ||||||
|   var grid_two_confirmed = <?php echo $grid_2char_confirmed; ?>;
 |   var grid_two_confirmed = <?php echo $grid_2char_confirmed; ?>;
 | ||||||
|   var grid_four_confirmed = <?php echo $grid_4char_confirmed; ?>;
 |   var grid_four_confirmed = <?php echo $grid_4char_confirmed; ?>;
 | ||||||
|   var grid_six_confirmed = <?php echo $grid_6char_confirmed; ?>;
 |   var grid_six_confirmed = <?php echo $grid_6char_confirmed; ?>;
 | ||||||
| 
 | 
 | ||||||
|  |   var grid_two_confirmed_count = grid_two_confirmed.length; | ||||||
|  |   var grid_four_confirmed_count = grid_four_confirmed.length; | ||||||
|  |   var grid_six_confirmed_count = grid_six_confirmed.length; | ||||||
|  | 
 | ||||||
|  |   if (grid_four_confirmed_count > 0) { | ||||||
|  |      var span = document.getElementById('confirmed_grids'); | ||||||
|  |      span.innerText = span.textContent = '('+grid_four_confirmed_count+' grid square'+(grid_four_confirmed_count != 1 ? 's' : '')+') '; | ||||||
|  |   } | ||||||
|  |   if ((grid_four_count-grid_four_confirmed_count) > 0) { | ||||||
|  |      var span = document.getElementById('activated_grids'); | ||||||
|  |      span.innerText = span.textContent = '('+(grid_four_count-grid_four_confirmed_count)+' grid square'+(grid_four_count-grid_four_confirmed_count != 1 ? 's' : '')+') '; | ||||||
|  |   } | ||||||
|  |   var span = document.getElementById('sum_grids'); | ||||||
|  |   span.innerText = span.textContent = ' Total Count: '+grid_four_count+' grid square'+(grid_four_count != 1 ? 's' : ''); | ||||||
|  | 
 | ||||||
|   var maidenhead = L.maidenhead().addTo(map); |   var maidenhead = L.maidenhead().addTo(map); | ||||||
| 
 | 
 | ||||||
|   map.on('click', onMapClick); |   map.on('click', onMapClick); | ||||||
|  |  | ||||||
|  | @ -100,14 +100,14 @@ | ||||||
| 
 | 
 | ||||||
|   if (grid_four_confirmed_count > 0) { |   if (grid_four_confirmed_count > 0) { | ||||||
|      var span = document.getElementById('confirmed_grids'); |      var span = document.getElementById('confirmed_grids'); | ||||||
|      span.innerText = span.textContent = '('+grid_four_confirmed_count+' grid squares)'; |      span.innerText = span.textContent = '('+grid_four_confirmed_count+' grid squares) '; | ||||||
|   } |   } | ||||||
|   if ((grid_four_count-grid_four_confirmed_count) > 0) { |   if ((grid_four_count-grid_four_confirmed_count) > 0) { | ||||||
|      var span = document.getElementById('worked_grids'); |      var span = document.getElementById('worked_grids'); | ||||||
|      span.innerText = span.textContent = '('+(grid_four_count-grid_four_confirmed_count)+' grid squares)'; |      span.innerText = span.textContent = '('+(grid_four_count-grid_four_confirmed_count)+' grid squares) '; | ||||||
|   } |   } | ||||||
|   var span = document.getElementById('sum_grids'); |   var span = document.getElementById('sum_grids'); | ||||||
|   span.innerText = span.textContent = '| Total Count: '+grid_four_count+' grid squares'; |   span.innerText = span.textContent = ' Total Count: '+grid_four_count+' grid squares'; | ||||||
| 
 | 
 | ||||||
|   var maidenhead = L.maidenhead().addTo(map); |   var maidenhead = L.maidenhead().addTo(map); | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		正在加载…
	
		在新工单中引用