This repository has been archived on 2024-10-29. You can view files and clone it, but cannot push or open issues or pull requests.
FunctionProject/views/error404.php
2019-08-16 12:05:56 +02:00

36 lines
1.2 KiB
PHP

<!-- Header -->
<?php include("../incl/header.php");?>
<!-- Menu -->
<?php include("../incl/menu.php");?>
<!-- Page Content -->
<div class="container">
<h1 class="mt-4 text-center"><span class="yellow-color">La météo</span> :</h1>
<p class="pt-3 text-center">Affiche la météo et l'heure local selon la ville.</p>
<div class="form-group">
<label for="cityName">Entrez le nom d'une ville :</label>
<input name="cityName" type="text" id="cityName" placeholder="(e.g : Paris)" class="form-control">
<br>
<div class="form-row text-center">
<div class="col-12">
<button type="submit" id="submitWeatherRequest" class="btn btn-dark text-center">Envoyer</button>
</div>
</div>
<br> <br>
<p class="results text-center">La ville que vous avez rentré n'existe pas (dans l'API).</p>
</div>
</div>
<script>
$(function () {
$("#cityName").click(function() {
document.location.replace("../views/function-views/weatherRequest.php");
});
$("#submitWeatherRequest").click(function() {
document.location.replace("../views/function-views/weatherRequest.php");
});
})
</script>
<!-- Footer -->
<?php include("../incl/footer.php");?>