tAdd form for querying custom zip codes, change language to danish - adamsgaard… | |
git clone git://src.adamsgaard.dk/adamsgaard.dk | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 78374ccda79291e78baff61bf1e15d4be7c06b5a | |
parent 64b9aa304f8ffae585c6654fbe31c3bdcf826177 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Sun, 22 Dec 2019 21:39:45 +0100 | |
Add form for querying custom zip codes, change language to danish | |
Diffstat: | |
M output/weather.html | 12 ++++++++++-- | |
1 file changed, 10 insertions(+), 2 deletions(-) | |
--- | |
diff --git a/output/weather.html b/output/weather.html | |
t@@ -64,6 +64,9 @@ | |
max-width:none | |
} | |
} | |
+ form { | |
+ text-align:center; | |
+ } | |
</style> | |
</head> | |
<body> | |
t@@ -89,11 +92,16 @@ | |
<img src="#" id="clearoutside" alt="Clear Outside forecast"> | |
</div> | |
+<form action="" method="get"> | |
+ <input type="text" placeholder="Postnummer" name="z"> | |
+ <!--<input type="submit" value="Submit">--> | |
+</form> | |
+ | |
</article> | |
<script> | |
- document.getElementById("pagetitle").innerHTML = "Weather forecast for… | |
- document.getElementById("pageheader").innerHTML = "Weather forecast fo… | |
+ 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+"&… |