Introduction
Introduction Statistics Contact Development Disclaimer Help
tremove weather site - adamsgaard.dk - my academic webpage
git clone git://src.adamsgaard.dk/adamsgaard.dk
Log
Files
Refs
README
LICENSE
---
commit 5dcfa97fa8f03e4111cc3fb68d2d2e6fe5725ee8
parent 83376cde3fd09eee78ecde71207edd62d6e0e08b
Author: Anders Damsgaard <[email protected]>
Date: Wed, 1 Jan 2025 19:22:46 +0100
remove weather site
Diffstat:
D output/weather.html | 125 -----------------------------…
1 file changed, 0 insertions(+), 125 deletions(-)
---
diff --git a/output/weather.html b/output/weather.html
t@@ -1,125 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1">
-
- <script type="text/javascript">
- function getUrlVars() {
- var vars = {};
- var parts = window.location.href.replace(/[?&]+([^=&]+…
- function(m,ke…
- vars[key]…
- return vars;
- }
-
- var zip = getUrlVars()["z"];
- if (zip == "" || zip == undefined) {
- zip = 8000;
- }
- var lon, lat;
- if (zip == 1000) {
- lon = "55.68";
- lat = "12.57";
- } else if (zip == 7700) {
- lon = "56.96";
- lat = "8.70";
- } else if (zip == 7730) {
- lon = "57.10";
- lat = "8.72";
- } else if (zip == 8000) {
- lon = "56.16";
- lat = "10.20";
- } else if (zip == 8400) {
- lon = "56.24";
- lat = "10.58";
- } else if (zip == 9520) {
- lon = "56.84";
- lat = "9.89";
- }
- </script>
-
- <title id="pagetitle"></title>
-
- <style>
- body{
- margin:1em auto;
- max-width:40em;
- padding:0 .62em;
- font:1.2em/1.62 sans-serif;
- color:#4d4d4c;
- }
- h1,h2,h3 {
- text-align:center;
- color:#333;
- line-height:1.2;
- }
- a {
- color:#126b8c;
- text-decoration:none;
- }
- img {
- max-width:100%;
- padding:0.3em 0em;
- }
- @media print {
- body{
- max-width:none
- }
- }
- form {
- text-align:center;
- }
- </style>
-</head>
-<body>
-<article>
-<header>
-<h1 id="pageheader"></h1>
-<aside>
- <center>
- <p>
- <a href="?z=1000">København</a>,
- <a href="?z=7700">Thisted</a>,
- <a href="?z=7730">Hanstholm</a>,
- <a href="?z=8000">Aarhus</a>,
- <a href="?z=8400">Ebeltoft</a>
- </p>
- </center>
-</aside>
-</header>
-
-<div style="text-align:center">
- <img src="#" id="dmi-0-2" alt="0-2 days">
- <img src="#" id="dmi-3-9" alt="3-9 days">
- <img src="#" id="clearoutside" alt="Clear Outside forecast">
-</div>
-
-<form action="" method="get">
- <input type="text" placeholder="Postnummer" name="z">
- <input type="submit" value="Gå">
-</form>
-
-</article>
-
-<script>
- document.getElementById("pagetitle").innerHTML = "Vejrudsigt for " + z…
- document.getElementById("pageheader").innerHTML = "Vejrudsigt for " + …
-
- document.getElementById("dmi-0-2").setAttribute("src",
- "https://servlet.dmi.dk/byvejr/servlet/byvejr_dag1?by="+zip+"&…
-
- document.getElementById("dmi-3-9").setAttribute("src",
- "https://servlet.dmi.dk/byvejr/servlet/byvejr?by="+zip+"&tabel…
-
- if (lon && lat) {
- document.getElementById("clearoutside").style.visibility = "vi…
- document.getElementById("clearoutside").setAttribute("src",
- "https://clearoutside.com/forecast_image_large/"+lon+"…
- } else {
- document.getElementById("clearoutside").style.visibility = "hi…
- }
-</script>
-
-</body>
-</html>
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.