This repository has been archived by the owner on Oct 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
251f952
commit 2079ef5
Showing
5 changed files
with
121 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
@extends("metar-base") | ||
|
||
@section("title", "Chart Vac") | ||
|
||
|
||
@include("navbar") | ||
|
||
@section('content') | ||
|
||
<div class="container"> | ||
<p class="fs-1">VAC / ULM </p> | ||
<form action="{{ route("vac.icao", ["icao"])}}" method="get"> | ||
<div class="form-group"> | ||
<label for="icao2">ICAO</label> | ||
<input type="text" class="form-control" id="searchicao" name="icao" placeholder="Enter ICAO"> | ||
<div class="form-text" id="basic-addon4"></div> | ||
<button type="submit" id="submit-btn" class="btn btn-dark mt-2">Submit</button> | ||
</div> | ||
|
||
</form> | ||
|
||
|
||
<div id="status"> | ||
<hr> | ||
<p class="fs-3"> Check statut </p> | ||
</div> | ||
|
||
</div> | ||
|
||
|
||
|
||
@endsection | ||
|
||
<script> | ||
//documment ready change to innerHTML | ||
document.addEventListener("DOMContentLoaded", function(event) { | ||
document.getElementById("status").style.display = "none"; | ||
document.getElementById("submit-btn").className = "btn btn-dark mt-2"; | ||
document.getElementById("basic-addon4").innerHTML = "We are searching for the VAC of the aerodrome or ULM."; | ||
document.getElementById("searchicao").addEventListener("input", function(event) { | ||
document.getElementById("basic-addon4").innerHTML = "We are searching for the VAC of the aerodrome or ULM."; | ||
if (event.target.value.length == 4) { | ||
var searchicao = document.getElementById("searchicao").value; | ||
document.getElementById("basic-addon4").innerHTML = "We are searching for the VAC of the aerodrome"; | ||
document.getElementById("submit-btn").className = "btn btn-success mt-2"; | ||
document.getElementById("submit-btn").disabled = false; | ||
} | ||
if (event.target.value.length == 6) { | ||
var searchicao = document.getElementById("searchicao").value; | ||
document.getElementById("basic-addon4").innerHTML = "We are searching for the VAC of the ULM"; | ||
document.getElementById("submit-btn").className = "btn btn-success mt-2"; | ||
} else { | ||
} | ||
}); | ||
}); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters