Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
BusyBird15 authored May 27, 2024
1 parent 4ec5e72 commit 7e68fba
Show file tree
Hide file tree
Showing 3 changed files with 812 additions and 0 deletions.
136 changes: 136 additions & 0 deletions radar.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
<!DOCTYPE html>
<html>
<head>
<!--Tab title and icon-->
<title>Live Radar - The Weather Team </title>
<link rel="icon" type="image/png" href="twt.png">

<!--Idk what these do...-->
<meta charset="utf-8"/>
<meta content="width=device-width, initial-scale=1.0" name="viewport">

<!--Links to the Leaflet CSS/JS-->
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"></script>
<link href="https://unpkg.com/[email protected]/dist/leaflet.css" rel="stylesheet"/>

<!--Links to the Google icon set-->
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,[email protected],100..700,0..1,-50..200" />

<!--CSS-->
<link rel="stylesheet" href="radarstyle.css"></link>
<!--JS is added at the end of the body after elements are constructed-->

</head>
<body>
<div style="position: absolute; left: 50%; bottom: 20px;">
<div class="overlay-object" style="position: relative; left: -50%;">
<ul style="text-align: center; padding-left: 0px; margin: 0px;">
<li class="sli"><button onclick="stop(); showFrame(animationPosition - 1); return;" class="material-symbols-outlined" style="font-size: 20px;">skip_previous</button></li>
<li class="sli"><button onclick="playStop();" id="stbtn" class="material-symbols-outlined" style="font-size: 20px;">play_arrow</button></li>
<li class="sli"><button onclick="stop(); showFrame(animationPosition + 1); return;" class="material-symbols-outlined" style="font-size: 20px; margin-right: 10px;">skip_next</button></li>
<li class="sli"><button onclick="refresh();" class="material-symbols-outlined" style="font-size: 20px;">refresh</button></li>
<li class="sli"><button onclick="settings();" id="modalBtn" class="material-symbols-outlined" style="font-size: 20px;">settings</button></li>
<li class="sli"><button onclick="toggleLayerModal();" id="layerBtn" class="material-symbols-outlined" style="font-size: 20px;">layers</button></li>
<li class="sli"><button onclick="toggleInfoModal();" id="layerBtn" class="material-symbols-outlined" style="font-size: 20px;">info</button></li>
</ul>
</div>
</div>

<div style="position: absolute; left: 50%; top: 20px;">
<div class="overlay-object" id="timestamp" style="cursor: default; text-align:center; position: relative; left: -50%;">Loading...</div>
</div>

<div style="position: absolute; left: 50%; bottom: 90px;">
<div id="settingsModal" class="overlay-object" style="padding: 10px; display: none; position: relative; left: -50%;">
<button onclick="closeSettings();" class="close"><span class="material-symbols-outlined" style="font-size: 16px;">
close
</span></button>
<br><br>
<p style="margin-bottom: 1px; margin-top: 1px;">Radar Type</p>
<input type="radio" name="kind" checked="checked" onchange="setKind('radar')">Radar <input type="radio" name="kind" onchange="setKind('satellite')">Infrared Satellite<br>
<p style="margin-bottom: 1px;">Radar Time</p>
<input type="radio" name="duration" checked="checked" onchange="setKind('past')">Past <input type="radio" name="duration" onchange="setKind('future')">Past + Future<br>

<p style="margin-bottom: 1px;">Radar Opacity</p>
<input width="250px" type="range" min="1" max="100" value="75" class="slider" id="radop" onchange="radarOpacityChange()" title="Radar Opacity"><br>
<p style="margin-bottom: 1px;">Alert Fill Opacity</p>
<input width="250px" type="range" min="1" max="100" value="40" class="slider" id="alop" onchange="alertOpacityChange()" title="Alert Opacity"><br>

<p style="margin-bottom: 1px;">Radar Color Scheme</p>
<select id="colors" onchange="setColors(); return;">
<option value="0">Black and White Values</option>
<option value="1">Original</option>
<option value="2">Universal Blue</option>
<option value="3">TITAN</option>
<option value="4">The Weather Channel</option>
<option value="5">Meteored</option>
<option value="6" selected="selected">The Weather Team</option>
<option value="7">RAINBOW @ SELEX-SI</option>
<option value="8">Dark Sky</option>
</select>
</div>
</div>

<div style="position: absolute; left: 50%; bottom: 90px;">
<div id="layerModal" class="overlay-object" style="display: none; position: relative; left: -50%; width: 340px; height: 150px; background-color: black;">
<div class="alertlist" style="border-left: 0px;">
<button onclick="closeSettings();" class="close"><span class="material-symbols-outlined" style="font-size: 16px;">close</span></button>
<br>
<input style="padding-left: 5px;" type="checkbox" id="tor" onchange="torChange()" name="tor" checked="checked" value="tor"><p style="padding-left: 5px; color: red; margin: 4px; display: inline;"><b>RED: </b>Tornado Warning</p>
<br>
<input style="padding-left: 5px;" type="checkbox" id="svr" onchange="svrChange()" name="svr" checked="checked" value="svr"><p style="padding-left: 5px; color: rgb(236, 193, 0); margin: 4px; display: inline;"><b>YELLLOW: </b>Severe Thunderstorm Warning</p>
<br>
<input style="padding-left: 5px;" type="checkbox" id="flood" onchange="floodChange()" name="flood" checked="checked" value="flood"><p style="padding-left: 2px; color: magenta; margin: 4px; display: inline;"><b>MAGENTA: </b>Flood Warning</p>
<br>
<input style="padding-left: 5px;" type="checkbox" id="fflood" onchange="ffloodChange()" name="fflood" checked="checked" value="fflood"><p style="padding-left: 2px; color: green; margin: 4px; display: inline;"><b>GREEN: </b>Flash Flood Warning</p>
<br>
<input style="padding-left: 5px;" type="checkbox" id="spec" onchange="specChange()" name="spec" checked="checked" value="spec"><p style="padding-left: 5px; color: blue; margin: 4px; display: inline;"><b>BLUE: </b>Special Weather Statement</p>
<br>
<input style="padding-left: 5px;" type="checkbox" id="oth" onchange="othChange()" name="oth" checked="checked" value="oth"><p style="padding-left: 2px; color: orange; margin: 4px; display: inline;"><b>ORANGE: </b>Other</p>
</div>
</div>
</div>

<div style="position: absolute; left: 50%; bottom: 90px;">
<div id="infoModal" class="overlay-object" style="display: none; position: relative; left: -50%; width: 300px; height: 300px; background-color: black;">
<div class="alertlist" style="border-left: 0px; width: 300px;">
<button onclick="closeSettings();" class="close"><span class="material-symbols-outlined" style="font-size: 16px;">close</span></button>
<h2 style="margin: 10px;"><b>About this Page</b></h2><br>
<p style="padding-left: 10px;"><b>Built for </b><a href="https://busybird15.github.io/theweatherteam">The Weather Team</a> by <a href="https://x.com/busybird150">BusyBird15</a> (<a href="mailto:[email protected]">contact me</a>).</p>
<br>
<p style="padding-left: 10px;"><b>Radar Tiles</b> from <a href="https://rainviewer.com/api.html">RainViewer</a>.</p>
<p style="padding-left: 10px;"><b>Map Tiles</b> from <a href="https://leafletjs.com">Leaflet</a>.</p>
<p style="padding-left: 10px;"><b>Alerts</b> from <a href="https://www.weather.gov/documentation/services-web-api#/">NOAA's API</a>.</p>

</div>
</div>
</div>

<div class="overlay-object" style="border: 5px solid rgb(26, 26, 26); width: 360px; visibility: hidden; overflow-y: auto; margin-top: 10px; height: 50%; border-radius: 15px; -moz-border-radius: 10px; scrollbar-width: none; position: absolute; bottom: 20px; left: 20px;" id="alertDeets">
<div id="alert_title" style="display: flex; justify-content: center; width: auto; padding: 5px; border-radius: 5px; font-size: 20px; font-weight: bolder;"></div>
<p style="height:2px"></p>
<p id="alert_issued" style="padding-left: 5px; margin: 4px;">Unknown issuance</p>
<p id="alert_expiration" style="padding-left: 5px; margin: 4px;">Unknown expiration</p>
<p style="height:2px"></p>
<p id="alert_hazards" style="padding-left: 5px; margin: 4px;">Unknown issuance</p>
<p id="alert_impacts" style="padding-left: 5px; margin: 4px;">Unknown issuance</p>
<p style="height:2px"></p>
<p id="alert_areas" style="padding-left: 5px; margin: 4px;">Unknown areas</p>
<br>
<p id="alert_description" style="padding-left: 5px; margin: 4px;">Unknown description</p>
</div>

<!--The Weather Team attribution-->
<a style="color: white;" href="https://busybird15.github.io/theweatherteam">
<div class="overlay-object" style="display: flex; top: 20px; left: 65px;">
<img src="https://busybird15.github.io/assets/twt.png" width="40px" height="40px" style="border-radius: 10px;">
<p style="padding-left: 10px; margin: 12px 0px 10px 0px;"><b>Official Radar</b></p>
</div>
</a>

<div id="mapid" style="border-radius: 10px; position: absolute; top: 10px; left: 10px; bottom: 10px; right: 10px;"></div>


<!--Add JS after elements are added-->
<script src="radarscript.js"></script>
</body>
Loading

0 comments on commit 7e68fba

Please sign in to comment.