mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 02:14:13 +00:00
Move JS to separate file
This commit is contained in:
21
assets/js/sections/wae.js
Normal file
21
assets/js/sections/wae.js
Normal file
@@ -0,0 +1,21 @@
|
||||
$('#band2').change(function(){
|
||||
var band = $("#band2 option:selected").text();
|
||||
if (band != "SAT") {
|
||||
$("#sats").val('All');
|
||||
$("#orbits").val('All');
|
||||
$("#satrow").hide();
|
||||
$("#orbitrow").hide();
|
||||
} else {
|
||||
$("#satrow").show();
|
||||
$("#orbitrow").show();
|
||||
}
|
||||
});
|
||||
|
||||
$('#band2').change(); // trigger the change on fresh-load to hide/show SAT-Params
|
||||
|
||||
$('#sats').change(function(){
|
||||
var sat = $("#sats option:selected").text();
|
||||
$("#band2").val('SAT');
|
||||
if (sat != "All") {
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user