-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
25 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,36 @@ | ||
<html> | ||
<body> | ||
<H1>ADFC tour2pdf Kurzanleitung</H1> | ||
<p> | ||
Um eine neue PDF Datei zu erzeugen, bitte diese Formular ausfüllen: | ||
</p><p> | ||
<form action="/api/pdf" method="get"> | ||
<input type="date" id="beginning" name="beginning"/> | ||
<input type="date" id="end" name="end"/> | ||
<input type="hidden" name="unitKey" value="158"> | ||
<input type="hidden" name="eventType" value="Radtour"> | ||
Maximale Anzahl an Touren: <input type="text" name="limit" value="30"> | ||
<input type="submit"> | ||
</form> | ||
<script> | ||
function toDateInputValue(dateObject){ | ||
const local = new Date(dateObject); | ||
local.setMinutes(dateObject.getMinutes() - dateObject.getTimezoneOffset()); | ||
return local.toJSON().slice(0,10); | ||
}; | ||
document.getElementById('beginning').value = toDateInputValue(new Date()); | ||
var end = new Date(); | ||
end.setDate(end.getDate() + 30); | ||
document.getElementById('end').value = toDateInputValue(end); | ||
</script> | ||
</p> | ||
<p>Oder:</p> | ||
|
||
<p>1. Gehe auf https://touren-termine.adfc.de/ und mache eine gute Suche.</p> | ||
|
||
<p>2. Nimm die URL, entferne den Teil: | ||
<b>https://touren-termine.adfc.de/suche?</b> | ||
und erstze ihn durch die URL die im Browser steht und den Wörtern: /api/pdf? oder /api/html?</p> | ||
|
||
</body> | ||
</html> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters