-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtest.html
38 lines (37 loc) · 1.75 KB
/
test.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<html>
<head>
<title>MetPy Skew-T in PyScript</title>
<meta charset="utf-8">
<link rel="stylesheet" href="https://pyscript.net/releases/2024.11.1/core.css" />
<script type="module" src="https://pyscript.net/releases/2024.11.1/core.js"></script>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-4bw+/aepP/YC94hEpVNVgiZdgIC5+VKNBQNGCHeKRQN+PtmoHDEXuppvnDJzQIu9" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-HwwvtgBNo3bZJJLYd8oVXjrBZt8cqVSpeBNS5n7C8IVInixGAoxmnlMuBnhbgrkm" crossorigin="anonymous"></script>
<script type="py" src="plot.py" config="pyscript.toml"></script>
<style>
#skewt img {
display: inline-block;
}
</style>
</head>
<body>
<div class="grid">
<h1 class="text-3xl font-bold uppercase text-gray-800">MetPy SkewT PyScript Demo</h1>
<div>
<label class="form-label" for="station_id">Station:</label>
<input id="station_id" class="border rounded" type="text" value="KOUN">
</div>
<div>
<label class="form-label" for="datetime">Date:</label>
<input id="datetime" class="border rounded" type="datetime-local" value="1999-05-03T12:00">
</div>
<div>
<button id="update" class="btn btn-primary" type="submit" py-click="get_data_clicked">Get Data</button>
</div>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" role="switch" id="showprofile" py-click="show_profile_clicked()">
<label class="form-check-label" for="showprofile">Show Profile</label>
</div>
<div id="skewt"></div>
</div>
</body>
</html>