indra / index.html
ExplodingCB2's picture
Show a progress bar while the forecast loads
538befb verified
Raw History Blame Contribute Delete
3.35 kB
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Indra</title>
<meta name="description" content="Hour-by-hour temperature, wind and pressure forecasts for US cities from Indra-3M, a tiny weather model, next to the National Weather Service forecast.">
<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><style>path{stroke:%23000}@media (prefers-color-scheme:dark){path{stroke:%23fff}}</style><path d='M50 5 L88.97 27.5 L88.97 72.5 L50 95 L11.03 72.5 L11.03 27.5Z M57.87 28.39 L72.65 46.01 L64.78 67.62 L42.13 71.61 L27.35 53.99 L35.22 32.38Z M57.87 28.39 L50 5 M72.65 46.01 L88.97 27.5 M64.78 67.62 L88.97 72.5 M42.13 71.61 L50 95 M27.35 53.99 L11.03 72.5 M35.22 32.38 L11.03 27.5 M72.65 46.01 L50 50 L42.13 71.61 M50 50 L35.22 32.38' fill='none' stroke-width='9' stroke-linecap='round' stroke-linejoin='round'/></svg>">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Sora:wght@600&text=Indra&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css">
</head>
<body>
<header class="head">
<h1><a class="brand" href="./" aria-label="Indra"><svg class="mark" viewBox="0 0 100 100" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="7" stroke-linecap="round" stroke-linejoin="round"><path d="M50 5 L88.97 27.5 L88.97 72.5 L50 95 L11.03 72.5 L11.03 27.5Z M57.87 28.39 L72.65 46.01 L64.78 67.62 L42.13 71.61 L27.35 53.99 L35.22 32.38Z M57.87 28.39 L50 5 M72.65 46.01 L88.97 27.5 M64.78 67.62 L88.97 72.5 M42.13 71.61 L50 95 M27.35 53.99 L11.03 72.5 M35.22 32.38 L11.03 27.5 M72.65 46.01 L50 50 L42.13 71.61 M50 50 L35.22 32.38"/></svg><span class="word">Indra</span></a></h1>
<form id="place-form" class="place" role="search" autocomplete="off">
<label class="sr" for="place">City or airport</label>
<input id="place" type="search" placeholder="City or airport" enterkeyhint="go" role="combobox" aria-autocomplete="list" aria-expanded="false" aria-controls="place-list">
<ul id="place-list" class="place-list" role="listbox" aria-label="Matching places" hidden></ul>
</form>
<nav class="ctl">
<a href="about.html">About the model</a>
<span id="updated" class="dim"></span>
<button id="units" type="button" aria-label="Switch units">°F</button>
</nav>
</header>
<main>
<section class="strip-wrap" aria-labelledby="strip-h">
<div class="strip-head">
<h2 id="strip-h"><span id="where"></span> <span id="differ-sum" class="vs"></span></h2>
</div>
<p id="place-note" class="yesterday"></p>
<div id="status" class="status" hidden>
<p id="status-text" role="status"></p>
<div id="bar" class="bar" role="progressbar" aria-label="Forecast progress" aria-valuemin="0" aria-valuemax="100"><i></i></div>
</div>
<div id="forecast">
<p id="yesterday" class="yesterday"></p>
<div class="strip">
<div id="strip-labels" class="strip-labels"></div>
<div id="strip-scroll" class="strip-scroll"><svg id="strip-svg"></svg></div>
</div>
</div>
</section>
</main>
<script src="engine.js"></script>
<script src="app.js"></script>
</body>
</html>