fpc/packages/wasm-job/examples/leaflet/index.htm

109 lines
4.3 KiB
HTML

<!DOCTYPE html>
<html lang="fr"><head>
<meta http-equiv="Content-type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Free Pascal wasm-job Leaflet example</title>
<!-- taken in demojitsimeet de Michael Van Canneyt for Bootstrap test -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.3.1.js" type="text/javascript"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>
<!-- end add for bootstrap -->
<!-- Bulma / ZenFS -->
<link href="bulma.min.css" rel="stylesheet">
<script src="browser.min.js"></script>
<script src="browser.dom.js"></script>
<!-- end Bulma / ZenFS -->
<!-- Openstreetmap / Leaflet -->
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css"
integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY="
crossorigin=""/>
<!-- Make sure you put this AFTER Leaflet's CSS -->
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"
integrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo="
crossorigin=""></script>
<!-- end Openstreetmap / Leaflet -->
<script src="js_leaflet.js"></script>
<style>
</style>
</head>
<body>
<div class="container">
<div class="card">
<!--
<div class="card-header" id="chParameters">
<h5 class="mb-0">
<button class="btn btn-link" data-bs-toggle="collapse" data-bs-target="#Parameters" aria-expanded="true" aria-controls="Parameters">
Parameters ...
</button>
</h5>
</div>
-->
<div id="Parameters" class="collapse.show" aria-labelledby="chParameters">
<div class="card-body">
<div class="form-group">
<div class="form-floating">
<input id="iParameters_Latitude" type="text" class="form-control" aria-describedby="lParameters_Latitude" value="0"/>
<label for="iParameters_Latitude">Latitude</label>
<small id="lParameters_Latitude" class="form-text text-muted">
Latitude of the location for calculation.
</small>
</div>
<div class="form-floating">
<input id="iParameters_Longitude" type="text" class="form-control" aria-describedby="lParameters_Longitude" value="0"/>
<label for="iParameters_Longitude">Longitude</label>
<small id="lParameters_Longitude" class="form-text text-muted">
Longitude of the location for calculation, negative towards the West.
</small>
</div>
<button id='bCalculation' class="button is-primary" style="visibility: hidden;"> Re-Calculation</button>
</div>
</div>
</div>
</div>
<div id="dMap" style="height: 600px;"></div>
<div class="card">
<div class="card-header" id="chCalculation">
<h5 class="mb-0">
<button class="btn btn-link" data-bs-toggle="collapse" data-bs-target="#Calculation" aria-expanded="true" aria-controls="Calculation">
More calculations ...
</button>
</h5>
</div>
<div id="Calculation" class="collapse" aria-labelledby="chCalculation">
<div class="card-body">
<div class="form-group">
<div id='dCalculation_Result'>
</div>
</div>
</div>
</div>
</div>
<div class="card">
<div class="card-header" id="chConsole">
<h5 class="mb-0">
<button class="btn btn-link" data-bs-toggle="collapse" data-bs-target="#Console" aria-expanded="true" aria-controls="Console">
Console
</button>
</h5>
</div>
<div id="Console" class="collapse" aria-labelledby="chConsole">
<div class="card-body">
<div class="form-group">
<div class="box" id="pasjsconsole"></div>
</div>
</div>
</div>
</div>
</div>
<script>
rtl.showUncaughtExceptions=true;
rtl.run();
</script>
</body></html>